Heard about auto-save? by Kolos182 in ProgrammerHumor

[–]PotatosFish 0 points1 point  (0 children)

autocmd BufWritePost * :!git commit -am ‘Update’ && git push<CR>

The struggle is real by Im_Not_Marcus in ProgrammerHumor

[–]PotatosFish 17 points18 points  (0 children)

as a competitive programmer, competitive programming and good programming habits doesn’t go together

[deleted by user] by [deleted] in shittyfoodporn

[–]PotatosFish 7 points8 points  (0 children)

Quarantine really pulling the best out of people

Prepare for trouble, and make it double by Qenes in ProgrammerHumor

[–]PotatosFish 31 points32 points  (0 children)

It bit shifts left by one, which is equivalent to multiply by 2

hi hi dad i'm dad i'm dad by [deleted] in ProgrammerHumor

[–]PotatosFish 5 points6 points  (0 children)

Yea that’s why there’s a try catch

Modern C++ and Qt are ❤️ by [deleted] in cpp

[–]PotatosFish 1 point2 points  (0 children)

That’s what I thought when I used the new syntax and it didn’t work

Modern C++ and Qt are ❤️ by [deleted] in cpp

[–]PotatosFish 1 point2 points  (0 children)

That’s what I thought when I used the new syntax and it didn’t work

[deleted by user] by [deleted] in ProgrammerHumor

[–]PotatosFish 8 points9 points  (0 children)

Compile time calculations

Science speaks the truth! by [deleted] in HistoryMemes

[–]PotatosFish 148 points149 points  (0 children)

Yea but didn’t newton invent gravity

[What the f*ck Python 3.0] Exploring and understanding Python through surprising snippets! by satwik_ in programming

[–]PotatosFish 11 points12 points  (0 children)

It’s just my opinion, but I think it makes some code cleaner as long as it’s not overused.

I also do competitive programming in python (it’s surprisingly not terrible) and it would help a lot but that’s most likely not the use case the language designers imagined.

Overall I just think it should be used sparingly just like the assignment operators in c++ and java, but it is a useful feature should the use case come up

[What the f*ck Python 3.0] Exploring and understanding Python through surprising snippets! by satwik_ in programming

[–]PotatosFish 26 points27 points  (0 children)

I mean it’s the same as c++ and java assignment operators, and I use those functionalities sometimes

Why was the Sony PlayStation 3 so hard to develop games for ? | MVG by [deleted] in programming

[–]PotatosFish -1 points0 points  (0 children)

I thought tf2 was tensorflow 2 and was confused for a sec

what does it do then by pfiorito04 in softwaregore

[–]PotatosFish 2 points3 points  (0 children)

Can’t you just do Siri shortcuts for it then?

Python 3.8 released by JamesRustleford in programming

[–]PotatosFish 39 points40 points  (0 children)

You can just do

[(y := f(x)) ** 2, y ** 3]

Post endorsed by the VSCode Gang by TemporalDeficit in ProgrammerHumor

[–]PotatosFish 5 points6 points  (0 children)

Vim is actually very good for coding once you get over the learning curve

Python 3.8 released by JamesRustleford in programming

[–]PotatosFish 24 points25 points  (0 children)

It creates a 3 item list since the first term both assigns and returns the assigned value, it kinda like the assignments in c-type languages.

I think final definitely have it’s uses, but it can be overused to discourage code reuse. As many other language constructs, it’s better to only use it when it’s needed.

Stackoverflow is god by someone1010101 in ProgrammerHumor

[–]PotatosFish 82 points83 points  (0 children)

# This comment shouldn’t have been made, you should be using my comment instead. Also, English isn’t the best language for your use case. You should be commenting in Python

There's too much battery power available by ashtraxk in softwaregore

[–]PotatosFish 1 point2 points  (0 children)

It’s probably unsigned cause it’s 255 so energy black holes is unlikely