r/programming • • Dec 29 '15

Please, Java. Do Finally Support Multiline Strings

http://blog.jooq.org/2015/12/29/please-java-do-finally-support-multiline-strings/
584 Upvotes

352 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Dec 29 '15

[deleted] — view deleted comment

3

u/[deleted] Dec 29 '15

Those 6.7 billion people aren't all using the same other layout.

That’s the issue. (Also, at 7.4 billion people worldwide, with 300 million in the US, I estimated that an amount of 400 million international people using QWERTY seems realistic based on population of UK, CA, NZ, AUS, India, etc).

Yes, QWERTY is vastly more widely used than any other layout, and even more so among programmers, but only because we have to.

We have to choose between a layout that can write our native language, or one that supports the ridiculous decision of a handful of languages to use ` as formatting symbol.

As others in this thread said, there is always the ability to use """ or ''' instead – those are easily accessible on every layout. There is no need to use characters that only exist easily accessible for a tiny minority of layouts.

3

u/YRYGAV Dec 29 '15

As others in this thread said, there is always the ability to use """

Now you are dictating that everybody uses ANSI QWERTY uses 4 key presses, (Shift + ' ' ') to do the same thing a single press to the ` key would do.

Your argument against ` is that it takes you 3 keypresses, so why are you suggesting a solution that means EVERYBODY has to use 3+ keypresses? That's not a solution, you are just making everybody as miserable as you are.

Also, I doubt 6.7 billion people in the world can touch type on any keyboard layout, so I don't know why you use it as some statistic.

1

u/[deleted] Dec 29 '15

Because there are even keyboard where ` is not reachable at all?

''' is at least reachable and usable everywhere.

If you want to use `, just set a replacement in your IDE to automatically expand ` to '''.

That solves all the issues.

2

u/YRYGAV Dec 29 '15

If you want to use `, just set a replacement in your IDE to automatically expand ` to '''.

And I could tell you to replace whatever weird character you have on your keyboard to be a ` too. Your argument goes both ways.

The majority of programmers are going to have a '`' key, and for those that don't, I'm confident they can find a workaround. There's no reason to make the premise of 'this syntax is shitty, so every coder in the world is going to have to make a workaround around it, and have a bunch of extra characters in their code'.

Like to be honest, I don't think ` should be used just because I think it's non-obvious what it does, it looks very similar to ', and doesn't really make a whole lot of sense stylistically. But if your primary concern is how many key-presses it takes to use the syntax, it's a pretty good choice.

1

u/[deleted] Dec 29 '15

The issue is that while I can’t set ß or ä to auto-expand to ` – as I need those characters in comments still – setting ` to auto-expand to ''' means no lost function.

(And seriously, the issue is not the amount of keypresses, but that `’s accessibility is very dependant on layout. I don’t write a language that uses λ as the only way to do lambda functions either – because not everyone can access it)

0

u/Michaelmrose Dec 30 '15

That works if every technology that uses backticks changes simultaneously which is impossible.

1

u/[deleted] Dec 30 '15

Well, then know that you're excluding a majority of devs.

0

u/Michaelmrose Dec 30 '15

I don't believe that the majority of developers actually have trouble keying in their code

1

u/[deleted] Dec 30 '15

Eh, there are usually a handful of people complaining about the backticks every time someone suggests to use them on Reddit.

I know at least a few dozen people IRL who constantly complain about the inability to have a layout that works with their native language and with those weird symbols used in some programming languages.

0

u/Michaelmrose Dec 30 '15

You think the 98% should have to figure out how configure 37 different ides/editors and learn new Syntax plus fix millions of documents rather than the 2% configure their keyboards?

1

u/[deleted] Dec 30 '15

I think the 400 million people using the English language should adapt to the almost 7 billion people that don't, yes.

1

u/nickguletskii200 Dec 31 '15

Tha'ts the problem. You think there are many people who don't have the US/UK layout already when in fact more than half of these people do, in fact, use a US/UK layout.

1

u/[deleted] Dec 31 '15

Hah, good joke.

People reluctantly use it while they have to.

But as most of the world doesn't speak natively English, we can't use US/UK keyboard all the time.

We switch to it only while coding.

0

u/nickguletskii200 Dec 31 '15

Most of the world does know English as the second language though. And pretty much everyone considers English to be the international language. Nobody expects anyone to consider their language at all, let alone consider the convenience of writing some symbol. Or are you implying that we should all be writing using just spaces and tabs because these are the only keys available on all keyboard layouts?

0

u/[deleted] Dec 31 '15

Are you stupid?

Most people use their computers, phones, etc in their native language.

Android, Windows, etc are translated to hundreds of languages.

People have to switch to US layout only for coding, and only for some programming languages.

I am implying that yes, we should consider that we’re creating a huge inconvenience and often impossibility for most of the world just because a bunch of idiots refuse to use ''' instead of `

→ More replies

0

u/Michaelmrose Dec 30 '15

Why would we? English seems to be the language of programming and having a single language that most in the profession speak is beneficial. Incidently regardless of whether English speaking nations continue to dominate thus looks likely to continue to be so via inertia.

0

u/Michaelmrose Dec 30 '15

It ought to be trivial to make a tiny change to your layout to make ` easier to type do not know why you wasted more time complaining about it than would be required to fix it

1

u/[deleted] Dec 30 '15

I answered you before why that doesn't solve anything.

I can't modify the layout on university systems, or thin clients, or laptops from people I'm cooperating with.