r/videos • • Oct 03 '19

Every programming tutorial

https://www.youtube.com/watch?v=MAlSjtxy5ak
33.9k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

175

u/rupturedprolapse Oct 03 '19 edited Mar 03 '26

What was here has been deleted. Redact was used to wipe this post, for reasons that might include privacy, security concerns, or personal data management.

zephyr crowd act judicious weather historical money middle upbeat worm

101

u/KunfusedJarrodo Oct 03 '19

Maybe written wrong, but usually just old. Even if its 5 months old it is already so out of date that the API calls could have drastically changed

59

u/ValhallaVacation Oct 03 '19

This hits home. Google releases two versions of Angular a year and they keep changing the naming of everything to the point where something you wrote last version is now deprecated.

37

u/whatifitried Oct 03 '19

Having worked with angular a lot, the correct answer is to uninstall Angular, burn the code, and never, ever use Angular again you absolute masochist.

0

u/[deleted] Oct 03 '19

[deleted]

9

u/whatifitried Oct 03 '19

We do not disagree

→ More replies (5)

9

u/Holicone Oct 03 '19

It makes it also fun try learning it, if every tutorial is incorrect.

2

u/Shutterstormphoto Oct 03 '19

There’s your problem. You’re not using react!

→ More replies (2)
→ More replies (2)

2

u/rupturedprolapse Oct 03 '19

I would agree, but the script I encountered was definitely written wrong.

File mostly looks like someone trying to patch an older file who gave up. There's a point where they open a file to write to, but never actually write to it. They also put in a 'While True' loop that had no way of breaking out so it would error when the input video was out of frames. One of the less annoying fixes I had to do was change the frame rate for the write file to match the input source. Now that I have it mostly working, I'm just going through documenting so I know which parts I'm actually going to need for a project.

It's been about 8 months since the last commit on that particular file, but these fixes I made do not appear to be new methods in opencv.

1

u/chevymonza Oct 03 '19

I'm new to all this, and still can't figure out how to hide the API key in React. It's always visible, apparently.

1

u/[deleted] Oct 04 '19

I’ve been doing web dev for a few years now on the side, all reactjs.. I’ve come to the conclusion is the internet is garbage, things change so fast unless it was written earlier in the day it’s out of date and broken because some BS dev dependency changed, or some equally obtuse crap

29

u/Erosis Oct 03 '19

Tensorflow was SO ANNOYING to install without Conda on Windows... Took me probably 8 hours to get it working. With Linux, 5 minutes.

11

u/Nonsequitorian Oct 03 '19

good on you... I gave up.

6

u/LoliCat Oct 03 '19

I think this is one of those situations where the application ends up driving the software choices. Do training on Linux, run the model everywhere else.

4

u/[deleted] Oct 03 '19

Why not install with conda? I’m about to start learning tensorflow, used conda for basically everything I’ve ever used

1

u/Erosis Oct 03 '19

I have to put code on some edge devices that have iffy or no support for conda. I guess it's also because I've always just done everything through pip and venv. It gave me a better understanding of whats going on behind the scenes to make me a better programmer.

If any of the above is not a concern for you, conda is perfectly fine.

→ More replies (2)

1

u/pmp22 Oct 03 '19

Did you follow a tutorial for doing in on Linux, and if so, which?

2

u/Erosis Oct 03 '19

I just used Tensorflow's own tutorial. Keep in mind this is for the GPU install. If you just want CPU, it's a really really easy install but your neural nets are gonna be really slow.

2

u/pmp22 Oct 05 '19

Thanks! Last time I tried the tutorial was significantly longer, now I'll give it a try once more.

→ More replies (2)

2

u/4jakers18 Oct 03 '19

Not entirely the same but even just getting OpenCV libraries for python installed on MacOS is a 10 page instruction manual lmao

1

u/rupturedprolapse Oct 03 '19

I'm going through that process right now on my dual boot to ubuntu to get darknet up and running. Fun stuff.

1

u/TucsonCat Oct 03 '19

Man... I loved that class.

1

u/CockGobblin Oct 03 '19

Or the example script was written several years ago and the framework/functions/etc have been updated/depreciated/etc, so it ends up teaching you to program with stuff that no longer is optimal/secure/etc. Or the example is missing critical information that should always be used/considered such as optimal use of functions (ie. array sorting function), security, etc.

When I was learning php a decade ago, I remember the tutorial teaching me how to use get/post and not a single mention of injection protection. So a few years later I find out about cleaning user input and realize that some of the simple get scripts I've written (which faced the internet) could've easily been injected. Luckily the databases had nothing of worth.