How does programming language relate to binary code?

I'm wondering..
How does programming code looks like in binary code?
What does the compiler do with the written sketch?

Here's some info on compilers, assembly and machine code.

I can write in a high level language and compile it to run on very different systems and chips.

You can insert AVR code mnemonics into Arduino code, the instruction set is not large. If you get real good then you control what is held in the general registers and potentially speed up execution of critical parts but in practice, the compiler does a good job of changing C/C++ to AVR even to making those choices.

Before you can do much with assembler, you have to learn about the hardware it's to run on, no small task.

1 & 0.

Back when the computers were first developed, they actually coded with 1 & 0 using punch cards.
I remember coding with assembly for my commodore 64. I gave up soon after.

Just be glade you're dealing with moderns languages. These codes in whatever language are then compiled, converted to 1 & 0.
Some don't need to be compiled like javascript.

Thanks!
I know some programming, got into Raspberry Pi programming with GPIO talking to the outside world and am now starting with Arduino. It's very interesting to get to know how microcontrollers work, that in time I can write a program burn it onto a tiny black chip that sits in a circuit and does it's work!

Links for L8R, you certainly can program standalone chips. Just don't forget the bypass caps!

How to make an Arduino-compatible minimal board -- covers everything for 328P and 1284P AVR's.

The ATmega1284P is for when you want/need more pins, an extra hardware serial port, 128K flash and 16K RAM.
Yowza! But a few months ago they still cost almost $7 each for the DIP version.

MIT Hi Low Tech -- programming 8 pin ATtiny45/85 chips, they run a dollar or so each.

OLD make Magazine video covering the MIT Hi Low Tech, How to Shinkify You Arduino Project

USB with stand-alone AVR's, the community projects main page.

Anyone remember the Imsai or the MITS Altair? You could always tell someone who had one of those by the "binary blisters" on their fingers. My first PC was a SOL-20 with 8K of memory and a modified 12" Hitachi for a monitor. Was also part of an NSF grant that used the KIM-1 with a 6502 and 256 BYTES of memory. Gees...I feel two years younger than dirt...

Sometimes I envy those who were working with electronics and programming in the very early days of computing.
Econjack you are talking about the time of young Steve Wozniak and Bill Gates and the Homebrew Computer Club right?
And the Altair being a kit computer that you could program with a few switches to set bits and then do ... nothing?
I read Wozniak's book iWoz, I love it!
On the other hand, if I would've lived there and then I was probably even a lot more enthusiastic then now and had a working life and career in computing. Now I'm a freelance photographer, I come at diverse beautiful locations, earn all right/ just enough, and I can learn everything I want about basic computing from the internet with my laptop on the couch! While I'm waiting on the parts that is, off course practice is the best way to learn. I can't wait to learn my now 2 year old son (so I have to wait some years) about computing and building his own robots. I hope he's interested..

So thank you all you pioneers and everyone else around the world who are willing to help and advise me!

If you want to grow up with electronics and programming then NOW is much better than THEN!
THEN -- every part cost dear and didn't do a hell of a lot.
NOW --- we have cheap toys that beat the crud out what used to cost week's pay at middle class wages.
NOW --- even the phones often have more than we only dreamed of having on a desktop.
NOW --- you don't need a EE degree or semi-equivalent just to be able to put working packages together.

And that's the tip of that iceberg.
But of course THEN we didn't have a world that's like a game of Monopoly nearing the end stages so overall I sure liked it better THEN than NOW, but I still have to marvel over the neat bits available.
Maybe being that much younger is also part of the THEN draw, I have to admit that too.