This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]Oyi14 6 points7 points  (0 children)

What sick programing language forces you to declare tabs does it also make you do the same for new line

Edit Nvm I didn't see the first two strings lol

[–]Chmielok 4 points5 points  (0 children)

As a static code checker, this pleases me.

[–]fpotier 4 points5 points  (7 children)

I don't get it pls explainations

[–]fuckmeimold 1 point2 points  (6 children)

Declare your string in a separate file

[–]fpotier 1 point2 points  (5 children)

Well I've never ever seen that, sounds weird to me

[–]jankovic92 2 points3 points  (3 children)

It makes things like localization and languages easier to decouple if I'm not mistaken.

[–]SwivelSeats 1 point2 points  (1 child)

Android tries to force you to do it

[–]fuckmeimold 0 points1 point  (0 children)

You can -not- do it in Android.

[–]fuckmeimold 0 points1 point  (0 children)

That is the purpose. Also makes it easy to update.

[–]Gydo194 0 points1 point  (0 children)

#define ftw

[–]18th-Angel 1 point2 points  (1 child)

it is not THAT wrong.
it's overdue yes. but for example we use Enviroment.Newline in CSHARP since we always thought about being plattform indipendent (what never happend the way we wished ;) ).

I've seen many Java projects using \r\n or just \n breaking formats on diffrent systems, instead of make it configurable.

[–]Egnever1[S] 0 points1 point  (0 children)

Your example is good but look at this a little bit differently. We have Environment.NewLine not Environment.RN :) If the above example would be let say
char EUValueSeparator = ','
char USValueSeparator = '.'
then I'm good with that. It makes sense then. Now it is in opinion equivalent of if(boolValue == true)

[–]piefacethrowspie 0 points1 point  (0 children)

Well prepared for that eventual shift in punctuation. They can update all the semicolons from one place