Reputation
10,370
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 23 46
Newest
 Nice Answer
Impact
~596k people reached

Dec
2
comment How to slow down your computer (for testing purposes)?
@Joonas: I rely on the random-pause method of "profiling", and one thing I've found useful is this: Create a data-watch breakpoint in the program. That seems to cause the IDE to either emulate or interrupt after every instruction, which slows it down by 1-2 orders of magnitude, making it easier to pause and see what's happening. I don't do this a lot, but sometimes it's useful.
Dec
2
comment How to slow down your computer (for testing purposes)?
@Darknight: I think @Joonas is asking a very sensible question. The idea that just "changing your coding habit" is sufficient is not realistic. Here's an example: (stackoverflow.com/questions/926266/…) AND, the idea that you can just time it on a slower machine without an IDE assumes that's enough to find performance bugs. Lots of people talk about profiling, but doing it (successfully) is another matter. What would really help me (& others I think) is what Joonas is asking for.
Dec
1
comment What programming language generates fewest hard-to-find bugs?
++ Race conditions. You can say that again.
Dec
1
comment What's the idea behind defining rectangles with two points?
@Barry: That makes sense, since it used XOR a lot, and if you're stringing lines together, you want them to connect without a missing pixel where they meet. I actually published a siggraph paper on filling polygons, considering both coordinate systems.
Nov
30
answered What's the idea behind defining rectangles with two points?
Nov
30
comment How bad can it be to lack teamwork when you are a programmer?
@Helper: Yeah. What I didn't say is that it goes back to low again as you start the next phase :)
Nov
29
answered What popular “best practices” are not always best, and why?
Nov
29
comment Which useful alternative control structures do you know?
@Steve314: I think focussing on optimization is not the real point. IMO, the whole point of control structures is permitting certain kinds of programs to be written more clearly with less source code, although at the same time, it requires the reader to learn something they might not have, yet.
Nov
29
comment Which useful alternative control structures do you know?
++ Yeah. Back in the 70s, backtrack programming was big in AI, and continuation-passing was the way to do it. When backtrack could be controlled (because it was easy to take exponential time) it was very useful.
Nov
29
revised Which useful alternative control structures do you know?
edited body
Nov
29
answered Which useful alternative control structures do you know?
Nov
29
comment How bad can it be to lack teamwork when you are a programmer?
Very interesting observations. Thanks.
Nov
29
revised How bad can it be to lack teamwork when you are a programmer?
deleted 2 characters in body
Nov
29
answered How bad can it be to lack teamwork when you are a programmer?
Nov
21
comment Will high reputation in Stack Overflow help to get a good job?
@Frank: Right, but one thing I seriously like about these forums or whatever they are - you get to argue/agree/learn from people from all over the globe.
Nov
21
comment Will high reputation in Stack Overflow help to get a good job?
Rep on SO depends on a lot of things, like how long you've been on SO, what time zone you live in, how many questions you answer, how skilled you are at providing an answer quickly, and how much other people agree with your answers. It might be an interesting number, but it deserves circumspection.
Nov
20
comment Why the current enthusiasm for Functional Programming?
That's a big "if". COBOL, being "in English" was going to mean anybody could program. AI was going to make programming obsolete. OO was going to make programming as simple as assembling tinkertoys. Coders are like rock groupies, always looking for the "next big thing", and the one after that, and the one ...
Nov
20
comment How do you deal with over-the-head APIs/technology
It is a great question. So many times I've seen where words like "leverage" and "synergy" were used to sell some 3rd-party stuff. So then you get locked into it, and they go and pull it out from under you. (MS likes to do that.) Meanwhile, the original evangelists are long gone.
Nov
20
comment Does giving a developer a slower development machine result in faster/more efficient code?
@Peter: I see this all the time, where folks seem to think they need to have code as optimized as possible, and run on as fast a machine as possible, before they can profile it to find the performance problems. Where that idea came from, I can't even guess.
Nov
20
comment Does giving a developer a slower development machine result in faster/more efficient code?
@Peter: Sure there are in principal, except where I look. We even have test machines and virtual machines, and if a tester says something is taking too long, what do they say? "This blasted virtual machine is too slow!" I think the coder him/herself has to feel the pain, and needs an IDE to do something about it.