13,449 reputation
43758
bio website
location Minneapolis, MN
age
visits member for 4 years, 6 months
seen 8 hours ago

Jan
5
comment (almost) Pure C instead of C preprocessor
You can calculate the area of a circle with area = PI*radius*radius with the first example. Your second example is a syntax error. This question is confusing.
Jan
2
comment Version control for code that contains student exercises
You could just use the C preprocessor for this, with #ifdefs. The C preprocessor isn't going to care that it's a python program.
Dec
29
comment Is anyone capable of becoming a programmer and having a career?
@Rockett: Understand talent vs skill. Talent is something you are born with, skill you develop. Having a talent for something means you can develop faster and achieve higher skills than someone without the talent can. Some people are not born with the talents needed make a good programmer, and despite tons of work, will never develop the necessary skills.
Dec
29
comment Can most compilers check for errors?
If someone was selling a compiler that just said "You have an error" and did not tell you where it was or anything useful, do you think anyone would pay for that kind of garbage?
Dec
26
comment Block diagram scheme file format
Forget about making "saving and parsing as simple as possible". Writing your parser is a one-time investment. There is a vast swath of tools that can make writing your parser take half an afternoon. Focus on making your thing useful and solving real problems people have.
Dec
26
comment Block diagram scheme file format
What are you going to do when someone wants ] in their label?
Dec
25
comment Block diagram scheme file format
Considering flowcharts are useless for anything beyond the most trivial of software tasks, I think you'd be best off investing your spare time in a more rewarding topic.
Dec
23
comment Non-Object Oriented Programming in Object Oriented Language
Is it OK to create things out of wood, when metals are available?
Dec
20
comment What are the valid uses of static classes?
@Telastyn: no worries, great minds think alike :)
Dec
19
comment What are the valid uses of static classes?
The answer to your question essentially boils down to accepting the fact that a lot of times YAGNI. All your what its: YAGNI.
Dec
18
comment Are all magic numbers created the same?
@JuanMendes: That's Kibibyte vs Kilobyte land, StevenBurnap made a joke about it in a comment to the question.
Dec
18
comment How common are use SDLC methodologies in real life?
Your claims about coder vs engineer are at odds with reality, even under strictly defined procedures software has all kinds of issues, see programmers.stackexchange.com/questions/158640/… for some examples. No methodology can replace the good judgment of a skilled developer.
Dec
18
comment Are all magic numbers created the same?
Ya'll need to learn YAGNI.
Dec
18
comment Are all magic numbers created the same?
@immibis: somewhere, someone is trying to.
Dec
17
comment Are all magic numbers created the same?
@NathanCooper: I know it's an example, but when discussing nuanced topics that are context-sensitive judgment calls, your choice of example is important.
Dec
17
comment Are all magic numbers created the same?
@NathanCooper: your preferred e^i*pi = -1 is better in that instance, because your alternative isn't correct. e is not 2.718. And while specs change a lot, they also have a habit of changing only in unexpected ways where you can't just change a single #define and run with it.
Dec
17
comment Are all magic numbers created the same?
@user61852: named constants aren't always more readable. They often are, but not always.
Dec
17
comment Are all magic numbers created the same?
@user61852: Like just about everything else in software, it boils down to judgement calls specific to your context. In some cases 9.8 would be appropriate in-line, in others it would not be. Using a constant for acceleration due to gravity can be dangerous because g is not constant everywhere, nor is standard g 9.80000. Using a constant defined elsewhere makes errors in your usage of the value less obvious.
Dec
17
comment What is a good word for the current “state” of a state machine?
I've seen plenty of state machines over the years that just call the variable "State". Never been confused.
Dec
16
comment Math model for a webpage layout?
Generating "bullet proof" html/css to do just about anything beyond hello world is serious undertaking. You underestimate how quirky browsers are.