Christ, man. I've had plenty of these teachers, but right now Ive got a pretty good spread. I'm actually helping one of my professors do jobs for clients right now.
Me, too, my teachers mostly say stuff that's plain wrong and the one that writes code writes it extremely bad.
I kinda just gave up, however it's pretty hard to deal with, cuz I have to confirm everything they say so that I am not disinformed. Makes you think...
Some of them might, although I imagine they'd skip it, but visually impaired people aren't the only people we do this for! Transcriptions can also help:
People with bad internet connections who can't load the image for that reason
People who use third-party clients, mobile apps and/or text-based browsers that have trouble loading the image at high quality or at all
People who have trouble reading small, blurry, or oddly formatted text
There are more ways that they can help, but these are just the ones that come to mind right now. =)
There are plenty of blind or visually impaired programmers. Transcriptions also help people who aren't visually imapired, but have trouble seeing the image for other reasons. =)
Mostly it was copypaste with slight adjustments (e.g. each System.out block after the first just needs extra .getNext()'s added), since there are lots of repeating patterns. The only fiddly bit was the patterns for the strings to format to, because they look very similar but have very slight differences.
You could fit all this code into a few lines, and it would be much more efficient (ignoring other glaring questions like why we're using linked lists in the first place, or why a function called getHead returns a Student):
You're right, the code would be broken if getHead() returns an object even if the list is empty -- it depends on the implementation. I don't see why it shouldn't return null if there are zero students in the list though
21
u/stable_maple Feb 27 '22
What wild was this in?
173
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Feb 27 '22
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
30
u/[deleted] Feb 27 '22
Help Magenta get head... Don't remember that scene from Rocky Horror.
13
u/StochasticTinkr Feb 27 '22
This made my head hurt. And my head.next hurt. And my head.next.next hurt.
17
u/[deleted] Feb 27 '22
I love the 80? character column line just being completely ignored.
6
u/shanster925 Feb 27 '22
"Today we will be learning about chaining."
5
u/Samuel_amos Feb 28 '22
Asking for a friend… is .getHead() really that simple to get some?
8
u/Bit-Tim Feb 27 '22
Is this from Yandere Sim by any chance xD
4
u/xXxEcksEcksEcksxXx Feb 27 '22
oh honey
4
u/RollinIndo Feb 28 '22
.getHead
3
u/Knuffya Feb 28 '22
This looks like one giant accident..
and the ambulance showed up too late..
3
u/Elyahu41 Feb 28 '22
Curious how to fix this
7
u/matyklug Feb 28 '22
Reminds me of Rust for some reason
IO::stuff().unwrap().unwrap().unwrap().unwrap().unwrap().unwrap().unwrap().unwrap().unwrap().unwrap().unwrap()
2
u/FistThePooper6969 Feb 28 '22
pls no
2
u/Quentincestino Feb 28 '22
Well let it on the wild
2
u/skye_sp Feb 28 '22
what the actual
1
u/RyanNerd shameless Mar 01 '22
Tucker and Dale vs. Evil Code: "the code done threw himself into the wood chipper!"
1
u/kimathi_dev Mar 01 '22
Anybody who has to read and change that programmers code regularly:
"ah shitt, here we go again"
0
u/[deleted] Feb 27 '22
[deleted] — view deleted comment
4
u/[deleted] Feb 27 '22
[removed] — view removed comment
1
u/[deleted] Apr 04 '22
[removed] — view removed comment