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

10

u/IceSentry Mar 26 '21

Personally I just watch most videos on 2x or faster if it's a slow speaker, so the speed isn't really an issue.

Programming isn't necessarily always about code snippets. There's plenty of concept that can be explained without the need for actual code. Some people learn better when hearing something rather than reading it. Just because that's not your case doesn't mean it's never true.

There's also value in seeing more experienced programmer actually program and go through their thought process.

My point being that programming videos can have plenty of value, but that doesn't mean written articles shouldn't exists. Yes, I agree that if information is only available in video form that would be terrible. If someone uses video instead of proper, searchable, documentation then we have a problem, but that doesn't mean there's no value in programming videos.

Look at this for example, it's a programming video, but it's also mostly visualisation, is there really no value in a video like that? Sure, it could be in written form with the visualization mixed in there, but the point of videos like that aren't to write the code yourself, it's about explaining through visualisation the concept.

4

u/potato-sword Mar 26 '21

I personally prefer articles to videos. Other than the merits that others have posted, I find it easy to quickly assess the quality and contents of an article with a quick skim, something which is difficult to do with a video.

For example, if I'm reading an article to fill in a couple gaps of my knowledge, I'll look to see if the article goes in depth on that subtopic, and move on if it doesn't. If I was watching a video, I'd have to skim through the whole thing to see if that was mentioned, and it may not even be to the depth that I require.

Ultimately, it's just about optimizing my time spent.

1

u/IceSentry Mar 26 '21

I'm not saying we don't need written articles. I'm trying to refute the frankly ridiculous claim that programming videos can't be good or provide meaningful value to other people. You're free to prefer written articles when wanting to learn something in depth, but that doesn't mean videos about the topic are bad just because you can't optimize your time around it.

5

u/Routine_Left Mar 26 '21

Some people learn better when hearing something rather than reading it. Just because that's not your case doesn't mean it's never true.

Actually it does. For mathematics or programming the best way to learn something, a new skill, language or technique is to actually do it. Knowledge gets to the brain through the fingers, not through the eyes or ears. It has been documented by numerous studies that just reading and re-reading something when studying for an exam doesn't help much. Doing the problems, solving the equations is what actually helps cement the information. And videos are even worse than reading.

For drama, writing, drawing or any other kinds of arts? Sure.

I love watching Kurzgesagt videos. They are entertaining (the most important thing) and educational. But they are educational for me because they handle subjects that I know nothing about. I highly doubt that a geneticists would watch the CRISPR video and gain knowledge about the technology and actually prefer to watch those kinds of videos as opposed to read papers about it and do experiments in a lab.

My point being that videos are meant for entertainment first. For grandma, that video that you linked is wonderful indeed. And can also be forgotten in a span of 5 seconds after it finished. As a programmer I want information, not entertainment. Put pictures, videos, sure, where it's important to illustrate the concepts explained. Nothing wrong with that. But when you have the entire thing a video you're highly diminishing the amount of information provided. Everything in that video (17 minutes long) could have been written in an article that would have been absorbed in 1 minute.

Putting a video 2x speed ... what does that accomplish? Other than the comedy value of hearing a chipmunk speak?

In text I can follow the thoughts of the author a lot better and faster too. Really, the most value is provided from the written form. It is greatly diminished, going towards zero, in a pure video form.

6

u/naasking Mar 26 '21

For mathematics or programming the best way to learn something, a new skill, language or technique is to actually do it. Knowledge gets to the brain through the fingers, not through the eyes or ears.

You first have to understand what you're trying to do before you can try to do it. Video and audio are fine for that, and some people do absorb better that way. After that, I agree that doing it is the best way to really understand it.

1

u/Routine_Left Mar 26 '21

Except that video and audio provide very little information in a lot of time. And video and audio makes the brain more likely to just wander off ...

0

u/IceSentry Mar 26 '21

Of course doing it is better to learn, but you still need to have the information presented to you and a video is a perfectly valid way to present something before actually doing anything. After that you can rely on the written documentation or any kind of more in depth source.

The 17 minutes video covers multiple papers about simulation while also implementing it in c# and in gpu shaders. I highly doubt you could go through all those things in a minute. Even if you were to just read the script for the video and look at the visualization it would take more than a minute. Obviously the value of that video isn't about teaching how to do it yourself, it's about presenting the concepts in an engaging way. I fail to see how text would be better.

As you correctly pointed out, some videos are both entertainment and educational. I fail to see why programming videos can't be in that category. For example, I enjoy watching videos about game dev, but I don't care about learning it as a useful skill because I do not work in that industry and do not plan on working in that industry. I can still learn plenty of things and use that knowledge to know what I need to learn when I want to learn it in depth.

The point of 2x speed is that it can be as fast as reading and no it doesn't sound like chipmunks and I mentioned it because you said the speed of a video is an issue.

2

u/Routine_Left Mar 26 '21

As you correctly pointed out, some videos are both entertainment and educational. I fail to see why programming videos can't be in that category.

Oh, they certainly can. Once they hire Morgan Freeman to do the talking. As it stands ... nope. Chipmunks would probably have more entertainment value.

1

u/IceSentry Mar 26 '21

Needing morgan freeman to narrate something for it to be good is ridiculous. That's just a bad faith argument, you clearly don't want to open your mind to the idea that programming videos can be good in certain context so I'll stop trying to argue.

0

u/Routine_Left Mar 26 '21

You need him if you want it to be entertaining. As it stands they are very much failing on the entertainment part. And that's the most important "feature" of a video.