3 ms·
I would think that Simplicity would also have to include 'readability'. In other words Simple for humans Write and Read. You give a great example of Euler's 1s
by theWold 11y ago
I would think that Simplicity would also have to include 'readability'. In other words Simple for humans Write and Read.
You give a great example of Euler's 1st problem (https://projecteuler.net/problem=1 https://projecteuler.net/problem=1) but if someone wasn't given the context of the problem, or even if they were are unfamiliar with the syntax you used, they would not call you solution 'simple'.
That being said transfer of knowledge is a key component when reading. Going to your point about the decimal system (which I believe you were talking about the arabic numberals (https://en.wikipedia.org/wiki/Arabic_numerals) https://en.wikipedia.org/wiki/Arabic_numerals)). Sure it is faster and shorter to use than Roman Numerals, but then again the knowledge transfer that you could do with Arabaric numerals is much greater than Roman.
I would say for programming languages, ever time we, programmers, innovate on one we are trying to make a process simpliar to the user (I believe 'abstraction' would be an appropriate word to use).
- CyberFonic 11y agoRoman numerals did not have a zero. It could only be used to represent counting numbers between 1 and 3999. As abstraction s go it failed to accommodate a large number of situations that Arabic numbers could.
- AnimalMuppet 11y agoI don't think that's right. Roman numerals allowed a bar over the number to indicate that it was multiplied by a thousand. One million, for example, was an M with a bar over it. I agree about "counting numbers", though. So far as I know, it was impossible to represent fractions or decimals in Roman numerals.
- davelnewton 11y agoThey used `S` for "half", with dots for additional fractions of twelve. https://en.wikipedia.org/wiki/Roman_numerals#Fractions https://en.wikipedia.org/wiki/Roman_numerals#Fractions And here I thought I'd never need to know that.
- CyberFonic 11y agoWhen you point out the importance of context, I would hasten to add that for me comments in programs provide context that even the best naming convention, etc fails to provide.
- theWold 11y agoI would agree, but there also needs to be a balance. You can't solely rely upon comments when needing to change the code, whereas you can rely on comments to grasp what is happening in said code. But the same can go for self documenting variables. Sure they help you understand what the variable/function/etc. holds, but not what it does. Almost like naming convention is looking at something through a telescope (very narrow point of view, but very concise) and comments (especially those at top of functions/Sprocs/algorithms that describe what is happening) are like looking with your bare eyes. You can get a jist of things, but you sometimes can't be sure that's accurate 100%. (A backpacking saying is "never trust any sign you come across" Someone could have tampered with it since it was put up. Use it as a guideline, but not as a rule. I take a similar approach to comments in critical pieces of code. (Touching Credit Decision-ing for Auto Loans ... yep, gonna slow down and take it slow to make sure I don't screw anything up))