Reputation
788
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 16
Newest
 Informed
Impact
~11k people reached

Feb
21
comment What is the opposite of initialize (or init)?
@earcam They tend to close every question that can't have a single correct, unambiguous answer...
Feb
19
answered What's the benefit of object-oriented programming over procedural programming?
Sep
23
comment Is there a modified LGPL license that allows static linking?
Actually linkers do exactly this, when you dynamically link to library.
Sep
18
accepted Found a better solution to a problem at work - should I deter from posting the code snippet online?
Jun
10
awarded  Informed
Nov
6
awarded  Nice Question
Nov
6
awarded  Popular Question
Nov
6
revised Why do we use non-descriptive internal codenames?
added 551 characters in body
Nov
6
awarded  Yearling
Nov
6
asked Why do we use non-descriptive internal codenames?
Sep
26
comment What should I understand before I try to understand functional programming?
@ScottWhitlock Every sane imperative language have the concept of function pointers or anything like that can be used to pass a function as parameter. It's supported by very old languages like PL/1, COBOL, C, Pascal, etc... Using these you can write mapping functions.
Jul
18
comment My client wants me to add background music to a site. How do I tell them this is a terrible idea?
The google link is broken.
Jul
13
answered Deprecate a web API: Best Practices?
Jun
21
answered Should I extract specific functionality into a function and why?
Jun
20
comment What is the ideal length of a method for you?
I use my screen in portrait orientation, I can see 200 lines of code at once.
Jun
20
comment What is the ideal length of a method for you?
Except when they contain a switch.
Jun
20
comment What is the ideal length of a method for you?
@Smokefoot I would factor out repetitive patterns into single functions/macros etc. If the function isn't a repetitive mess, there is 90% chance the reason for its length is a huge switch, which mean you probably need to add just a new case. If you explode the 6000 lines into 60 100 line functions, you make the next fellow's job even harder because now he'll need to scroll and jump around many source files to put things together in his mind.
Jun
20
comment What is the ideal length of a method for you?
@DanielB I wouldn't touch any variable before I know how it is used. So I would search for all occurrences of it in its scope to see which other functions and statements alter it. I'd also refactor the code to bring down all variables into the smallest scope possible.
Jun
9
answered What revision control has the best merging engine?
Jun
9
comment What revision control has the best merging engine?
IMHO Auto generated files shouldn't be in version control. Only the files that are used to generate them.