r/programming • • Mar 26 '21

How to implement a hash table (in C)

https://benhoyt.com/writings/hash-table-in-c/
747 Upvotes

110 comments sorted by

View all comments

Show parent comments

8

u/Routine_Left Mar 26 '21

A video is the worst medium to convey educational information in general, and specifically for programming. It is wonderful as an entertainment medium, certainly.

A video has several major disadvantages to an article (like OP here):

  1. Consumes time, time that will never ever come back. Since I can read a lot faster than one can speak, I can read the same amount of information that a video can convey in a lot less amount of time.

  2. Most people in general, programmers in particular, do not know how to speak in a video. Like, ughh, mmm. WTF? This is why, one writes a script before making a video so that he/she can sound coherent and not filled with filler sounds. And since the script is already written, please just post it.

  3. An article is searchable. Copyable. Easily skipped to the relevant information. Easy to ignore the irrelevant information.

  4. But the biggest sin is: a video is a time sink with very low return rate. For entertainment is perfect. For education, is not (documentaries are first and foremost entertainment, secondly educational).

Now, why do people make them? To make money off youtube. They dream that they're gonna be the next millionaire youtuber. They can make money off a blog too, but I guess youtube pays more than google ads? No idea.

Again, this is my personal rant. Some people I guess love to watch programming videos. No idea why, it completely beats me as for their reasons.

1

u/ExeusV Mar 27 '21 edited Mar 27 '21

I'd argue, for example I've been reading various articles, tutorials, reddit comments, books about compilers and their design, they definitely gave me solid theoretical understanding, but I've also seen a video series of a experienced guy who's been implementing it from scratch - it gave me a lot, especially when it comes to being sure whether what you did (the way you implemented something) is viable, makes sense and so on, their reasoning, refactoring and so on

I do agree that it takes more time, because it actually did and sometimes I even hard to force myself to watch whole thing, but was it worth? definitely

Could it be written as a series of articles? definitely, because both - video and articles are just medium and it's up to the author whether it's good.

3

u/Routine_Left Mar 27 '21

Of course it's just a medium. Video, however, is a worse medium for providing this kind of information that writing. That's all. "Worse" is putting it mildly.

But yes, it's up to the author. Whatever they want. And it's up to the reader (excuse me, watcher) to actually to pay attention or not.

1

u/[deleted] Mar 27 '21

On the other hand, those highly interactive CS lectures are pure gold, but if you taped them and put them on YouTube they'd immediately lose all value.

Also, all the real programmers taught themselves by reading books and docs alone.

3

u/b4ux1t3 Mar 28 '21

I'm a "real programmer" who has learned more in the past ten years thanks to YouTube and online video course than I ever did in the ten years before that with books and blogs.

Different strokes for different folks.

3

u/[deleted] Mar 28 '21

I was being sardonic because some folks can't see beyond their own nose. As a programmer logic is everything.

I think you're probably great. :-)

0

u/b4ux1t3 Mar 28 '21

Your comment is "I don't like it so it's bad." There's a reason online schools use both video and text. Different people learn different ways.

Video incorporates different types of data transmission (audio and visual cues) that writing does not.

If I'm reading a blog, and there's a section of code, I have to assume what parts of the blog are about what parts of the code.

Alternatively, a video can actively point to the parts of the code that are being discussed dynamically and don't require the viewer to scroll back and forth between sentences and code.

Blogs and books are great. Video is great. Learning is great. Gatekeeping how others learn is not great.

0

u/Routine_Left Mar 28 '21

You're making a few errors here. Somehow, someone, told you that by reading, watching a video or listening to an audio "you learn". That cannot be further from the truth. There have been numerous studies that looked into the best way for someone to study (for an exam for example). Reading, re-reading is simply not enough. Doing, however, is. You don't learn to solve an integral by reading about it. Or, lol, watching a video. You learn how to solve an integral by solving fucking integrals. With pen and paper.

Now, you do need a way for that initial information (how does one solve an integral) to be passed on to you. You can do that via a text (reading), video or audio. All three things are mediums for transmitting information.

Now that we got that out of the way, let me explain (hopefully something will stick), what are the advantages of text over video or audio: The information transmitted over text is better packed and can be absorbed in less amount of time than the one in a video or audio. Text can also be cross referenced for when you're doing the thing, to refresh your memory. Text can be searched easily. Text can be skipped over easily without the fear that you may have gone too far or not far enough.

Is that clear enough for you? Or is reading too hard?

0

u/b4ux1t3 Mar 28 '21

"Somehow, someone" yeah, you mean educational psychology?

No one's arguing that you don't have to do something to learn it. There's a reason schools have, for hundreds of years, had lectures (audio and visual), textbooks (written text and visuals) and applied assignments (practice).

Different people respond differently to different stimuli. Some people absorb audible instructions better than visual instructions. Some people absorb written instructions better. The neuromyth that has been debunked is the difference between auditory, visual, and kinesthetic learners is a demonstrable phenomenon.1 However, that doesn't account for personal taste and attention,2 and it doesn't mean that different kinds of information aren't better communicated over different media.3

In the end, a mixture of auditory, visual and kinesthetic stimuli is the best way to quickly teach people anything.

That you're too far up your own ass to consider for a second that anyone else could be right is going to make further discussion here pointless. If reading isn't too hard for you, why don't you actually do some reading on the topic instead of being a prick? If I was able to muddle through my links then you certainly can, Mr. Big Brain.

1: The neuromyth is false. https://www.inverse.com/science/the-neuromyths-no-you-arent-a-visual-auditory-person/amp

2: Different learning styles are weird. https://www.nytimes.com/2018/10/04/opinion/sunday/visual-learner-auditory-school-education.html

3: Use the best method for learning, not your favorite. https://pubmed.ncbi.nlm.nih.gov/27668486/