6

Oh, oh, oh... It's magic!

Learning RSpec

Comments
  • 0
    Is that space part of the symbol? Weird.
  • 4
    Also 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.
  • 0
    Rspec is beautiful ~
  • 1
    I don't know anything about RSpec but I would read that just because they used Garamond for the font.
  • 0
    @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)

    :)
  • 0
    @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.
Add Comment