19 ms·
German for Programmers
- deleted 8y ago[deleted]
- badesalz 8y agoAbout the nonsensical assignment of gender to nouns I agree in principle but just a quick tip for the particular example in the footnote: “Mädchen” ends in -chen which is the diminutive form of a word (originally “die Magd” for a young woman). All words ending in -chen are neutral. Similarly, “das Bübchen” could refer to a young boy and is also neutral. Hope this helps and good luck with learning German. If it wasn’t my native language I wouldn’t want to learn it but I do love it.
- aasasd 8y ago> All words ending in -chen are neutral. Similarly, “das Bübchen” could refer to a young boy and is also neutral. Now this actually makes no sense.
- deleted 8y ago[deleted]
- contradictioned 8y agoAs someone else commented, > Diminutive words are always neutral And there is "die Magd", ancient expression for a young woman and the grammatical gender is female, as well as "der Bube", ancient expression (it is still used more often, though) for a young man and grammatical gender is male. Of both these words you can create the diminished versions "Bübchen" and "Mädchen" which both follow the aforementioned rule and are neutral. Commonly, in Germany we say "Jungen und Mädchen" if we refer to children; but which words are chosen to be used are rarely a sensible decision.
- aasasd 8y agoMy objection is not to the formulation of the rule, but to the existence of the rule―because where I'm from, a little girl is still a girl, grammatically too. (Even though I agree in general that little kids make crappy men and women.)
- contradictioned 8y agoAh, then maybe to clarify further: This rule applies to virtually every word. A table is "der Tisch" (male), a small table is "das Tischchen" (neutral); a tree is "der Baum" (male), a small tree is "das Bäumchen" (neutral); a break is "die Pause" (female), a small break "das Päuschen" (neutral), etc. In theory you can take every word and diminish it by appending "-chen". You could still argue, that the "-chen"-rule should be overwritten by an "obvious-grammatical-gender"-rule.
- aasasd 8y agoMy complaint still stands, but OTOH I just realized I now have a way to turn German into English at least in one aspect.
- black-tea 8y agoIt doesn't make sense, but it is a pattern. There is a similar pattern in French: all nouns ending in -tion or -sion are feminine (apart from a single exception: le bastion). Handily we also have most of those nouns in English too. When learning French I stopped searching for patterns in genders. Some are truly weird, like penis being feminine and vagina being masculine. But I told myself it's no different to having to remember the pronunciation of every single English word, so my brain easily has capacity for it. After a while it becomes just as natural.
- amaccuish 8y agoAnyone wanting help with German grammar, I thoroughly recommend the dartmouth german grammar pages [0]. (I used them for GCSEs and A-Levels). They have a page explaining the bracket structure [1] [0] https://www.dartmouth.edu/~deutsch/Grammatik/Grammatik.html https://www.dartmouth.edu/~deutsch/Grammatik/Grammatik.html [1] https://www.dartmouth.edu/~deutsch/Grammatik/WordOrder/MainClauses.html https://www.dartmouth.edu/~deutsch/Grammatik/WordOrder/MainC...
- qwerty456127 8y agoThe thing I and many other people hate the most in any language that has it (German included) are cases. The rest is easy.
- amaccuish 8y agoPersonally love them. Not so much in German, but in Russian they make word order wonderfully flexible. You can just blurt stuff out, adjusting the case as you go along, to build a sentence, rather than having to go back and restart. What bugs me with German inability to reliably form plurals and having adjective endings vary by determiner (though not difficult to learn, but just seemingly serving no useful purpose). For me I found aspect in Russia the most difficult thing grammatically to grasp. I hear learning articles from an "articleless" language is similarly difficult.
- wolfgke 8y ago> What bugs me with German inability to reliably form plurals As a native German speaker, this is one of the few complaints about the German language that I can relive. This is really ugly.
- mveety 8y agoI quite like the cases, personally. If you're not in a more formal context or writing (like say you're talking to friends or so) it lets you be a bit more fast and loose with word order, plus it can let you say things more concisely than you can with english. The only real solid annoyances I've had were adjectives. Learning all of the rules and endings around them sucked on some level and it felt really quite superfluous, but once you get them and you can gauge correctness just based on it "sounding right" it's not so bad.
- fluffycat 8y agoMy biggest gripe with german is the redundancy, all articles and form changes they create are actually redundant, they don't contribute to the meaning in any significant manners. Remove all of them and all the complications, different forms they create, you would still perfectly understand it. Yeah I know, languages, organic, beautiful, but subtle things , etc etc.. But still.
- gammateam 8y agoGood job on attempting to map German to some programming concepts. German cases have to be learned by listening to others, as your post kind of alludes to but may not be obvious to people, is that the gender assignment is not intuitive and too much of a sentence relies on knowing the gender assignment of a noun. Fortunately, in a conversation you can listen to which suffixes people use, to reverse engineer the gender assignment of the noun. You have to store the experience in your mental hashmap and always assign the noun that way. The classical conditioning comes when people look at you ridiculously and disagree with your sentence structure, you'll re-evaluate quickly to avoid that.
- bayesian_horse 8y agoI would recommend starting with something like Duolingo. It will give you a head start on listening comprehension and grammar. In my opinion, reading texts is more efficient than listening to conversations. It's basically "on demand language streaming", you can slow down or speed up as desired.
- gammateam 8y agoDuolingo and apps like it, including Memrise, really fail with German. They can be good for syllable pronunciation and maybe memorizing gender of some nouns, but they never will explain or brush on the more complex nuances of any language, which you would learn in the second week of any formal education.
- kbp 8y agoDuolingo has notes explaining the grammar as it introduces it, for the most part, and the grammar gets reasonably sophisticated by the end. Not really what I'd call complex nuances, but probably equivalent to a year or two of university study. What second-week German grammar concepts do you think it doesn't brush on?
- gammateam 8y agoMust have been an update, wasn't familiar with it. The last duolingo I used was just trying to get humans to solve its foreign-language reCaptcha material.
- DennisP 8y agoA somewhat related article is Japanese for Nerds, which among other things provides a Backus-Naur form for Japanese grammar. http://atdt.freeshell.org/k5/story_2004_3_25_32218_1824.html http://atdt.freeshell.org/k5/story_2004_3_25_32218_1824.html Sadly Kuro5hin is defunct and google only pulls up an archive of part II...the link to part I is broken and I'm not sure whether the promised third part was ever posted.
- titanix2 8y ago> Backus-Naur form for Japanese grammar For a limited very subset only. The rules presented there are way too easy to handle most natural language statements. That being said the core of Japanese grammar is quite simple for a human learner and the recursion is more obvious there than in most other natural languages.
- xaedes 8y agoBtw: Sanskrit is originally defined with similar-to-Backus-Naus-form rules. From "Backus–Naur form" wikipedia: The idea of describing the structure of language using rewriting rules can be traced back to at least the work of Pāṇini (ancient Indian Sanskrit grammarian and a revered scholar in Hinduism who lived sometime between the 7th and 4th century BCE). His notation to describe Sanskrit word structure notation is equivalent in power to that of Backus and has many similar properties.
- cstrat 8y agoThis is blocked for me by Cisco Umbrella? :S
- laszlokorte 8y agoI am currently learning (german) sign language and I see very many parallels to programming languages there as well. Eg the subject object verb sentences structure reminds me of a stack machine and establishing references points (for persons or objects) in the space around your body in order to later in the sentence (or in future sentences) related to to them reminds me of register allocation.
- aasasd 8y ago> Prepositions claim different areas of ‘cognitive space’ in English and German The thing about pre/postpositions is, their use is almost entirely idiomatic in modern language, i.e. it doesn't follow from the meaning of individual parts and thus doesn't translate without reconstruction. In English, afaict, practically all adpositions signify relations in space or time, plus there are ‘of’ and ‘for.’ However, once you begin dealing with even slightly more abstract notions, these semantics break―and you just have to pick a word that you will use, without ties to its meaning. “The paper is on the table” is straightforward, as it uses the original meaning of ‘on,’ but you can't say why it's “We speak in English” and not e.g. ‘under English.’ So, German and other languages simply picked different words: it's not like you can complain that some inherent semantics are violated by that. It's pretty much the same in e.g. Russian with prefixes, since many of them also originally denote spatial relations, and this derivation with prefixes is used in much the same way as with adpositions in English. (Speaking ‘in English’ is actually something like ‘along-English’ in Russian.) But, English also has a habit of forming piles of new idiomatic phrases, with completely different meaning, by adding postpositions, in the same entirely arbitrary way―which makes learning these phrases an ordeal.
- repsilat 8y agoRight. In HTTP on TCP over IP? Speaking "on" English doesn't seem so strange if we can talk over (i.e. through) the radio. And English gets so much less reasonable. "Put up" is to house, "put down" is to insult, "put up with" is to suffer, "put through" is to test, "put around" is to spread, "put in" to contribute, "put out" to have sex or produce, "put over" either to delay or to decieve, "put past" to offer, "put on" to act or wear or present, "put off" to delay or dissuade, "put away" to tidy or eat or earn, "put aside" to save or to forgive, "put forth" to suggest, "put back" to replace.
- Sharlin 8y agoYeah, phrasal verbs (verb-particle combinations) are almost entirely idiomatic. At least as a non-native learner, I've found it best to memorize them as units and not to even think about what the adposition would mean affixed to a noun, and that's how they were taught as well.
- bayesian_horse 8y agoTip for remembering if a noun is male, female or neuter, visualize it as burning/being burnt/blowing up for coding female and freezing for coding male. Of course you can reverse the system if you prefer. Also in my experience, reading text eventually is the most efficient way to learn a language, including the grammatical pecularities. If you come upon the phrase "das kalte Bier", you know that it is "das Bier". At the beginning of learning a language, reading texts is too slow. In that phase, memorizing and practicing vocabulary or short translations (like Duolingo, which I can wholeheartedly recommend) are a good start. In my experience, especially from learning English, it's a good idea to not look up every unknown word when reading. You quickly develop a sense of which words or grammatical concepts are important for the meaning of a sentence. If you see a new word in different contexts a few times, you may get curious enough to look it up. Or you already have a sense of its meaning.
- RightMillennial 8y agoI took German back in high school but I don't really remember anything about it. How can you read if you don't at least have an idea of what each word or phrase means? I'm a native born English speaker, and I occasionally have to look up English words if I have no idea what they're supposed to mean. It's one thing if it's an obvious random word for a gadget such as doohickey. I can't imagine reading a foreign language and surmising what a word means without a definition.
- Baeocystin 8y agoI won't say it's easy, but it's easier than you might think. Word use follows a power law distribution in all languages ( Zipf's Law, https://www.youtube.com/watch?v=fCn8zs912OE https://www.youtube.com/watch?v=fCn8zs912OE is an excellent vsauce cover of the subject ), but the short of it is that within a relatively short amount of time spent studying you'll be able to pick out common words and build from there, even if you started from zero.
- the_duke 8y agoWhen I learn a new language I always start with learning the 1000 most used words without reading much/any text. Knowing those will usually get your comprehension to a surprisingly high level. You can start filling in the gaps from there.
- ribimus_prime 8y agoJust call every noun a 'Dingsbums' (thingy) and you are all set - no more memorizing!
- sctb 8y agoCould you please start posting a bit more substantively? https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- partiallypro 8y agoI've been trying to learn German (at least enough to carry on a light conversation,) so I'm hoping this will help me. I've mostly been learning to speak it, haven't really focused on writing/spelling...though I do understand some basic German grammatical concepts from speaking.
- madez 8y agoI like the analogies, but I'd like to nitpick, if I may. "While the grammar is mostly regular here, two things make this challenging: the nonsensical assignment of genders to nouns and (...)" The given examples for weird assignment of genders are inadequate because they are explained by common rules. Das Mädchen: Diminutive words are always neutral, and Mädchen is the diminutive of Magd. Die Männlichkeit: Words ending on 'keit', 'heit', or 'ung' are always female. "..., but imagine trying to hear the difference between Rat and Rad over a bad phone line." It does not make a difference if the phone line is good or bad; the words Rat and Rad are pronounced identical, thanks to the Auslautverhärtung.
- pantalaimon 8y ago> the words Rat and Rad are pronounced identical, thanks to the Auslautverhärtung. Are they though? > Ich habe einen Rat für dich. > Ich habe ein Rad für dich.
- contradictioned 8y agoAnd at least spoken, it can be difficult to understand, if someone said "einen" or "ein"; if they would care for the difference at all.
- pantalaimon 8y agoYea if you are not making an effort to pronounce it formal you'd say > Ich hab 'nen Rat für dich > Ich hab 'n Rad für dich where they sound the same.
- pjmlp 8y agoYou can go one step further replacing ich with ick. :)
- pantalaimon 8y agoBut then it can be > Ick hab 'nen Rad/Rat für dich. either way!
- stewbrew 8y ago"Probably the first difficulty people run into when leaning German is memorizing the gender of each noun and properly declining that noun’s articles when used in a sentence." It really depends on what your mother tongue is. I personally like the analogies. You can do things differently with language. Some languages use more words to convey some information, others encode the information in the words' gender/declination/position etc. What makes language really difficult is that languages clash and get mixed up. Imagine a team building a compiler that works with cobol and java code. Imagine the team adapting the codebase to what works best for that new compiler and then slowly deprecating & dropping unused features.
- pjtr 8y agoMemorizing gender: I hear the trick is not to do it separately ("1. I know the word 'Mädchen'. 2. Its gender is feminine.") but as an integral part of the word ("1. I know the word 'das_Mädchen'."). Also completely forget the non-grammatical male / female association. Treat it like quarks in physics (up, down, strange, charm, bottom, and top): Words with the same name as familiar but mostly unrelated concepts. Or maybe like "open(2)" vs. "open(3)". https://linux.die.net/man/2/open https://linux.die.net/man/2/open https://linux.die.net/man/3/open https://linux.die.net/man/3/open Example: "die Steuer" (tax) vs. "das Steuer" (rudder)
- wolfi1 8y agoMark Twain seemed to have the same troubles with German: "The Awful German Language" (https://www.cs.utah.edu/~gback/awfgrmlg.html https://www.cs.utah.edu/~gback/awfgrmlg.html)
- kara_jade 8y agoThe super-complicated LIFO example is, unfortunately, a contrived example: “Ich stimme dem Maler, der die Meinung, dass Rot keine Farbe ist, vertritt, zu.” This sentence can be rewritten in German just as in the English translation: “Ich stimme dem Maler zu, der die Meinung vertritt, dass Rot keine Farbe ist.”
- marton78 8y agoBesides, it should be "keine Farbe sei"
- badestrand 8y agoI think you can easily construct other examples, e.g. "Ich trete meine Rechte, die ich, Gott sei Dank, habe, ab."
- thecatspaw 8y agoAs a german speaker this strikes me as wrong. I personally would have written that as "Ich trete meine Rechte, die ich Gott sei Dank habe, ab", or simplified as "Ich trete meine Rechte ab, die ich Gott sei Dank habe"
- madez 8y agoIt doesn't strike me as wrong, just as a bit unhandy. The explanatory Nebensatz that is started with a relative pronoun that refers to the object that is about to be explained can always start directly after the object, and sometimes even must start there. For example: Seine Meinung, die ich nicht teile, macht weniger Sinn als ihre.
- kv0 8y agoIt's funny that as a german I'm now learning interesting stuff about my own language in a foreign language about a language made up to make machines do things.
- lordnacho 8y ago> The genders of individual nouns and the grammatical rules to decline articles and adjectives using those genders constitute a shared set of rules that the sender and receiver both know. It may not approach the Shannon limit, but German gendered nouns form a weird, organically developed forward error correcting code. This might be a convoluted example, but imagine trying to hear the difference between Rat and Rad over a bad phone line. Your brain has to do this kind of reconstruction all the time, you’re just not usually conscious of it! “Gib mir das Ra{d,t}” makes the distinction clear – a German speaker would decode it as das Rad immediately, because that “just sounds right.” The declinations are just parity bits in the sentence, and whatever “just sounds right” is actually an error-free solution to a parity calculation. This formulates something I thought of myself. It's a really good way to state it. The test is this: find people who are native speakers of a gendered language. Make up a dummy noun, or give them an import like "Internet". Somehow, they tend to all place the noun in the same gender. I always thought there was some unstated rule relating to the sounds, but as a non-linguist it's hard for me to dig any deeper.
- adimitrov 8y ago> Somehow, they tend to all place the noun in the same gender. That's not generally true, especially for German. I've heard "der Blog, das Blog," "die, das Email" "die, der, das Factory" … etc. Loan words undergo an integration process, which is more of a sociolinguistic concept, I guess. At the end of the integration process, the word becomes an integral part of the language, with a fixed gender. For example, "Manager" is integrated, and it's clear its' "der Manager," same for Computer. Some words do seem to evoke a certain gender (I've never heard anything but "der Podcast") but you shouldn't assume your personal preference extends to all (native) speakers ("das Podcast" would easily be possible.) But how do people assign gender during the integration process? It's a consensus process, but there are several factors: lexical similarity (Computer denotes the same concept as "der Rechner" so it becomes masculine. Same for City/Stadt (feminine)) or lexical analogies (this loan word denotes something we already have a category for) morphological analogies (words in -er are likely to become masculine, as many German masculine words already have that ending, same for nouns ending in a vowel and feminine.) Sometimes it's chaotic, but that's the nature of consensus. This process is much easier in Slavic languages, where gender assignment follows stricter morphological rules. German, on the other hand is chaotic. Note: German is not chaotic for the reasons given in TFA, because formations with -chen -keit -heit -ung etc. have fixed, regular gender. But words which did not undergo a morphological derivation process, but are instead atomic nouns are very haphazard in their gender assignment.
- Spearchucker 8y agoGot excited when I read the title but. I speak fluent German - like a native. Only after 20 years in London I cannot participate in a hard- or software-related technical discussion in German, because I wasn't exposed to that milieu in a German-speaking environment. And so I excpected something that maybe explains how you might say "inversion of control" or "edge/perimiter network" or "public key cryptography" or "tiers vs. layers" in German. My quest continues.
- t0astbread 8y agoI'm a software engineering student in Austria and have interned at multiple companies and we always just used the respective English terms. Actually, I've noticed that I sometimes just use English words mixed with German in my day-to-day talking too because they come to mind more quickly. Probably ~10% of what I say when talking German is English (with German grammar of course).
- kayoone 8y agoI am German living in Germany, but for the last 5 years all my work/professional live is english and I also have small word finding problems when talking about the same concepts in german, just because I usually never do it.
- pantalaimon 8y agoJust use the English words like everyone else. It seems like there was an effort in the 80ies/90ies to have native German names for concepts in computer science, but today those just sound very dated. Datenfernübertragung died with the 56k Modem ;)
- pjmlp 8y agoNot if you are reading requirements from any kind of "Beamte" related organization. :)
- Double_a_92 8y agoI remember a uni class about data structures that we had to study with a german book... With things like "Keller" for the recursion base and "Halde" for the heap. Oh boy.
- cjslep 8y agoAmerican who moved to Switzerland 1.5 years ago and learning High German (now in A2). Hardest thing for me right know is knowing when it is appropriate to use the Akkusativ versus Dativ cases. Declining is always difficult, especially considering that adjectives are declined and also this declination depends on the presence and kind of article (which is also declined). I love Switzerland but since I am learning High German it means the Swiss are more likely to talk English to me if they know it (completely understandable, given the relationship between High German and Swiss German). So practicing is intimidating or can feel rude if I try to stick to High German in this case.
- deleted 8y ago[deleted]
- badestrand 8y agoWhat a wonderful write up! I learned a few languages already and think about languages and their complexities a lot. Very interesting post!
- tobltobs 8y agoA bit offtopic but there [1] is a funny list of some really weird details of the German language. After reading those examples I can not understand how some people are able to learn German at all. [1] https://www.watson.ch/spass/digital/724157644-zum-glueck-muessen-wir-nicht-deutsch-lernen-so-lacht-das-internet-ueber-unsere-sprache https://www.watson.ch/spass/digital/724157644-zum-glueck-mue...
- alpaca128 8y agoWell, you can do that with every single language out there if you look for the most ridiculous examples. The ones in this link are funny but partially so far-fetched that for one comparison I had to take a look in the dictionary, as a native speaker.
- deleted 8y ago[deleted]
- jlangenauer 8y agoHaving lived in Germany for 3 years now, and managed to speak German to a half-decent level (B1/B2), I offer the following observations. 1. The genders don't matter nearly as much as non-speakers think they do. If you talk to your bank, it doesn't matter if you ask about "der Konto", "die Konto" or "das Konto" (the last is actually correct), you will be able to communicate quite fine. Unlike French, there are very few words where changing the gender has a different meaning - das Bund/der Bund (the bundle/the association) is the only one I can think of off-hand. Same with adjective declinations - "das verbundenes Konto", "zum verbundene Konto", "ein verbundenen Konto" are all wrong and will grate on the German ear, but will all be understood. 2. I agree absolutely with not trying to map German propositions to English ones. One of the things that improved my German a lot is learning the verb + proposition combinations - "ich denke an...", "ich freue mich auf...", "ich helfe dir bei ..." 3. There is an amazing amount of structure in German words which you start to see after you have basic vocabulary, which makes it easier to guess at the meaning of words you've never come across before. For example: das Mitleid - "mit" means with, and "leid" would be related to the verb "leiden", to suffer. So you'd have "with-suffering", which makes it possible to guess the actual meaning - "compassion" or "pity". This of course gets extended far further with German's compound words.
- levosmetalo 8y agoWhile it's true that people that want to understand you would understand you, even if you speak wrong, it's not something "not to worry about". Using the wrong gender or articles quickly gives a hint that you are some lowly educated factory worker living in Germany for 20 years and not caring to learn the language.
- mk89 8y agoI agree. Probably it's good to know that it doesn't matter, just so that you feel less fearful and tend to speak more, even wrong....
- wolfgke 8y ago> Probably it's good to know that it doesn't matter, just so that you feel less fearful and tend to speak more, even wrong.... Native German speaker here: I disagree with all the sentiment of "less fear". Better concentrate on your ability to formulate grammatically correct sentences. In school, I often felt that the German grammar works somewhat like a mathematical proof system (and asked myself why German grammar is not part of math classes). When studying mathematics, you first have to learn to write correct proofs. It makes no sense to try learn something more deep in mathematics if you have difficulties writing elementary proofs. For German, it is the same: first learn the internal structure (grammar) of the language (just like predicate logic in mathematics) and just like thinking how to express something that you want to prove in predicate logic, find out how to formulate something in German's grammatical structure. Only after this elementary step, you can begin with more complicated things.
- k__ 8y agoI'm a native German speaker and for programming I mostly use English only. Some of my customers and co-programmers don't speak good English, but that's the only reason for using German on the job.
- dgrabla 8y agoGit reference in german https://github.com/danielauener/git-auf-deutsch https://github.com/danielauener/git-auf-deutsch It is hilarious to 'pick up raisins' instead of cherrypicking a commit
- vrbsky 8y agoInteresting article. Seems to me that the last footnote on the website about pre-computing x+4 in pipelined processors is very simmilar to (if not the same as) the fairly recently discovered Spectre/Meltdown vulnerability. What do you think?
- TheCabin 8y agoAs a German, I still learned a lot from the article. Thanks!
- fluffycat 8y agoProgrammers? Sure German language needs a nice round of refactoring. Remove all redundancies. It would be a huge changelist with shit ton of lines removed, and still all tests for meaning pass.
- xaedes 8y agoRemoving all redundancies would require everyone to speak and formulate perfectly. Otherwise the message is lost. A lot of misunderstanding would happen. Redundance in language makes it easier, because it really is some kind of error protection.
- fluffycat 8y agoNot necessarily in case of German, What exactly articles give to the meaning? What would it lose if they are removed or consolidated into a single article.
- dekhn 8y agoI don't really speak german, but I do know that at the end of the sentence all the verbs the germans put.
- fileeditview 8y agoSome of the commenters here might be interested in the wonderful essay by Mark Twain: "The Awful German Language": https://www.cs.utah.edu/~gback/awfgrmlg.html https://www.cs.utah.edu/~gback/awfgrmlg.html It is a great read but you really need to understand German to read it.
- m0zg 8y ago"Die Männlichkeit, masculinity, is female". Happens all the time. It's also female in Russian ("мужественность").