https://www.duolingo.com/profile/Jocelyn.Qiu

I finished my German tree, finally ;)

Just want the world to know this:{
if ("I want to learn to speak German".length >10) ; console.log ("I am looking for headaches like throbbing toothaches in the head") } else { console.log("there is no else for me now") }

August 17, 2014

56 Comments


https://www.duolingo.com/profile/drkameleon

while ((!give_up) && (tree==GOLDEN))
{
--- try
--- {
------- read(grammar);
------- read(books);
------- watch(movies);
------- use(verbling);
--- }
--- catch (Exception ex)
--- {
------- // don't give up!
--- }
}

success();

August 17, 2014

https://www.duolingo.com/profile/CliffJonesJr

So if you give up or the tree ceases to be golden... success? I think you have a bug! :P

August 19, 2014

https://www.duolingo.com/profile/drkameleon

Well, not quite: while NOT (!) giving up AND (&&) the tree is golden (keeping the tree golden), do (actually try doing) what I included in the block { } (reading, etc). My only issue - now that I'm paying some attention to what I've written - is that there should be some viable "escape" from the loop, that leads to success()! Which is not obvious. But let's make it a bit more poetic, and leave it to the reader's interpretation... lol. :-)

August 19, 2014

https://www.duolingo.com/profile/CliffJonesJr

In English, the loop makes sense ("while not giving up and keeping the tree golden..."), but in code, that while is just checking values, and as soon as the condition is not met (you give up or the tree is not golden), the loop is finished.

Right about now, I'm wishing there were a good equivalent of Duolingo for teaching coding. I'd get my daughter on there!

August 19, 2014

https://www.duolingo.com/profile/drkameleon

Well, there is codeacademy (http://www.codecademy.com/) - it's not great. But it's decent.

I would't call it the coder's DuoLingo, though. Hmm... Did you just give me the awesomest (sic) possible idea?!... Hmm...


P.S. I don't how old your daughter is, but no-matter-what please do initiate her in the fabulous world of programming. She may not know it yet, but she'll be thanking you for that one day! :-)

August 19, 2014

https://www.duolingo.com/profile/CliffJonesJr

Oh yeah, she's used Codecademy a bit. And Khan Academy has some basic JavaScript stuff. They're just not as fun and community-oriented as Duolingo. She's eight, by the way.

August 19, 2014

https://www.duolingo.com/profile/AlexisLinguist

I understand this passively. :)

August 19, 2014

https://www.duolingo.com/profile/drkameleon

Programming - at its very essence - is something rather self-explanatory, a series of basic logic statements in (almost) plain English and some basic math. What takes it to a whole different level and allows you/us to create almost anything you can think of is still those ultra-simple components, mixed with time/passion/imagination. (OK, and some problem-solving skills as well).

:-)

August 19, 2014

https://www.duolingo.com/profile/AlexisLinguist

Exactly. I've fiddled around with a few tutorials before...even those had me sweating a little. ;)

August 19, 2014

https://www.duolingo.com/profile/Jocelyn.Qiu

Hey hey! that's a 'while' loop and yeah, I feel like my throbbing toothaches are coming back to the head. You know German structure, i.e. verb is usually placed at the end of a long sentence, is sometimes like the 'while loop'-the first word of the sentence continues to go on UNTIL the second last word meets the verb. Geez. Give me a tylenol.

August 18, 2014

https://www.duolingo.com/profile/kennethl.bobcat

while loops are complicated. I don't understand them. :(

August 19, 2014

https://www.duolingo.com/profile/drkameleon

It's pretty much like an if statement, with a main difference:

  • if the condition (following an if statement) is true, what follows (the block) is executed once, and program execution moves on
  • in while loops, the block of statements following the condition is executed as long as the condition remains true. (e.g. if it'll hold true for ever, the "loop" is going to be executed over and over again, till the end of time - at any point that the condition is false, the statements are not to be executed and program execution moves on).

;-)

August 19, 2014

https://www.duolingo.com/profile/CliffJonesJr

Give this man a lingot!

August 19, 2014

https://www.duolingo.com/profile/drkameleon

Hahaha! :-)

August 19, 2014

https://www.duolingo.com/profile/kennethl.bobcat

Thanks. I've always had trouble with them in JS and Python.

August 22, 2014

https://www.duolingo.com/profile/E.T.s_Son

Lmao! What's crazy is I just started learning how to program in C++ so I totally understand the "if" condition and I started my German Tree last night. =D

