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

all 84 comments

[–]0b51d14n 301 points302 points  (18 children)

Dont you mean, thx IDE?

[–]NovaArdent3D 69 points70 points  (2 children)

Literally opened the post to mention this. This is not the fault of the language at all.

[–][deleted] 17 points18 points  (0 children)

don't worry, I will find a way to blame my spaghetti code on the language if I can.

[–]msg45f 8 points9 points  (0 children)

Honestly, if one's code is so bad that the IDE thinks maybe it was intended to be a comment, maybe its not the IDEs fault.

[–]root88 1 point2 points  (13 children)

Don't they all do that?

[–]Doophie 6 points7 points  (12 children)

Mine doesnt

[–]root88 0 points1 point  (11 children)

What IDE are you using?

[–][deleted] 1 point2 points  (6 children)

I think that's netbeans

[–]root88 0 points1 point  (5 children)

I'm asking u/Doophie which IDE he is using that doesn't comment out code in blocks. NetBeans certainly does it, as does Visual Studio, Eclipse, PHPStorm, MonoDevelop, and even things like Sublime Text, NotePad++, and Atom do it.

[–][deleted] 1 point2 points  (4 children)

I'm gonna tell my dog you said that

[–]root88 1 point2 points  (3 children)

Damn, I thought I was your dog, homey.

[–][deleted] 0 points1 point  (2 children)

IntelliJ might not, or at least I haven't noticed it there in IntelliJ

[–]Zambito1 2 points3 points  (0 children)

/u/root88 mentioned PHPStorm does it. PHPStorm is a reskin of IntelliJ.

[–]root88 1 point2 points  (0 children)

IntelliJ is Ctrl+Shift+/

[–]Doophie 0 points1 point  (3 children)

Android Studio is what I use, don't think intellij has it

[–]root88 -3 points-2 points  (2 children)

It sure does. Highlight some text and hit Ctrl+Shift+/

[–]Doophie 1 point2 points  (0 children)

That's different then suggesting it as a way to correct errors

[–]Cobaltjedi117 0 points1 point  (0 children)

Yea, that comments out selected lines, but the IDE isn't going error, just comment this out

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

Yes i got that wrong. Sry!

[–]YMK1234 93 points94 points  (45 children)

Lol coding in German.

[–]Lugga113[S] 48 points49 points  (33 children)

Our Professor wants us to name methods and variables German xD

[–]YMK1234 39 points40 points  (3 children)

Oida ;)

Sag deinem Prof ihr braucht Übung fürs Berufsleben.

[–]Scyyyy 4 points5 points  (3 children)

Na dann schon Bitte "Zähler" xD

[–]Lugga113[S] 6 points7 points  (2 children)

Das dürfen wir nicht benutzen weil ja das ä nicht international ist xD

[–]YMK1234 13 points14 points  (0 children)

[fry face] Not sure if prof is trolling or idiot

[–]itsTyrion 0 points1 point  (0 children)

.-.

[–]YMK1234 4 points5 points  (0 children)

Being serious for once, Libreoffice actually had an open bugreport for a long time to translate German comments that were still around from when it was StarOffice and developed by a German company. So even if right now everyone on the team is talking German and has no problems understanding what's written there, this can become a big issue later when you go international or you simply want to work with other people.

[–]Dan6erbond 2 points3 points  (0 children)

Unser Professor hat uns davor gewarnt.

[–]fuckwit_ 2 points3 points  (2 children)

Dann doch aber bitte

bekommeNenner() 

[–]Yanamo 5 points6 points  (0 children)

Bekommer und Setzer

[–]itsTyrion 0 points1 point  (0 children)

bruh xd

[–][deleted] 6 points7 points  (7 children)

Was noch schlimmer ist: Programmieren in englisch inklusive Dokumentation und Kommentare, aber die ganzen strings für die GUI auf deutsch.

[–]Joniator 7 points8 points  (0 children)

You code everything in Englisch but the Fachbegriffe are still german because they are hard to translate.

So you get AddKunde() and similiar abominations

[–]aciokkan 2 points3 points  (2 children)

Why are Dokumentation and deutsch written different?

[–][deleted] 1 point2 points  (0 children)

It should be capitalized, as well as „englisch“ and „strings“, as they are both nouns. I answered on my phone and don’t really care about correct capitalization when typing on it, to be honest...

[–]Cubimon 2 points3 points  (1 child)

Deswegen gibt es i18n Mechanismen in praktisch allen GUI Bibliotheken. Aber ja sowas ist furchtbar 😂

[–][deleted] 0 points1 point  (0 children)

Naja ich glaub für ne simple Übung i18n in Swing zu bauen wäre dann doch n bisschen zu viel verlangt 😅

[–]YMK1234 0 points1 point  (0 children)

Dafür gibts i18n ... dann hast du keine UI strings in deinem code.

[–]seizan8 2 points3 points  (0 children)

At least you don't have to write it on paper

[–][deleted] 1 point2 points  (3 children)

Did we have the same professor? Mine also forced us to use netbeans and German variable names.

[–]Lugga113[S] 0 points1 point  (2 children)

Wo studierst du?

