Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devios157707yAlso what is with this weird obsession lately of having code syntax match spoken language? Swift is doing this too and it drives me nuts. I don't get it. Yeah it makes code more readable to someone who doesn't understand the language, but the concepts do not map one-to-one and you end up with these illogical bastardized syntaxes.
Why is .days a sub-member of an assertion? It's readable, sure, but it's not logical. -
pajaja17337yI don't know anything about RSpec but I would read that just because they used Garamond for the font.
-
@devios1 you should consider ios dev in C because the concepts are very clear.
Just joking... RSspec (ruby in general), Java, Swift and another languages are adopting this natural-language-syntax because they are HIGH LEVEL LANGUAGES. It certainly have the other benefits you mention (among others) but the main reason is the level, you will never see a C code being natural written because it becomes harder than the actual algorithm you would be coding (which doesn't happen in high level languages)
:) -
devios157707y@codepotato My point/argument is that I believe it to be *folly* to try and make code more like natural language, or at least too much so. Natural languages evolved over millennia and are imperfect and arbitrary by their very nature. They often disagree from one language to the next on everything from word order to conjugation.
Code is a much more perfect representation of concept. It is already better than natural languages. To me, bastardizing the purity of code by making it resemble spoken languages is a step *backwards*, not forwards.
I see this simply as continuing the trend of dumbing down programming languages so laymen can understand them. This post is the perfect example: the order of the operations makes absolutely no sense from a purely logical point of view. It *only* makes sense when you read it in English.
Well I don't know about you but I definitely don't want to write programs in English. If that's what's coming you can count me out right now.
Oh, oh, oh... It's magic!
Learning RSpec
undefined