Congratulations! May your fluency in German continue to improve and provide you great satisfaction in life!

if ("Your journey in German brings you satisfaction".length > 8*5){

<pre> console.log ("Build a time machine to go back in time and chat with Albert Einstein in German") </pre>

} else

<pre> console.log("Take a tylenol for that headache") </pre>

=D

August 17, 2014

https://www.duolingo.com/profile/An_dz

But that's Javascript and not C++. printf? Here's a C code:

<pre>pain = 0; while( myGermanSkill != likeBornInGermany ) { pain++; } else { timeMachine(me, 1950, princetonNJUSA); } </pre>
August 19, 2014

https://www.duolingo.com/profile/MaxwellMateus

Pascal code:

program PascalGermanicus;

const

likeBorninGermany = 365.25 * 70;

var

myGermanSkill := 0;

pain := 0;

begin

while (myGermanSkill < likeBornInGermany) do pain := pain + 1;

timeMachine(me, 1950, blumenauSCBrazil);

end.

August 20, 2014

https://www.duolingo.com/profile/CliffJonesJr

Hm... It's been a while since I've done any Pascal, but I think you forgot a < in your loop condition. And I'm not sure what the else is tied to. And I think that final end should have a period, not a semicolon. (Am I sucking the fun out of this?)

August 20, 2014

https://www.duolingo.com/profile/MaxwellMateus

Yeap, I did fix it. hehehe

August 20, 2014

https://www.duolingo.com/profile/E.T.s_Son

Hmm...I might be getting Javascript and C++ confused because I am learning both but I could have sworn it was C++

August 19, 2014

https://www.duolingo.com/profile/drkameleon

Loops and If statements are most definitely not the most tell-tale sign of a programming language, meaning: in most modern languages, actually being used, basic structures/statements follow pretty much the same (C-inspired) syntax.

Now, as for the OP's snippet, what makes it - almost instictively, for a trained eye - JavaScript, rather than anything else is that console.log. It's TOO javascript-ish actually! lol.

August 19, 2014

https://www.duolingo.com/profile/E.T.s_Son

Well as I am a beginner I need to do more differentiating of the two languages with more studying of course! Do you know how to program?

August 19, 2014

https://www.duolingo.com/profile/drkameleon

Well, I guess I do... lol. I've been programming for the past 20 years, have programmed in more than 30 languages and... basically in the past 6 years, that's what I'm doing for a living! ;-)

P.S. If you're into it, go for it. Either as a hobby, or as a profession, programming is... great! (Well, perhaps I'm not being that objective but anyway! lol)

August 19, 2014

https://www.duolingo.com/profile/Jocelyn.Qiu

hey there! XD that's a good code, an even better joke! Guess what, I might be needing 10 tylenols for the pain . ;)

August 18, 2014

https://www.duolingo.com/profile/E.T.s_Son

Im having headaches with the German try already. The spelling is so weird to me. LoL But I will surmount this. Hopefully my brain doesn't turn to juice once I have finished the German Tree =D

August 18, 2014

https://www.duolingo.com/profile/CliffJonesJr

do { study(language); practice(language); language++; } while (!dead);

August 18, 2014

https://www.duolingo.com/profile/SwiftySlasher

Incredible job!!! I am getting closer to finishing German, but I want to finish my Spanish first.

August 17, 2014

https://www.duolingo.com/profile/flying4life

Sweeeeet! I'm way off that but I look forward to the day!

August 17, 2014

https://www.duolingo.com/profile/jelena.queen

Oh, that's my huge wish! I don't know how people like you never give up, I mean: EVERYBODY DOES on some part of learning a new language! It's hard so I really admire people like you! And hope to I finish my course soon. I have few questions. Did Duolingo really helped you? Can you now comunicate in German? And how many days you need? And also, did you use some other sources for learning?

August 18, 2014

https://www.duolingo.com/profile/Jocelyn.Qiu

Hey! thanks and that's very kind of you for saying that :) Hmm..I think Duo did help me in its gaming way and kept me on a learning streak, although I admit my streak went on and off during the process. But yeah, Duo's materials are good for beginners, and only for beginners. When I finished the tree, I noticed I am supposed to be able to comprehend 50% of German words in daily content according to Duo's evaluation. And honestly, I feel like I am getting used to everything about the language, i.e. tones, pronunciation, structures like "I have the tree finished" :D (its English equivalent), and even start to get the sense why Germans act like Germans haha! I don't think my German is good enough to output my ideas without frowning, so yeah, I'm going to keep on fighting and starting to read "Steve Jobs" by Walter Isaacson auf Deutsch of late. haha, call me crazy and wish me luck! And good luck with your study :)

