|
How about the simple case of removing items from a list within a forwards for loop?
List<int> values = new() { 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 };
for (int index = 0; index < values.Count; index++)
{
if ((values[index] % 2) == 0)
{
values.RemoveAt(index);
}
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
It's hard to believe how difficult it is to purposely illustrate buggy code given the sheer number of examples shown in this list. Especially considering the fact that I've actually done most of these unintentionally at one time or another in my long storied career.
|
|
|
|
|
Public Relations and paleo diet create order. (11)
... and to further the theme, a bonus extra:
Between Tuesday and Monday? (4)
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I see what you did there!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
The hour is up 😁
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Uh huh. But I did Mondays, so I'm giving the others a chance. It's a good clue!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Easy when you know it's themed though
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Public Relations PR
and
paleo diet
create (anagram)
order (definition) lepidoptera
modified 16-Feb-22 7:12am.
|
|
|
|
|
YAUT!
Got the bonus? Pretty sure Paul has.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
|
Nope. PUPA. Tuesday's solution was CATERPILLAR, Monday's was BUTTERFLIES.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Well, that just buggers tomorrows theme solution!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
oops!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
As a cost saving measure this little e-paper gadget I have lacks a video controller. Instead, there are 14 pins wired from my MCU directly into the e-paper panel itself.
I've rarely had to write code this utterly incomprehensible. Driving an e-paper display panel in software is stupid. Especially given this one is "misusing" the I2S hardware to do so.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: there are 14 pins wired from my MCU directly into the e-paper panel itself I think e-paper isn't the best medium to watch the Marvel Cinematic Universe
|
|
|
|
|
Cost saving or lack of software developer? I saw some weird s* because the product developers were all hardware men and couldn't find their way out of an Hello World with a map and a GPS navigator.
To the point that I saw two simple for cycles implemented with goto because the programmer just didn't know about cycles
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
It's hardware that it's missing, not software. =). It's not that the controller is hard to use - it's that there isn't one at all.
Real programmers use butterflies
modified 16-Feb-22 7:51am.
|
|
|
|
|
Is this an epaper where it remembers state if it loses power?
If yes, maybe they were going super minimalist for power savings?
|
|
|
|
|
all e-papers do as far as I've seen. It's probably actually more power hungry this way, because what was a simple hardware component is now a complex piece of software running on a 240Mhz 32-bit processor
Real programmers use butterflies
|
|
|
|
|
arduino / raspberry pi? just saying
|
|
|
|
|
I mean yes, I can use the MCU as a display panel controller, but that's like buying a humvee to drive to your mailbox and back.
Real programmers use butterflies
|
|
|
|
|
|
I just got my compiler to compute a sine table using a taylor series expansion.
Real programmers use butterflies
|
|
|
|
|
|
... In Q15.
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|