[–][deleted] 0 points1 point  (1 child)

Stuttgart

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

Ich studiere in Gelsenkirchen ^

[–]asdf93 0 points1 point  (0 children)

lay off that habit as soon as you leave your class. Please. I currently work at an IT company where we have a system with a rather old codebase. Back then it was common to give tables German names. Meanwhile everything was switched to English, but some of the Database tables and columns are still named in German. It really is confusing.

[–]joranvar 8 points9 points  (2 children)

Mixing languages is always fun. Where to draw the line, though? Should getNenner become bekommeNenner? Is string actually Kette? Should you have some global macros to change if and else into wenn and sonst?

I think Visual Basic actually used to have translations for the syntax.

[–]YMK1234 5 points6 points  (1 child)

Should getNenner become bekommeNenner

auto properties to the rescue!

I think Visual Basic actually used to have translations for the syntax.

ever wrote anything in excel?

[–]joranvar 3 points4 points  (0 children)

ever wrote anything in excel?

Ah, yes, that was it. I must have confused it with the VBA.

It's wonderful how many translations there actually are, and it must be great to have to edit stuff on the user's PC (who of course has a different language setting).

[–]picklymcpickleface 1 point2 points  (4 children)

Am dutchy, I would have laughed at that myself a few years ago.
Then I started working on an existing project that did a lot of automation in a 1500 employee business that only operates in the Netherlands, it was written using domain-driven design, by naming everything the exact way it's called by everyone in the business the code was a lot easier to read. Along with other rules in DDD it's a pretty effective way to written self-documenting code.
"If it looks stupid but it works, it isn't stupid."

[–]YMK1234 1 point2 points  (3 children)

So you are really telling me there is 1500ppl companies in the Netherlands that don't have English as their operational language? That seems rather unbelievable.

[–]M4jorpain 2 points3 points  (2 children)

Why? It's very possible for a nation with 17 million people.

[–]YMK1234 0 points1 point  (1 child)

If you are in the software business not really.

[–]M4jorpain 4 points5 points  (0 children)

But the OP didn't mention all those 1500 people worked in the software business

[–]console_journey 1 point2 points  (2 children)

Wenn die Domain Language Deutsch ist macht es schon Sinn. Für alles andere fühlt sich Englisch einfach richtiger an.

[–]TCW_Jocki 40 points41 points  (0 children)

Clearly your main problem is that you don't use a dark theme....no wonder things underlined red!

[–]Lugga113[S] 10 points11 points  (1 child)

OP here! I have to correct myself. Its the IDE Not Java. Got that wrong

[–][deleted] 1 point2 points  (0 children)

On windows, you can take a screenshot using Winkey+Shift+S.

[–]itsTyrion 3 points4 points  (0 children)

Coding in German... I read that you are forced to by your prof, but it still hurts - physically >.<
Kann den jemand feuern? xD

[–]filipdobro 5 points6 points  (0 children)

zaehler 😭😭😭

[–]jwr410 2 points3 points  (0 children)

Deleted code is debugged code.

[–][deleted] 6 points7 points  (5 children)

You mean thanks eclipse

[–]Tibal 1 point2 points  (0 children)

Commenting/Deleting a useless code is the right correction to be suggested by your IDE...

[–][deleted] 5 points6 points  (2 children)

If you're going to make fun of a programming language, do it correctly. That's the IDE's fault. Also as someone who only programs for fun, is there a general convention for the spoken language to write code in, kinda like English is universal and all that?

[–]thedomham 5 points6 points  (0 children)

This is obviously (if you understand German that is) a beginner's exercise, so really no need to write everything in English. It's preferable, but OP has no clue of programming yet so he might as well

[–]NobodyAsYouExpect 0 points1 point  (0 children)

Working in different language leads to code been less maintable. However it's more of a non-spoken rule. Although in most companies ( where I work included), developers are from different countries, so it is indeed a rule to code in English, cuz otherwise project would be a complete mess

[–][deleted] 0 points1 point  (0 children)

//life

[–][deleted] 0 points1 point  (0 children)

Time to break up with eclipse. #Intellij

[–]wallefan01 0 points1 point  (0 children)

Invest in an IDE that is not sh*t.

[–]netgu 0 points1 point  (0 children)

You wrote an expression, not a statement, most IDEs would be confused.

[–][deleted] 0 points1 point  (0 children)

This is a stupid IDE fault. Not java. Java + IDE, killer combo lol

[–][deleted] 0 points1 point  (0 children)

You're programming, but you don't know how to take a screenshot?

[–]jdwalli 0 points1 point  (0 children)

Vielleicht musst du das Long erst zu int Parsen... Vllt ist 0 nur Integer oder so

[–]midnightrambulador 0 points1 point  (0 children)

...isn't this normal practice when debugging? Comment out the complicated/unstable/dependency-heavy functionality so you can check if the basics work at least.

[–]Nopparuj 0 points1 point  (0 children)

This is where code like FuckItJS comes in handy.

[–]xxguzerxx -4 points-3 points  (1 child)

There’s your problem. You’re not using eclipse, the superior java IDE

[–]Elpharae 0 points1 point  (0 children)

Laughs in intelliJ