Live data from Hacker News

The Python yield keyword explained

stackoverflow.com

1–10 of 53 posts

Re: The Python yield keyword explained

#6
post #5

It's a coroutine. Not exactly revolutionary.

I use yield and generators regularly. They just make sense, but I never knew what a coroutine is in an academic sense

This is why you study CS at university before you start work as a programmer. Otherwise you end up being amazed by the basic CS concepts, or worse, you end up reinventing them badly.

Re: The Python yield keyword explained

#7
post #5

Earlier quoted context omitted.

I use yield and generators regularly. They just make sense, but I never knew what a coroutine is in an academic sense

This is why you study CS at university before you start work as a programmer. Otherwise you end up being amazed by the basic CS concepts, or worse, you end up reinventing them badly.

Thank God for abstraction.

Re: The Python yield keyword explained

#8
post #5

Earlier quoted context omitted.

I use yield and generators regularly. They just make sense, but I never knew what a coroutine is in an academic sense

This is why you study CS at university before you start work as a programmer. Otherwise you end up being amazed by the basic CS concepts, or worse, you end up reinventing them badly.

Does studying CS at university make people as insufferably grumpy and unhelpful as you?

Re: The Python yield keyword explained

#9
post #5

Earlier quoted context omitted.

I use yield and generators regularly. They just make sense, but I never knew what a coroutine is in an academic sense

This is why you study CS at university before you start work as a programmer. Otherwise you end up being amazed by the basic CS concepts, or worse, you end up reinventing them badly.

[deleted]

Re: The Python yield keyword explained

#10
post #8

Earlier quoted context omitted.

This is why you study CS at university before you start work as a programmer. Otherwise you end up being amazed by the basic CS concepts, or worse, you end up reinventing them badly.

Does studying CS at university make people as insufferably grumpy and unhelpful as you?

Come on, I've got a reasonable point here. People post on forums asking these questions which should have been answered during their educations.

If civil engineers had a forum site and someone asked "how do I calculate the load a simple beam", people would say, what the fuck are you doing in your job if you don't know that? Who is employing you and why? Where did you go to college? Who was your tutor because next time I'm at a dinner at my college I'm going to ask him how the fuck did they pass you.

Our current trend of saying college doesn't matter really starts to be a problem when professional programmers (yeah I'm assuming that the guy in the question is) are asking basic questions like this. This shows that we do need college education for programmers.

It also irritates me - this guy could have taken the time to learn all these basics, but for whatever reason he thought it didn't matter, and now he's paying for it.

Post reply on HN