The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
When I was teaching at a tech college, the class was split into four project groups for a four-stage project, all working from the same specifications and requirements. This was the last project in their bachelor study.
I wanted them to get accustomed to what they must expect when they enter working life: Take over someone else's code. So for each of the four phases, the results produced by each group was rotated to another group, as a starting point for the next work phase.
This was met by so much disgust and hatred that I was happy that these students would be out of college within a few months. I never tried to repeat anything like that. Still, I think Computer Science students should have been "forced to" work with the code of other programmers - that is, average middle class programmers, not the near-ideal source code of highly recognized open source systems, which does everything right, follows standards conistently etc.
The code handed over to you from an overworked colleague who never had time to clean it up, it never had a clean design but has grown uncontrollably like an amoebae, with lots of loose ends and age-old TODOs... That is far from the idealized, academic open-source code. And then think of all the non-idealized code of the zillions of open source offerings made by less than perfect programmers, but thrown out to the world in the hope that someone will volunteer to clean it up...
That's the evilest thing I can imagine!
It should be a very good lesson though.
Especially with students, so they get to see other code as well.
Perhaps even the most valuable lesson they get.
I learned a lot from other code, also how NOT to do things
Member 7989122 wrote:
This was met by so much disgust and hatred
They're students, let them suck it up and tell them that's how it's going to be!
I salute and support your unorthodox and cruel teaching methods!
A brilliant idea, although the reaction was unsurprising. Having to suffer through this three times was cruel, but applying it to a two-stage project would be fair. If told up front that it would rankle them, it would probably temper the reaction.
that code block was a common trick from VB6 days -- there's code under a button somewhere and that has to run for some time, but async code is hard, so we just "block" logical progression by waiting for completion (in this case, 5 seconds), but we have to `Application.DoEvents()` now and then or the app becomes unresponsive.
It's not an ideal situation -- `Thread.Sleep()` could rather be replaced by something like `Test if mail sent`, but that's why it's there.
Ummm, Thread.Sleep() holds the UI & Application.DoEvents releases the UI ? (I have used it to update the Form while waiting for some stuff to happen) most of the time unless you are very luck if DoEvents gets through a code review!..
I just spent over an hour fixing some custom DateTime TextBox that only worked if the system clock was in a specific Dutch format (both CurrentCulture and CurrentUICulture had to match)
Yet another reason why we UI developers get the big money .
Sander Rossel wrote:
I prefer having my OS in English because it's more Googleable
My employer insists on providing our UI's in English, French, Italian, German, Spanish, Japanese, Chinese Simplified, and occasionally Polish and Russian. Despite that, we find most of our customers running the UI in English. I think you've helped me figure out why.
Probably about 7 years ago I was talking with our IT guy about how far phones have come and how cool it will be when we can use our phones as our main computer. I even discussed it on the lounge and had some say it was the dumbest idea ever and would never fly. Glad to see the rest of the world didn't feel that way.
I'm a bit ashamed that I lost track of what was going on with the desktop mode of Android phones. I notice that you can run Microsoft Office on Samsung's in DeX mode so we're pretty much there.
Now if only Visual Studio Code would run on Android. (StackBlitz is almost there...)
I've had the S8+ for a while now, and I'm still learning all it can do. I suspect I've only touched the surface, since I'm scared to open most of the garbage that came pre-installed from Verizon. I even used it elk hunting last year with an app called onX Hunt, and it tracked my every movement perfectly, providing topo information, and ownership of the land I was walking through. I can't verify it, but I think its accuracy is probably every bit as good as my Garmin eTrex GPS thingy. A very impressive device!