28

Biggest pet peeve of languages are those that use single quotes for strings.

It's single quotes for characters, double quotes for strings. Suck my diiiick

Comments
  • 16
    And what about ` for string interpolation?
  • 3
    I honestly hate single quotes altogether 🤷🏻‍♂️
  • 5
    i side with @Stuxnet
    i hate them especially in the french language. The agony ' caused in school arghhh c'est la merde!
    In english it is mostly avoidable to use '. And in german, norwegian, danish, swedish it is rarely used which I am most thankful for. And in swiss german there is no orthography so we write the language how we speak. Which is very liberating not to worry to write correctly.
  • 7
    100% agree.
    Single quotes for chars, double for strings. Anything else is a travesty!
  • 3
    @Root But in IBM’s godless “Run SQL Scripts” utility you HAVE to use single quotes. It’s the most bullshit ever
  • 3
    @AlgoRythm in real programming languages, yeah. Don’t get me started on the interpreted bastards.
  • 3
    @broseph The only reason it's popular in interpreted languages is to avoid the need to escape quotation marks. As if typing a backslash difficult in ANY respect. What pussies.
  • 1
    @alexbrooklyn I will accept it as syntax for string formatting, although, I still prefer the printf/ sprintf formatting style. Shorter and sweeter! None of that ${brackets} bullshit, just good old %d and %f
  • 4
    Well, that is makes sense IF the char type exists in that language.

    If it doesn't exist (which tends to be true in many famous dynamically typed langs), then depending on the language there's different meaning for single and double quotes, sometimes impacting performance. So it's not just to avoid escaping.

    One exception to this rule is (surprise) javascript. Brendan Eich was designing js when he took a huge bong rip and uttered the words "double quote strings are the same as single quote strings".

    Terrible idea.
  • 1
    @alexbrooklyn ` wouldn't even exist if brendan eich wasn't such a big pothead like I mentioned in the comment above, so it's not something to really criticize the more modern ecmascript people.

    it's actually a redesign over that bullshit.

    you guys need to step up your game...
  • 1
    "PR cannot be merged because build failed"

    Reason: Failed Code Style Rule: Use ' instead of "

    The build takes 10-20 mins....

    Guess the language.
  • 1
  • 0
    @AlgoRythm actually JS.... Most common reason my builds fail at work.
    We use JS and Java...
  • 0
    @billgates Oh god, why does a JavaScript project build? Electron? Please, anything but electron...
  • 0
    @AlgoRythm webapp n nodeJS; Java for data loading processes
  • 0
    @billgates I didn't realize that NodeJS had a build process. In all my (two or so) years of using it, I just run a script and it happily does as I ask.
  • 0
    @AlgoRythm Work... have to send it thru a build pipeline... Downloads all the packages on a clean system and runs all the tests which take forever
  • 1
    @billgates Sounds like fun!

    Oh wait that's not the right word.

    Sounds like hell! Fresh hell!
  • 1
    @AlgoRythm it doesn't, there's no build process in node, strictly speaking.

    @billgates how could it take 10-20 minutes for a style lint to fail? the language has nothing do with the fact of this build process being terrible. I'm also assuming the build process runs on node.

    tell your employer i can do consultancy lol, I could use the money.
  • 1
    @erandria
    free up space on build agent
    download source, dependencies
    Check style
    Run tests

    The point of this really was " vs '... I tend to not check locally because I'm usually switching between languages or doing multiple things. So I send to build.

    When I'm done with whatever else I'm doing I go oh yeah... I sent a build.

    Check the build server and that's the error
  • 0
    @billgates disable linting in pipeline and let someone else fix it later 😛
    But why don't you just add linting plugins to your ide 🤔
  • 0
    @billgates i see.

    i would recommend adding a lint:watch command, so that you get errors on your own machine on every file save, but i know little of this build process
  • 0
    Choose one, set up an .editorconfig for the project, and stop whining.
  • 1
    @heyheni oh shit, I just ran a linter over my project yesterday and didn't check the SQL queries on the user name table, it might've all gone to hell! 😱
  • 0
    Wait until you see VB.NET
    "X"c
    Syntax !!
Add Comment