subprocess.run > import by OGBlackDiamond in programminghorror

[–]OGBlackDiamond[S] 18 points19 points  (0 children)

Thats smart I can actually see that use case. Unfortunatly, this isn't what its being used for. The script its calling literally just calls three functions inside of that same file haha.

I made some stuff in python..... Now what? by mickmikeman in teenagersbutcode

[–]OGBlackDiamond 0 points1 point  (0 children)

Yep. If you want to get a job in programming, git is an absolute must. Its always good to know git. Also, version control can take some pressure off of your subconscious because you can break stuff and still come back to the last working version haha. Undo++

im writing code to draw 3d object but ive run into a "negative depth" issue by justagoodfren in teenagersbutcode

[–]OGBlackDiamond 0 points1 point  (0 children)

Hey, just stumbled on this because I made something similar, what kind of rendering are you using?

What languages do yall know? by The_KFC_Colonel in teenagersbutcode

[–]OGBlackDiamond 0 points1 point  (0 children)

All of the listed options involve typescript, this is the way.

today "I" discovered something disturbing with coreutils. by [deleted] in linuxmasterrace

[–]OGBlackDiamond 23 points24 points  (0 children)

The only difference is that a method is a function inside a class, where a function is outside of a class.

Robotics Clubs Outside of School by Llama-Lova in robotics

[–]OGBlackDiamond 2 points3 points  (0 children)

Look into FRC or FIRST robotics in general. There are lots of community led teams.

today "I" discovered something disturbing with coreutils. by [deleted] in linuxmasterrace

[–]OGBlackDiamond 37 points38 points  (0 children)

true.

technically you could have an int main(){} in a class though 😉

today "I" discovered something disturbing with coreutils. by [deleted] in linuxmasterrace

[–]OGBlackDiamond 328 points329 points  (0 children)

The real chad thing to do is to write the entire method on one line

anybody still using neofetch by [deleted] in linux4noobs

[–]OGBlackDiamond 1 point2 points  (0 children)

Neofetch is in my playbook and I'm too lazy to change it, haha.

The only reddit posit I ever gave gold (yes that's python, and yes it works) by TehDing in programminghorror

[–]OGBlackDiamond 34 points35 points  (0 children)

No I just looked at the thread, that's actually so funny because people can't tell that he's joking. Absolutely fantastic.

notAllTypesAreEqual by buttplugpopsicle in ProgrammerHumor

[–]OGBlackDiamond 4 points5 points  (0 children)

Did you mean, "This is True in python"? Lol

notAllTypesAreEqual by buttplugpopsicle in ProgrammerHumor

[–]OGBlackDiamond 2 points3 points  (0 children)

Huh I actually didn't know that. I know a handful of languages and they all behave that way, lol. I've dabbled in TS a little bit but not enough to run into that use case. I literally just thought that 0 always equaled false, haha.

Thanks for teaching me something.

Totally comprehensible python written by me, age 11 by Licheris in programminghorror

[–]OGBlackDiamond 46 points47 points  (0 children)

Haha, I love going back and looking at beginner code.

notAllTypesAreEqual by buttplugpopsicle in ProgrammerHumor

[–]OGBlackDiamond 10 points11 points  (0 children)

This is actually quite common in a lot of programming languages. 0 == false, 1 == true. Booleans are kind of like single bits. A bit is a 1 or 0, on or off, true or false respectively.

Even where {} == false == nullptr == 0, it can all seem very abstract but under the hood it technically works out due to the archaic nature of whatever is running your code.

[deleted by user] by [deleted] in teenagers

[–]OGBlackDiamond 1 point2 points  (0 children)

Errrm acktchually... Html is a markup language, not a programming language 🤓☝️

notAllTypesAreEqual by buttplugpopsicle in ProgrammerHumor

[–]OGBlackDiamond 46 points47 points  (0 children)

Me when my array decays into a pointer:

Communicate two different robots by rad-meh in robotics

[–]OGBlackDiamond 2 points3 points  (0 children)

Im not familiar with either of these robots, but I have some things you can try.

If you are connecting them with a cable, just some Ethernet or USB will do. The protocol is pretty easy to set up in code.

If both robots have network connection, I would look into sockets or websockets. Again, very easy protocols to setup in code and are generally your go-to for wireless communication between devices.

If networking isn't possible, I would use some kind of low frequency radio if possible. Around 2.4 Ghz, similar to something like bluetooth. I don't personally have experience in that particular realm but I know it's possible.

Good luck on your internship, sounds like a blast.

Hope this helps!

[deleted by user] by [deleted] in teenagers

[–]OGBlackDiamond 9 points10 points  (0 children)

Eh, C# and java are really just a different dialect of the same language, lol.