Reputation
577
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 7
Newest
 Nice Answer
Impact
~11k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Jan
1
awarded  Nice Answer
Apr
27
awarded  Yearling
Apr
27
awarded  Yearling
Feb
21
awarded  Nice Answer
Aug
7
answered Is it possible to deploy Perl or Python scripts in the same way as PHP scripts?
Aug
7
comment Is it possible to deploy Perl or Python scripts in the same way as PHP scripts?
Dynamic typing has nothing to do with this. Python is compiled (to bytecode) before execution if you are using the CPython implementation. Perl is too, IIRC. Anyway, the type systems of these languages are not relevant here.
Aug
7
awarded  Critic
Aug
6
answered Short Deadline and QAing Yourself
Aug
6
comment Using Quadratic Bezier Curves to generate a cave that stays within certain bounds
I'm happy to answer simple questions about splines on stackoverflow. I answer hard questions about splines for a living. If you send me your Skype I will talk to you about splines, but I won't think very hard about them. I charge for thinking. and I charge a lot for thinking about mathematical curves. Makes my head hurt.
Aug
6
comment Using Quadratic Bezier Curves to generate a cave that stays within certain bounds
What I mean is that you are not expressing your constraints very precisely. What sort of continuity are you looking for? C0? C1? C2? Do you even understand what I am asking here? Do you understand that the beziers know nothing about your screen coordinates? If your question were a question, I could answer it. But you are not asking a question...
Aug
6
answered How do you stop yourself from bringing work home?
Aug
6
comment Using Quadratic Bezier Curves to generate a cave that stays within certain bounds
I'm about a year and a half into a project that has piecewise cubic beziers at it's heart. I literally spend days talking about splines. But I am not sure what you mean here. My guess is that you want to maintain C2 continuity while constraining the positions of the control points- if that is the case you need to define your problem a bit better before anyone can give you a good answer.
Apr
30
comment How to abbreviate variable names
rigidly following rules is either a cause of or a sign of brain damage. Either way, the important thing is judgment.
Apr
30
awarded  Commentator
Apr
30
comment How do you stop yourself from making mistakes?
1) use an issue tracker. 2) Yes, assuming you have your own tests- make sure there is another layer of testing though 3) use version control and check in often so you can roll back to find bugs, etc. 4) Yeah, sunlight makes for good code. Never hide it until it is "better."
Apr
30
comment How to abbreviate variable names
Not sure I entirely agree. I don't abbreviate much, but I think that abbreviating in some cases is a good idea. I would find long variable names in a short local scope very annoying, actually. I write lots of functions where "p" refers to a point in 3-space. I think that that is as clear as "thePoint," and easier to read, if the function is meant to operate on a point in some fashion.
Apr
30
comment How do you stop yourself from making mistakes?
As a long-time CL programmer I don't think that my CL code is automatically more verifiable (whatever that means) than my Java code is. I do think that having done a lot of Lisp makes my Java code better, and makes me more inclined to write code that is provably correct. Unfortunately it also makes me very frustrated with Java ;). That aside, whether or not it is "OK" to make mistakes is a silly question. I have worked with some godly elite programmers, guys who just put me to shame, and they made mistakes all the time. It is important to catch mistakes though.
Apr
30
comment How do you stop yourself from making mistakes?
I'd also recommend Bertrand Meyer's book for more on preconditions and postconditions in a reasonably digestible format. I'm not crazy about Meyer in some respects, and I would urge you to take some of what he says with a grain of salt. But his discussion of inputs, outputs, and invariants is good.
Apr
30
comment How do you stop yourself from making mistakes?
How did you learn to not touch a hot wood stove? You touched one. How can you learn to make less mistakes as a programmer? You can take every mistake as personally as a burned hand, and try to never make the same mistake twice. You can learn enough about proving things that you can be sure that individual routines are correct (good luck proving a system correct.) You can then think about how to make systems in which correctness proofs (even intuitive ones) are useful. If you really care about correctness I would also suggest re-evaluating the currently fashionable OO paradigm.
Apr
30
revised How do you stop yourself from making mistakes?
added 259 characters in body; added 26 characters in body