News for hackers. Stuff that matters.
Re:“Coding is basically just ifs and for loops.” by ravenstine on Saturday December 04, 2021 @01:53PM (#29443291)
If you want to go even lower than that, coding is basically just saying yes or no in response to a yes or a no.

Sure, that's oversimplifying it, but that's the smallest unit of information being changed during computation.

But yes, once you learn the basics that are shared between most programming languages and don't get distracted by the nuances, it doesn't take that long to pick up a different language. Being proficient is of course another question, but achieving a basic understanding shouldn't take all that long when you just focus on how to if-else, how to setup loops, and how to assign variables.

Re:“Coding is basically just ifs and for loops.” by koheripbal on Saturday December 04, 2021 @03:35PM (#29444069)
All chemistry is just sharing electrons.
Re:“Coding is basically just ifs and for loops.” by carbonguy on Saturday December 04, 2021 @06:07PM (#29445144)
Well, it's more complicated than that - you see, occasionally the electrons are not shared, but given up entirely.
Re:“Coding is basically just ifs and for loops.” by chii on Saturday December 04, 2021 @09:35PM (#29446262)
but that's one-sided sharing.
Re:“Coding is basically just ifs and for loops.” by ahdh8f4hf4h8 on Sunday December 05, 2021 @12:08PM (#29450754)
and electrons are just quarks, and quarks are just a state in a quantum field, and a quantum field is just...
Re:“Coding is basically just ifs and for loops.” by devoutsalsa on Sunday December 05, 2021 @03:37AM (#29447756)
Or positrons.
Re:“Coding is basically just ifs and for loops.” by kaba0 on Saturday December 04, 2021 @06:14PM (#29445187)
Not quite. It has to somehow store and later retrieve a few (infinite) “yes-nos” to be general enough.
Re:“Coding is basically just ifs and for loops.” by phist_mcgee on Saturday December 04, 2021 @07:03PM (#29445481)
All machines that satisfy a test of whether they can do yes-no, store the result of that yes-no, and then go to another yes-no are verifiably considered yes-no machines, that is, they are yes-no complete.
Re:“Coding is basically just ifs and for loops.” by ojr on Saturday December 04, 2021 @02:17PM (#29443494)
yes, at the lowest level its binary code, 0 and 1
Re:“Coding is basically just ifs and for loops.” by dane-pgp on Saturday December 04, 2021 @03:00PM (#29443811)
I like to think of myself, actually, as not a code writer, but an author. I just use zeros and ones instead of words 'cause words will let you down.
Re:“Coding is basically just ifs and for loops.” by bonestamp2 on Saturday December 04, 2021 @04:26PM (#29444474)
I like that. Someone on my team referred to us as (data) plumbers and I thought that was a pretty fitting analogy too.
Re:“Coding is basically just ifs and for loops.” by Lwepz on Saturday December 04, 2021 @03:19PM (#29443948)