560 reputation
413
bio website
location Mezőkövesd, Hungary
age 25
visits member for 3 years, 8 months
seen 2 hours ago

Jun
21
answered Should I extract specific functionality into a function and why?
Jun
20
comment What is the ideal length of a method?
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?
Except when they contain a switch.
Jun
20
comment What is the ideal length of a method?
@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?
@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.
Apr
1
comment Do abstractions have to reduce code readability?
+1 for mentioning YAGNI and abstractions with single reference points. The primary role of making an abstraction is factoring out the common point of multiple things. If an abstraction is referenced only from one point, we cannot speak of factoring out common stuff, an abstraction like this just contributes to the yoyo problem. I would extend this because this is true for all kinds of abstractions: functions, generics, macros, whatever...
Mar
28
comment Should curly braces appear on their own line?
@LorenPechtel You can also use your monitor in vertical position, and use 8pt.
Feb
10
asked Should functions be prepared for overlapping buffers?
Dec
11
comment Should I bother to develop for JavaScript disabled?
If your website only shows a blank page or the layout falls appart completely with disabled JS, you probably do something wrong.
Dec
3
answered Deprecation considered harmful?
Dec
3
comment Deprecation considered harmful?
-1 for deprecating printf... Life is too simple for C programmers isn't it? So they must use puts from now... (actually I voted the question up)
Oct
31
awarded  Nice Question
Oct
30
comment Found a better solution to a problem at work - should I deter from posting the code snippet online?
@MrSmith42 Sure. But to tell the truth I'm already guilty of this of several times, and I did it without thinking about the potential consequences, till now. And probably, I'm not alone with this. That's why I asked it here... Or does everyone cares not to express ideas or submit any code online while employed? I cannot believe.
Oct
30
comment When can I publish a software tool written at work?
Does your answer applies to the little code snippets posted on StackOverflow? I started another question here: programmers.stackexchange.com/questions/216029/…
Oct
30
asked Found a better solution to a problem at work - should I deter from posting the code snippet online?
Sep
9
comment Vertical alignment: yea or nay?
I prefer the first too, also I'm using proportional fonts, so vertical align does not make sense for me.
Jul
19
awarded  Yearling
Jul
4
comment Isn't MVC anti OOP?
@ErikReppen How many classes have you written so far that's easy to tear out of its current context, and use it elsewhere, without forcing you bring the entire framework that surrounds it? Class reuse is a myth...