DEV Community

Discussion on: Important points for CS newbies !

Collapse
 
mccurcio profile image
Matt Curcio

Why do you suggest this?

never try to write programs using "01" strokes. its a binary instruction(machine code) which is created by assembler(software). you can just appreciate but taking that in practice is just waste of time

Collapse
 
slimdestro profile image
D\sTro • Edited

When i was starter I was so impressed when I heard that high level codes are finally converted to 0/1 and I started learning that but in real world, it requires nowhere because this job is done by compilers

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

It is still a cool thing to try out for the lolz though. If you're going to work in fields like reverse engineering, knowing the hex codes of certain instructions at first sight might even save you some time.

Thread Thread
 
slimdestro profile image
D\sTro • Edited

(Hex)#069(little purple color code)
0110(dont know and I wont invest hours remembering these😆)

Hex and machine codes are 2 different thing. We dont use machine code now(compiler does) but we use hex code on daily basis as both dev and design purpose

Thread Thread
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Hex codes are very commonly used when inspecting binary files, so when looking at a compiled executable, one will usually see the machine instructions in hexadecimal. This obviously doesn't just affect CPU instructions though; magic numbers are also very commonly named as things that are just useful to remember if you have enough contact with them.