[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: images(2).png (15 KB, 588x234)
15 KB PNG
Does memorizing these things really have any utility?
>>
the number of bytes should come naturally to you, it takes like 30 seconds to "memorize".
the range you'd know in terms of powers of two, not the exact numbers
>>
>>110487984
Nobody made an effort to memorize this.
It came naturally as you programed in C.
(I'm speaking in paste tense because programming is obsolete.)
>>
>>110487984
This is just 2^8, 2^16, 2^32, why would you need to memorize anything
>>
>>110487984
Is memorizing too hard for you? Is this actually intimidating for you?
>>
File: 20261201_211218.jpg (103 KB, 1056x452)
103 KB JPG
>>110488167
I can somehow, but outside the specific thing I'm currently in it feels weird
>>
>>110488075
>>110488147
motherfucker i fucking knew it, my professor taught me to memorize this shit, and i did, but he never explained the why nor the pattern behind it, no wonder i now work as a fucking sysadmin grunt, i should've known better to not do what people told me literally, fuuuuuuuuuuuuuuuuuuuuuuuuuuuck
>>
>>110487984
>>110488292
if u didnt notice this obv pattern then u wouldnt have made it in the field anyway
>>
>>110488336
i'm just following orders man, being a good boy and all.
fucking hell.
>>
>>110488292
i mean it can be a cool party trick to know the exact value of 2^32 but other than that it's quite useless
>>
>>110488292
Did your math teacher need to explain to you that the max number three digits could hold is 999? It's not his fault you got IQ mogged.
>>
>>110488487
nice base-10 assumption. who's getting iq mogged here.
>>
Use case?
>>
>>110488417
Knowing the exact value of 2^32 and 2^64 is pretty irrelevant too, for all use cases they're 4 billions and "big enough" respectively
>>
>>110488539
One can assume radix is ten if not specified, and from context that's clearly implied here. A lot of math notation has context-specific assumptions because people who do math are assumed to not be chromosome hoarders.
>>
>>110487984
If you have to ask, probably not.
>>
>>110487984
This is actually incorrect, as it's platform dependent.
>>
File: zelda dungeon map.jpg (277 KB, 2048x1536)
277 KB JPG
>>110487984
>16-bit int
What is this, 1985?
you should know ranges for 1, 4, and 8-byte integer types
knowing the range of a single byte will clue you in to how you couldn’t carry more than 255 rupees in the original legend of zelda
4-byte integer types can hold 4 billion different values
if they’re signed, the range goes from -2 billion to +2 billion
you should also know doubles because they’re the default number type and the only number type in JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER is useful there
>>
>>110487984
>include <stdint.h>
Not my problem
>>
>>110487984
>memorize
The nocoders out themselves instantly. Same morons who spout “memorizing le syntax is obsolete!” as if programming were just drilling flash cards or something. Did you “memorize” how to walk? Did you “memorize” how to drive a car? No you just learn by doing. Anyone who rejoices in not having to memorize things anymore never struggled with that problem before either because it is obvious from the complaint they never even tried in the first place.
>>
always thought it was retarded to memorize things when you can just either remember it naturally or google it
>>
>>110487984
This table is wrong.
You have to use fixed-size types to get consistent byte lengths.
>>
>>110489040
>just either remember it naturally
sometimes you can’t do this in the time you’ve alloted for yourself
and you gotta sigma grindset
>>
>>110489057
this. the only guarantee are certain inequalities on size between the different types.
>>
>>110489186
that shit is for the birds, not me
i member shit i member, i don't try to force it
>>
File: 1776469153961130.jpg (62 KB, 421x421)
62 KB JPG
>>110487984
>>110488292
So you memorized the ranges without being taught why the ranges exist and what a float actually is?
>>
>>110488292
are you retarded perhaps
>>
>>110488292
Ignore the fucks blaming you. Teachers fuck up a lot of people.
>>
>>110488147
what power of 2 is 255? How about 65,535? 4,294,967,295?
>>
File: 1772151944583123.png (262 KB, 640x640)
262 KB PNG
>>110491032
i'm fine anon, everything is fine.
>>
File: chill.gif (2.04 MB, 640x354)
2.04 MB GIF
>>110491126
>>
>>110487984
I've always used int's in huge "for" loops (millions or more iterations) in Python and I never had issues.
>>
>>110487984
Do you go to an Indian college or something?
>>
>>110491536
shitty bait you don't use declare types in python
>>
>>110487984
kind of does. there's a reason why it's standardized like that from the history of word sizes. all real low level languages have you choose an integer type in some way or another
>>
>>110488292
if you couldn't figure this out then you are entirely uneducated in the field of computer science. something was presented to you and you accepted it blindly, never thinking to ask why. also, that table is terrible. the floating point types are underspecified, and the integer types are implementation defined.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.