dodgethesteamroller

less info
440 reputation
16
bio website foolsmate.net
location
age 42
visits member for 1 year, 1 month
seen Jul 20 at 22:23

Jun
4
awarded  Yearling
Apr
15
comment What to do if the task is too difficult ? Internship/SummerTraining
@Sobiaholic Congratulations!!!
Feb
11
answered Thread safe GUI programming
Jul
8
comment Is Python Interpreted or Compiled?
@S.Lott: Calling the tokenization process that Applesoft and '80s BASIC interpreters did "bytecode compilation" is more than a little disingenuous. Yes, the program code entered by the user was stored in memory in a compressed form, one byte per reserved word, but nothing was done beyond that until you typed RUN. It was as if you had a compiler that did the lexing step and then output a stream of tokens that had to be reparsed every time the program was run. Not at all like modern bytecode compilation as done by, say, javac, which encompasses lexing, parsing, and optimization.
Jul
4
comment Is fewer lines of code always better?
@ruakh: No, because debuggers typically allow you to set a breakpoint on a particular line, but with no finer-grained control than that. In Juann's example, if you are confident that MethodThree is working, but want to step into MethodTwo and examine the code that produces result2, you can set a breakpoint on the second line, run the program, and end up precisely at the problem area. With the single-line version you could still set a breakpoint at that line, but you'd then have to step through the call to MethodThree to end up at the same place—a little more clumsy.
Jul
4
comment Is fewer lines of code always better?
+1 for the observations that any modern compiler is going to optimize out the intermediate variables, so there's no performance penalty, and that the multiline version is easier to debug.
Jul
4
comment Is fewer lines of code always better?
@AndréParamés: Read Susan Lammers' Programmers at Work and you'll get a pretty good idea of Gates' abilities as a programmer. He was great at squeezing performance and space in 8-bit assembly language. The last piece of code he wrote all by himself was the ROM BASIC for the TRS-80 Model 100, again in hand-optimized Z80 code. His skills may be dated but there's no doubt he had them.
Jul
4
comment Is fewer lines of code always better?
Not if your manager is judging your productivity by how many lines you write per day! (Some still do, sadly...)
Jun
28
awarded  Commentator
Jun
28
comment Documenting mathematical logic in code
Then what? Include the plain-text code for the math notation in the original code as comments, or take a screenshot and use Javadoc like the OP said he might do with TeX?
Jun
24
comment Is there industry demand for developers who have no GUI experience?
+1 for "The fact that you are proficient in C, indicates that you are able to learn and able to tackle hard tasks." The problem if you're looking for a new job is going to be getting past an HR resume keyword scan and to a manager who realizes this...
Jun
22
comment Git tracks _lines_ of code. Is there something that track _words_?
Related answer on setting up git to use an external diff utility—if you're on a Linux system you probably have tkdiff installed which does a nice color-coded word-by-word diff of each line side by side.
Jun
18
comment What to do if the task is too difficult ? Internship/SummerTraining
@iMohammad: You're welcome, I'm glad to have been able to help. Good luck!
Jun
17
comment How can I salvage my internship?
+1 for the "Foolproof Way of Documenting Any Process." I wish I'd had that posted prominently in my cube when I was first hired for a system-analysis job.
Jun
17
awarded  Supporter
Jun
13
awarded  Critic
Jun
12
comment Should I use parentheses in logical statements even where not necessary?
@TimGoodman Yes, exactly right, to both your comments. Other responders here seem to think it's a black or white question--either use parentheses all the time, no exceptions, or fly carelessly by the seat of your pants through a sea of arbitrary and impossible-to-remember rules, your code boiling over with potential hard-to-spot bugs. (Mixed metaphors very intentional.) Obviously the right way is moderation; code clarity is important, but so is knowing your tools well, and you should be able to expect a certain minimum understanding of programming and CS principles from your teammates.
Jun
12
comment Should I use parentheses in logical statements even where not necessary?
@ruakh You just made my point for me. Because there are a handful of pathological edge cases doesn't mean that you shouldn't learn standard Boolean precedence and assume it holds until proven otherwise. We're not talking about arbitrary design decisions here; Boolean algebra was invented long before computers. Also, show me the Pascal spec you're talking about. Here and here show AND before OR.
Jun
12
comment What to do if the task is too difficult ? Internship/SummerTraining
@TobiasKienzler Hmm. That does make the situation more complicated. I don't know if this is a geographic/cultural thing, but I'm in the USA, where summer internships may be linked to course credit and required to graduate from a university program, but getting credit usually is just a matter of showing up. Sounds like OP is in a tighter spot. Maybe he can raise a concern with his academic advisor (or whatever the equivalent position is where he is--the person who guides him through the degree program and gives advice on courses to take)?
Jun
12
awarded  Nice Answer