Message from @M4Gunner

Discord ID: 543236938476421120


2019-02-06 23:47:38 UTC  

the worst part is that my uni professor would probably prefer the one on the left

2019-02-06 23:48:51 UTC  

`My professor told us he will stab us if we use the break command.
My professor just told us that people who use break inside of loops are bad programmers. I honestly have seen it and used it wherever it helped make the program more efficient or simple to understand. Should I follow his suggestion not to ever use it even outside the exam, ie in actual code?

He also says that every variable should be declared on top, even the indexes in for loops, which means never using limited scope variables. That sounds really stupid because usually smaller scoped variable mean less errors when writing code.`

2019-02-06 23:48:58 UTC  

unironically what he said

2019-02-06 23:49:04 UTC  

and much shittier stuf

2019-02-06 23:49:25 UTC  

like, can't use variable scope

2019-02-06 23:49:39 UTC  

aka no
for(int i = 0 ...

2019-02-07 00:05:16 UTC  

@Ondsinet tell him that c++ is the future

2019-02-07 00:05:23 UTC  

fuck his c logic

2019-02-07 00:05:34 UTC  

but c uses all those things

2019-02-07 10:02:13 UTC  

one man's experience is another's premature optimisation

2019-02-07 12:03:25 UTC  

my guess would be, he's seen `O(m*n)` shit like
`for (i=0; i<m; ++i) {
for (j=0; j<n; ++j) {
if (some_condition(i,j)) { foo[i].bar = bar[j]; break; }
}`
too often, when it could've easily been `O(m+n)` or `O(m*log(n))` at worst.

2019-02-08 01:05:55 UTC  

yes hi

2019-02-08 01:07:23 UTC  

Is this book good?

https://cdn.discordapp.com/attachments/423219052849397773/543236371645726720/2019-02-07_17_04_06-003171.png

2019-02-08 01:08:07 UTC  
2019-02-08 01:08:20 UTC  

does the hardcover cost less than the kindle

2019-02-08 01:08:45 UTC  

if buy used, barely

2019-02-08 01:09:02 UTC  

im sure i can easily find this pdf for free

2019-02-08 01:09:12 UTC  

hmm

2019-02-08 01:09:28 UTC  

i never trust bestsellers

2019-02-08 01:09:37 UTC  

because they usually appeal to normies

2019-02-08 01:09:38 UTC  

if people buy it, it sucks

2019-02-08 01:09:40 UTC  

fact

2019-02-08 01:09:54 UTC  

if the theater is full, the film sucks

2019-02-08 01:09:55 UTC  

and normies do love refactoring

2019-02-08 01:10:09 UTC  

they love the idea of it

2019-02-08 01:10:20 UTC  

but do they love doing it

2019-02-08 01:11:06 UTC  

doubt

2019-02-08 01:11:18 UTC  

they love to try

2019-02-08 01:11:40 UTC  

ah yes I replaced
i = i+1
with i++

2019-02-08 01:11:45 UTC  

this must make code faster

2019-02-08 01:12:11 UTC  

incorrect--it will compile to the same code

2019-02-08 01:13:03 UTC  

but it reads faster, which is still an improvement

2019-02-08 05:21:32 UTC  

Nano > vim

2019-02-08 05:21:45 UTC  

DIE NIGGA

2019-02-08 05:21:55 UTC  

LEAFPAD IS CLEARLY SUPERIOR!

2019-02-08 05:22:13 UTC  

Also only autistic retards who want to waste company $$$ use vim

2019-02-08 05:22:23 UTC  

Notepad is better

2019-02-08 05:22:26 UTC  

I unironically use GVim

2019-02-08 05:22:33 UTC  

GVim is actually good

2019-02-08 05:22:38 UTC  

Not ++, just notepad