105 reputation
2
bio website
location
age
visits member for 1 year, 9 months
seen Jun 24 at 22:32

Aug
19
comment How can a large, Fortran-based number crunching codebase be modernized?
"a Fortran code is bound to be messy". No. A messy coder will write messy code in any language, and the converse is true. Kernighan and Plauger have shown how to write clean Fortran years ago.
Aug
19
comment How can a large, Fortran-based number crunching codebase be modernized?
@dodgy_coder. Nice to ear you did development in Fortran + .NET in the nineties. The first beta of .NET came out in 2000.
Aug
19
comment How to handle divide by zero in a language that doesn't support exceptions?
@Ross. "arrogance in computer science is measured in nano-Dijkstras" -- Alan Kay
Aug
19
comment How to handle divide by zero in a language that doesn't support exceptions?
@Mathew. More or less like the "language" provided by worksheet formulas I suppose? I see nothing negative in providing such features.
Aug
19
revised How to handle divide by zero in a language that doesn't support exceptions?
corrected spelling
Aug
19
comment How fast should a Python factoring script be?
You are doing integer factorization, and there are many algorithms for that. The one you use (trial divisions) is the simplest, and also the worst, but it may be enough if your numbers are not too large. Otherwise, you may switch to another algorithm, or use a library, or even call an external program (I once had a factoring function in Python that just called yafu). But Rig's answer is right: that depends on yours requirements/needs only.
Aug
19
suggested suggested edit on How to handle divide by zero in a language that doesn't support exceptions?
Aug
19
comment How to handle divide by zero in a language that doesn't support exceptions?
@Mathew Foscarini. Never, ever, ignore the error and silently return 0. When doing a division, 0 may be a perfectly legal value (for some reason, there is such a thing in Power Basic, and it's really a pain). If you divie floating point numbers, Nan or Inf would be nice (have a look at IEEE 754 to understand why). If you divide integers, you may stop the program, divide by 0 should never be allowed (well, unless you want to implement a true exception system).
Aug
19
awarded  Editor
Aug
19
revised What is the appropriate approach to study an api when it is not well documented and there are no good tutorials around?
corrected spelling
Aug
19
comment How to handle divide by zero in a language that doesn't support exceptions?
@mattnz. To many users, any "programming language 101" is merely room 101...
Aug
19
comment What is the appropriate approach to study an api when it is not well documented and there are no good tutorials around?
I understand the last argument, but I would definitely look into the code.
Aug
19
suggested suggested edit on What is the appropriate approach to study an api when it is not well documented and there are no good tutorials around?
Mar
12
awarded  Supporter