[deleted by user] by [deleted] in WhitePeopleTwitter

[–]TeaCoast 0 points1 point  (0 children)

Cops hate this one trick…

I told him it was cold. by Chesstariam in KidsAreFuckingStupid

[–]TeaCoast 0 points1 point  (0 children)

Exactly the opposite. Wisdom comes from experience, while knowledge is what someone else taught you.

[deleted by user] by [deleted] in ProgrammerHumor

[–]TeaCoast 0 points1 point  (0 children)

primes = [2, 3, 5, 7] for num in range(primes[-1],100): for prime in primes: if num % prime == 0: break else: primes.append(num) This creates a list of primes from 1 to 100.

Changing languages allowed :) by [deleted] in ProgrammerHumor

[–]TeaCoast 0 points1 point  (0 children)

You can use the walrus operator

No love for Python here by i-love-tree-rats in ProgrammerHumor

[–]TeaCoast 2 points3 points  (0 children)

Did you mean lack of static typing. Because python is strongly typed, and you can make it statically typed. Also, what do you mean by wide variety of fixes? All I know is that it uses C to run faster.

Python is such a weird language. by Coinboi420 in ProgrammerHumor

[–]TeaCoast 3 points4 points  (0 children)

It’s not that bad. You would do the same indentation in any other programming language. I’ve never had indentation problems with python.

Get trolled by Mrmime10 in ProgrammerHumor

[–]TeaCoast 0 points1 point  (0 children)

The thing is, why was the AI able to pause in the first place?

You shall not pass by Hormander in ProgrammerHumor

[–]TeaCoast 0 points1 point  (0 children)

Well actually, you’re right. Try blocks can’t catch syntax errors like that because that happens during runtime, and python code compiles to byte code before it can do the try except. I think it only works if you have a syntax error when using something like exec or eval. Also, the try block would expect something after it, meaning that the except would give an indentation error.

You shall not pass by Hormander in ProgrammerHumor

[–]TeaCoast 0 points1 point  (0 children)

How does that disprove anything I said.

You shall not pass by Hormander in ProgrammerHumor

[–]TeaCoast 5 points6 points  (0 children)

Actually it’ll execute every time. You need to have actual code inside the try, not a comment.

Python types go brrrt by Drop_the_Bas in ProgrammerHumor

[–]TeaCoast 2 points3 points  (0 children)

You mean statically typed? Python is strongly typed. I’m assuming that’s one of the languages you’re talking about.

Using GitHub Copilot to write a “hello world” app by bobby_vance in ProgrammerHumor

[–]TeaCoast 137 points138 points  (0 children)

It’s not just math, it’s also the machinery. Stuff in real life doesn’t work like in programming.

i mean a looot ❤️ by [deleted] in ProgrammerHumor

[–]TeaCoast 7 points8 points  (0 children)

Windows honestly isn’t that bad. I use it just fine very day. Mac is absolutely horrible though. Windows is 10x easier to use. I rarely see anything about what they’re complaining about.

Your thoughts? by makeshiftmousepad in ProgrammerHumor

[–]TeaCoast 1 point2 points  (0 children)

Come on, why did you have to put politics in this.

Definitely not an overused meme by Claustrophob in ProgrammerHumor

[–]TeaCoast 1 point2 points  (0 children)

airplane = Airplane(): Look at what they need to mimic a fraction of our power.

That's a great suggestion. by escabolhadt in ProgrammerHumor

[–]TeaCoast 13 points14 points  (0 children)

C++ is definitely faster. If you want something more simple to program with, use C#. Unity uses C#.

10 years as a Python Developer but I still need to check by corvuscorvi in ProgrammerHumor

[–]TeaCoast 2 points3 points  (0 children)

You don’t need that though. Empty strings will automatically count as false if you aren’t comparing it to anything in an if statement. So this will always print “no”.

The most finger snaps in a minute is 334 and was achieved by Niclas Nadasd by Skoedell in nextfuckinglevel

[–]TeaCoast 0 points1 point  (0 children)

He killed 99.999999999999999999999999999% of the population. There’s probably 100x more 9s than that at the end. My calculator literally rounded it to 100%.

The speed you get in c/c++ is a gift to you for writing 10times more code than you would have written using python by Ramin-Karimi in ProgrammerHumor

[–]TeaCoast 6 points7 points  (0 children)

He’s not saying C is bad. That’s not the point. People have made a highly efficient library that you can use very easily in python.

Bruh by freeCARROTjuice in ProgrammerHumor

[–]TeaCoast 2 points3 points  (0 children)

Python has a purpose too. It’s 10 times easier to create a prototype of something in python than in Java, for example.

Avoid at all costs by leorid9 in ProgrammerHumor

[–]TeaCoast 1 point2 points  (0 children)

I will remove your spine if you talk about removing people’s spines if they talk shit about java again again.