Tau Empire Codex 2013 | Army Builder Program
Dark Angels Codex 2013
Chaos Daemons Codex 2013
Chaos Space Marines Codex 2012

Warhammer 40k Forum Tau Online

 

Warhammer 40K Forum

Anyone here know anything about Code Analysis?
Reply
Old 27 May 2009, 23:57   #11 (permalink)
Shas'O
 
Join Date: Jun 2006
Posts: 6,130
Default Re: Anyone here know anything about Code Analysis?

Keep in mind that code analysis can be very different from a usage and performance report.

A user survey may be far more useful than optimizing search algorithms. At a minimum, determine usage patterns before optimizing.
__________________
Latest Project: Game Design Forums. Register now to get a low user ID, or reserve a forum for your own project.

My various opinions and tacticas, in article form: Ad clicks always appreciated.

Latest article topic: Video game design

Best free webhost Ive found yet: http://www.ultrawebsitehosting.com/2353.html
Tyndmyr is offline   Reply With Quote
Old 28 May 2009, 10:32   #12 (permalink)
Shas'O
 
Join Date: Apr 2004
Location: Retired back into the depths of the Internets.
Posts: 6,440
Send a message via MSN to mace
Default Re: Anyone here know anything about Code Analysis?

Heh, learnt something the hard way today. Yes its also good to look at usage first. I was optimising some SQL code and turns out my modifications didn't have as much of an overall effect on performance as optimising the one function that gets called every single time this particular query is run >< Removing it practically halves the execution time...
__________________
mace is offline   Reply With Quote
Old 29 May 2009, 13:07   #13 (permalink)
Shas'Ui
 
Join Date: Dec 2008
Posts: 931
Default Re: Anyone here know anything about Code Analysis?

Quote:
Originally Posted by Tyndmyr
I am highly skeptical of six sigma. It's become yet another buzzword laden miracle cure. Its practically a routine by now...someone slaps a few common sense guidelines together, gives them a snazzy name, and it gets catchy. Then people start following it like a damn religion. Pretty soon its some corporatized monstrosity creating the problems it was originally meant to fix.

See also: Agile Programming.
6sigma can be applied (and is applied) to any operations which consumes a significant amount of time and resources. Without metrics there can be no benchmarks, and without benchmarks there could be no efficiency. It's just another systematic set of guidelines that when followed allows an entity to produce more efficiency for the same amount of time & resources. It's not a buzzword, big manufacturers and BPOs rely on these standards to make profits and improve competitiveness (by streamlining resources and/or paving a new alternative way).

code analysis is not much into code development as into system code design. that's why there is a wide divide between a DBA and a soft dev.

As with 'any' religion, if its applied without any thought of its 'real value' in its proper context things go haywire. But, as I always say to my proteges, it always pays to know the methodology of any international standards or 'train of thought', it adds to your 'skills package', and being a certified practitioner of any methodology beats a common folk. After all, at the end of the day, we all strive to have better paycheck for the same (if not less) amount of work.

omegatron is offline   Reply With Quote
Old 29 May 2009, 16:32   #14 (permalink)
Shas'O
 
Join Date: Jun 2006
Posts: 6,130
Default Re: Anyone here know anything about Code Analysis?

Quote:
Originally Posted by omegatron
Without metrics there can be no benchmarks, and without benchmarks there could be no efficiency.
No. Without benchmarks, you have no measurement of efficiency.

It is quite possible to make something efficient without benchmarking it. It's often easier to make something work sufficiently well without benchmarking and optimization.

Optimization should only ever be done to address an existing problem. Premature optimization is a great way to kill a project.
__________________
Latest Project: Game Design Forums. Register now to get a low user ID, or reserve a forum for your own project.

My various opinions and tacticas, in article form: Ad clicks always appreciated.

Latest article topic: Video game design

Best free webhost Ive found yet: http://www.ultrawebsitehosting.com/2353.html
Tyndmyr is offline   Reply With Quote
Old 29 May 2009, 17:08   #15 (permalink)
Shas'Ui
 
Join Date: Dec 2008
Posts: 931
Default Re: Anyone here know anything about Code Analysis?

Quote:
Originally Posted by Tyndmyr
It is quite possible to make something efficient without benchmarking it. It's often easier to make something work sufficiently well without benchmarking and optimization.
well, everything is possible, but is it repeatable or tangible ?
can it be presented to the stakeholders as an achievement/cost justification ?
will the client pay for what cannot be measured ?
without measurement, claims of efficiency are just boasts and/or hearsays, and have no place in the boardroom.

big and repeat order clients look for quality projects (1st run success), makes it easier for them to get an extra funding and gives credibility to them facing their own stakeholders. It also gives you 'bonus points' from the client for making the extra mile.

easier is not always the best way of doing things.

Quote:
Originally Posted by Tyndmyr
Optimization should only ever be done to address an existing problem. Premature optimization is a great way to kill a project.
That's a reactive way of doing things.

Optimization starts from design, and should be in place before the project goes live. Production level servers doesn't take well optimization FT runs.

Optimization is not always done to resolve an issue, moreso, in a proactive environment Optimization is done to prevent the issue from coming up.


omegatron is offline   Reply With Quote
Old 29 May 2009, 17:16   #16 (permalink)
Shas'O
 
Join Date: Jun 2006
Posts: 6,130
Default Re: Anyone here know anything about Code Analysis?

Software programming is not done in a repeatable fashion. If you're coding the same thing over and over again, you're doing something terrible wrong. If you are doing something intrinsicly different, it is inherently not a repetition.

Reactive is not inherently worse than proactive. There are a ridiculous amount of possible optimizations in any software system worthy of optimization at all, and while adhering to basic coding standards does mitigate many problems, that should be taken for granted in any system. Most possible optimizations are simply not worth doing, and it is not possible to predict all future problems, since it's rare that even the customer has a good idea of future usage. Optimizing to remove actual problems is far, far more efficient than trying to optimize anything that could possibly be a problem.
__________________
Latest Project: Game Design Forums. Register now to get a low user ID, or reserve a forum for your own project.

My various opinions and tacticas, in article form: Ad clicks always appreciated.

Latest article topic: Video game design

Best free webhost Ive found yet: http://www.ultrawebsitehosting.com/2353.html
Tyndmyr is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code 43. WTF? Jeff Computers, Science and Technology 3 05 Mar 2010 10:55
[uid] BB code Xanzar Tau Online Comments/Suggestions 2 16 Mar 2009 19:34
validation code Artiglio Computers, Science and Technology 2 18 Jun 2005 20:26
Favorite Code compubrains Computers, Science and Technology 4 16 Feb 2005 08:30