4 ms·
Bingo. And it goes vice-versa; because software engineering standards are so lax (read: non-existent) in most academic disciplines and domains, on the rare occa
by counters 5y ago
Bingo. And it goes vice-versa; because software engineering standards are so lax (read: non-existent) in most academic disciplines and domains, on the rare occasion where you get accompanying code to an academic work it may be impossible to actually much of the source to the original work itself.
During my dissertation I had to collect implementations of about a dozen parameterizations of a process I was studying, with the intent of coupling them/incorporating them into a set of climate modeling experiments. All of the implementations were in Fortran (which in and of itself wasn't a problem, albeit it was annoying re-writing or re-factoring some F77 code to play more nicely with the more modern Fortran codebase in which our climate model was written). Of these codes I collected, the majority of them had bugs which restricted my ability to reproduce the reported results from the original work they accompanied. One or two of them had significant flaws in them - answer-changing bugs which, when corrected, potentially would yield different results from those reported in their original papers, and might actually lead to different conclusions.
One of the nice things about the Jupyter ecosystem of tools and Julia is the ability to more closely replicate equations from the original paper. It seems dumb, but in my anecdotal experience I've noticed fewer significant bugs when colleagues have used these features. I've also noticed a propensity for scientists and researchers to write clearer, better-documented code - if your next line of code is going to directly mimic Equation 13 in your paper, why wouldn't you go ahead and write a comment saying so?
- res0nat0r 5y agoDo folks normally write code using the Greek alphabet? I totally understand reading/writing math papers in latex, or on paper using the traditional mathematical symbols, but does anyone really want to edit their Julia code in vim and type \scrA<tab> for a variable name? Seems extremely annoying and convoluted vs naming your variables alpha or sigma, etc.
- mbauman 5y agoAll the time. Incidentally, I got these unicode α and σ by copy-pasting from tab completion in an open Julia REPL. https://juliahub.com/ui/Search?q=α&type=code&w=true https://juliahub.com/ui/Search?q=α&type=code&w=true https://juliahub.com/ui/Search?q=σ&type=code&w=true https://juliahub.com/ui/Search?q=σ&type=code&w=true
- leephillips 5y agoBut I can type α with two keystrokes. “alpha” is five.
- res0nat0r 5y agoLooking up escape codes or cutting and pasting non ascii characters takes much longer than typing 5 letters.
- leephillips 5y ago> But I can type α with two keystrokes.
- res0nat0r 5y agoLearning that for all the mathematical symbols, still too time consuming.