August 18, 2014

https://www.duolingo.com/profile/jelena.queen

But you aren't crazy! Reading books in language you want to learn is a great way to improve your skills! I will do that when I get to enough level of knowledge, too! And of course, good luck!

August 19, 2014

https://www.duolingo.com/profile/stephapus

Wow, congratulations :D I hope you continue your studies in German, and that you had fun learning with Duolingo ^^

August 18, 2014

https://www.duolingo.com/profile/ny2ko

LOL!

August 18, 2014

https://www.duolingo.com/profile/HarshadDat

Inspires me to continue.

August 19, 2014

https://www.duolingo.com/profile/Barak2014

Super!!!

August 17, 2014

https://www.duolingo.com/profile/Mister_De

Great job! I hope I´ll finish mine someday xD

August 17, 2014

https://www.duolingo.com/profile/gixxerpilot

Good job :-)

August 17, 2014

https://www.duolingo.com/profile/ScarletWhimsy

Congrats!

August 17, 2014

https://www.duolingo.com/profile/MandyDieKatze

Congratulations! Good luck with all your practising.

August 17, 2014

https://www.duolingo.com/profile/Rebecca.De.Smedt

Congrats!!! :)

August 17, 2014

https://www.duolingo.com/profile/Kristibob

Congratulations!

August 18, 2014

https://www.duolingo.com/profile/AlissaKrantz

Fantastic! I'm working my way through mine every day.

August 18, 2014

https://www.duolingo.com/profile/interpreter.dana

Congrats! I just started my German course 5 days ago. How long did it take you to finish them all? I think Duolingo teaches too less and it's mainly a tool for practice and exercises. Do you also need other teaching materials to finish all the exercises here?

August 18, 2014

https://www.duolingo.com/profile/Jocelyn.Qiu

Hey, thanks! It was this February when I OFFICIALLY declared the war on the German tree ;) But honestly my streak went on and off ever since, however I focused on 1 tree at a time, unlike some other multitaskers :). Hmm..I do get help from Google translate to finish some of tricky exercises, and yeah I agree, Duo's materials are good for beginners, and only for beginners; and if you, like me, want to get serious about speaking the language fluently, I'd say we should find more ways to acquire and store language data on our memory, so for one thing, I am starting to read "Steve Jobs" by Walter Isaacson auf Deutsch of late. haha, call me crazy and wish me luck! And good luck with your study :)

August 18, 2014

https://www.duolingo.com/profile/ArvindhMani

You are not crazy, but really committed to learning German! I hope to do the same some day, and... um ...

have a streak of 1 year. There. I said it. Now I won't give up!

August 18, 2014

https://www.duolingo.com/profile/interpreter.dana

@Jocelin.Qiu: Thank you for the detailed reply and good luck with the reading!

I think perhaps listening to news broadcast might also help.

Besides, I guess that we have a same learning situation here: I gathered from your user name that your mother tongue is not English but Chinese (and same case here with me). If I'm right, how do you manage to keep your English proficiency from the influence of German, as the two languages resemble each other in such a great way?

August 18, 2014

https://www.duolingo.com/profile/creativeri

Congrats! how long did it take you?

August 18, 2014

https://www.duolingo.com/profile/IsmaTim

She said from February until now.

August 19, 2014

https://www.duolingo.com/profile/Athenicuber

looks like Python to me.

August 18, 2014

https://www.duolingo.com/profile/CliffJonesJr

JavaScript, I believe. The console.log is a giveaway.

August 18, 2014

https://www.duolingo.com/profile/Margaret3535

How proficient do you feel now?

August 19, 2014

https://www.duolingo.com/profile/moon1002

infinite loops

August 19, 2014

https://www.duolingo.com/profile/SkillsInPills

Gut gemacht! Hoffentlich kannst du jetzt sehr gutes Deutsch verstehen und sprechen!

August 19, 2014

https://www.duolingo.com/profile/Gogreengogreen

Congrats!

August 19, 2014

https://www.duolingo.com/profile/freebee.addict

you can try some of the mock papers on the goethe istitut, starting with a1 level here: http://www.goethe.de/lrn/prj/pba/bes/sd1/mat/enindex.htm and see how you fare :)

i have come across other websites where you can find past gcse and a-levels papers, so you can check what level you're at

August 20, 2014
Learn German in just 5 minutes a day. For free.