>while(1) >doesn’t know any alternatives to busy waiting >if(var==true) instead of if(var) >useless verbose code in general >using ruby, Scala, Java, or any other meme language >coding bootcamp >”why do I need to learn math in CS” >never utilizes true algorithms >3 or more nested for loops(honestly even 2 is pushing it unless absolutely necessary) >”why do I need to learn assembly language I can just use python instead” >has not taken any applied CS classes >most C”S” classes taken were just programming intros >”no I haven’t ever programmed a microprocessor in C(or lower)” >doesn’t understand difference between kernel and OS >spends over 50% of their time doing web”””dev””” >never used a BSD system >can’t into recursion >can’t into space/time algorithm analysis >can’t into the electric/electronic/physics side of computing >took an elective on web development in college(if web dev was actually required you went to a brainlet school)
>can’t into binary/hex >uses overkill IDE >never read any documentation ever, instead relies on stackoverflow >musheen lernding
Liam Nelson
>has trouble with linear algebra
Liam Rivera
Picture is correct, kilo means 1000. 1024 bytes = 1KiB(kibibyte).
Justin Ortiz
I wonder if you have a job lol
Aiden Carter
>tfw can do all things OP is talking about properly but still flunked out of uni by not doing work >tfe got put on academic probation despite getting a 3.2 by doing my work in my last semester (1.8 overall) >tfw smart but not a hard worker
Joseph James
Quick, we need an inexpensive way to build a ten-state flip-flop, also known as a flip-flop-flap-flep-flup-floop-fleep-floup-flaip-floap, so that normies can understand computing.
A byte would then be ten bits instead of eight bits, and store ten billion different values. A single bit could be used to address another bit within a byte.
A kilobyte, then, would really be a thousand bytes, and could be indexed with only three bits. A megabyte could be indexed with six bits, a gigabyte with nine. A single byte could be used to index ten gigabytes.
Levi Cooper
Oh boo hoo. Work harder
Aiden Gray
Did i say >tfw i didnt get spoonfed my degree? No, cause im not a fag like you
Jeremiah Butler
>Did i say >tfw i didnt get spoonfed my degree? Yeah, pretty much.
Use normal quotation marks if you don't want to bother using the appropriate ones on both sides, don't just use the right quotation mark everywhere like a retard.
Easton Ortiz
On a tech oriented board, really any quotation marks other than the neutral ones are already inappropriate, even if they're on the correct sides.
Julian Green
>Jow Forums >dunning-kruger: the boardv2.0
>HP >absolute shell of what it was, most laptops completely suck and have a weird tendacy to slow down even after a total reset. Only the most expensive HP laptops are decent. Go with acer or thinkpad if you want a respectable device even at low to mid price points.
Carter Thomas
>if(var==true) instead of if(var) This is about readability so you don't overlook shit in code review Especially with (var==false) instead of (!var)
September and it's already college freshmen everywhere
normies usually don't even understand that with 10 10-value bits one could store 10^10 rather than 10*10 different values depending on the languages definition of equality and truthiness, (var==true) and (var) might differ in their behavior for some values of var
is this brainlet? import os # setting the kind of directory separator depending on the os if os.name == 'nt': slash = '\\' else: slash = '/'
Ian Torres
>if(var==true) instead of if(var) >tfw did this while working on my kernel at 5 AM
Lincoln Wilson
Doesn't matter, recent OSes accept both
Thomas Baker
Oh look another forever unemployed programming nitpick autism thread.
Nathaniel Wright
No, it isn't. b is for bits, B for Bytes.
Owen Walker
just use /, windows accepts it 90% of the time
Jayden Murphy
or more nested for loops lets see how you iterate over a 3-dimensional array then
Nathaniel Ortiz
1KB is 1000 bytes, 1 Kibibyte is 1024
Jordan Hernandez
that's the thing, I wrote a whole shitty 80 line script where I was using that slash in f strings like faggot like this os.listdir(f'~{slash}.config{slash}poop')
>tfw it's just as slow but requires to flatten the array first, making it in fact slower
Parker Bell
>flatten the array first There's no need to not have it flattened always.
>slower You obviously don't know how pointers work. An array of pointers to an array of pointers to an array of values, means that every look up is at least two memory indirections, and also requires multiple allocations and frees. Whereas a single flattened array is a single allocation and free, and requires no indirection.
Mason Sullivan
>nested for loops you might be surprised to learn that some of the most efficient matrix multiplication algorithms utilize even more than 3 for loops I think this is a case of you thinking you're hot shit after 3 years in a CS degree. Stop shitposting on Jow Forums and keep learning instead you faggot.
Jeremiah Harris
>flatten the array first It's trivial to calculate x y and z from an index you moron.
before, and for some reason I thought it was clever because I didn't use an else. Shit happens when you're tired.
David Scott
>I don't know what the words "cache" and "spatial locality" mean.
Aiden Cox
See You should always use a flattened array, but in the case you don't, it's not exactly hard to avoid three nested loops.
Jonathan Cruz
there is literally zero difference with modern pipelining and speculative execution.
Lucas Baker
1kb=1000bits
Bentley Murphy
>I could go on forever You could, but you could also have sex. None of that nitpicky shit matters
Luke Hill
Now that's an interface I would sniff packets from.
Colton Reed
1kb = 1024 bits 1kbit = 1000 bits
Austin Wright
Yes, use os.path.split(fullpath) os.path.join(path, filename)
Robert Phillips
>it's not exactly hard to avoid three nested loops. yeah but why would you, if you have 3 bounding ranges to iterate over in a 3 dimensional array, the best way to do it is for x0 to x1 for y0 to y1 for z0 to z1 ...
Jace Reyes
No 1 Kb = 1 kilobit = 1000 bits 1 KB = 1 kilobyte = 1000 bytes 1 Kib = 1 kibibit = 1024 (2^10) bits 1 KiB = 1 kibibyte = 1024 bytes Microsoft however uses "kilo-" instead of "kibi-" (and "mega instead of mebi and so on), which is why when you buy a 16 GB MicroSD and you open it in windows it says that it's 16,000,000 bytes - 16 Giga (10^9) Bytes - and 14,9 "Giga" (but really Gibi, 2^30) bytes.
while (1) is less self explanatory than for (;;) (because you can read it as "for (ever)" as a pneumonic), which is in turn less self explanatory than while (true). you should use one of the latter two when setting up a loop whose terminating condition is somewhere inside the block
Robert Hill
It was originally posted by a PyTard that was "trying to print vectors" and didn't understand what was going on.
Samuel Reyes
I'm not a programmer so I don't feel bad asking what's the problem with nested loops and how would you avoid it? Is it something gay like breaking everything out into functions and passing shit back and forth
Noah Mitchell
The problem with nested loops is that they're slow. The solution is to store your application data in a database, thus offloading iterative boilerplate to a system that's already designed to largely optimize it out by forming and exploiting associative connections (rather than serial) between the data you've stored.
Jaxson Brown
>>while(1) What wrong with it?
Ian Cox
>requestsauce(yes)
Kevin Morales
>while(1) This is a perfectly acceptable construction in C. >doesn’t know any alternatives to busy waiting A valid complaint, although I would note that JavaScript doesn't quite have a blocking sleep. >if(var==true) instead of if(var) Generally unnecessary bullshit, I'll agree. >useless verbose code in general Considering that verbose code is sometimes necessary, your statement is uselessly verbose. It's just useless code that should be avoided. >using ruby, Scala, Java, or any other meme language Some people do more productive work in these languages. As long as it's acceptable for the requirements of the task, what's the problem? >coding bootcamp They seem to be enough for some jobs, though I can't say they churn out the best programmers. >never utilizes true algorithms What do you consider a "true" algorithm? >3 or more nested for loops(honestly even 2 is pushing it unless absolutely necessary) You use what is necessary for the algorithm you are implementing. >”why do I need to learn assembly language I can just use python instead” >has not taken any applied CS classes >most C”S” classes taken were just programming intros >”no I haven’t ever programmed a microprocessor in C(or lower)” >doesn’t understand difference between kernel and OS Faults of education, really. >spends over 50% of their time doing web”””dev””” Web applications are kind of a big part of the industry these days though. >never used a BSD system To be fair, most things you'd want to use a BSD system for, Linux is good enough. >can’t into recursion >can’t into space/time algorithm analysis Faults of education, again. >can’t into the electric/electronic/physics side of computing Not a part of computer science. Electrical enegineering is its own specialization. >took an elective on web development in college(if web dev was actually required you went to a brainlet school) Or the school recognized that you would likely be doing webdev at work.
John James
Not gonna lie, var is more readable than var==true, and !var is more readable than var==false
Juan Butler
>not using pathlib
Benjamin Russell
This in the end op is still stupid anyway real smart people work on hard problems instead of complaining on some anime site about people not knowing obscure shit that they know