I dag ba jeg OpenAI's chat bot forklare de 8 grunnleggende byggestenene i programmering: input, output, variabler, funksjoner, løkker, betingelser, lister og grener.

... men i stilen til King James Bible.

Og her sitter jeg og måper.

God fornøyelse. Håper det er lærerikt!


Input:

And the Lord said, "Let there be input, that the programs may receive data from the world around them." And it was so, and the programs were able to take in data from the user and from other programs.


Output:

And the Lord said, "Let there be output, that the programs may show the results of their computations." And it was so, and the programs were able to display text on the screen, write data to files, and perform actions.


Variables:

And the Lord said, "Let there be variables, that the programs may store and manipulate data." And it was so, and the programs were able to create variables with names and values, and change the values of these variables as needed.


Functions:

And the Lord said, "Let there be functions, that the programs may organize their code and perform specific tasks." And it was so, and the programs were able to create blocks of code that could be called and reused multiple times.

And the Lord said, "Let there be loops, that the programs may repeat a block of code multiple times." And it was so, and the programs were able to use loops to iterate over arrays and perform tasks repeatedly.


Conditions:

And the Lord said, "Let there be conditions, that the programs may make decisions based on the input data." And it was so, and the programs were able to use conditions to check the values of variables and choose different paths of execution.


Arrays:

And the Lord said, "Let there be arrays, that the programs may store and access multiple values in a single variable." And it was so, and the programs were able to create arrays with indices and access and manipulate the elements in the arrays.


Branches:

And the Lord said, "Let there be branches, that the programs may choose between different paths of execution." And it was so, and the programs were able to use branches to select different actions based on the input data. And the programs were able to solve complex problems and perform many tasks.


Wow.


Koding - en av fremtidens ferdigheter

Trenger du julegave til en 9-14-åring?


Hei


Nå som julen nærmer seg, og du kanskje lurer på … 


“Hva skal jeg gi barna jeg er så heldig å ha i livet mitt?”


… ville jeg minne deg på kodekurset “Oppdrag: Kodelox” og hvordan det vil være en flott gave 🎁!


Kurset er lagd for å hjelpe barn lære koding ved hjelp av den populære plattformen Roblox, og er perfekt for nybegynnere eller de som vil ta kodingen sin til neste nivå.


(Kurset har vært testet på en skole på Stad denne høsten, og tilbakemeldingen fra læreren der var at alle elevene hans hadde glede av det … både de som kunne en del koding fra før, og de som var helt blanke.)


Kurset er digitalt, og kan tas i eget tempo. Barna kan gå gjennom det hjemme, når det passer dere. 


Det vil kanskje si … Skjermtid med god samvittighet i romjulen? 😉


😇


For du skal ha noe å legge under 🎄, får du nå den helt nye, fysiske boken (helt fersk fra trykkeriet! … jeg er veldig gira!) med på kjøpet.


Min yngste sønn med den kliss nye boka rett fra trykkeriet


Jeg har bare trykket opp 50 stykker av boka, og 20 er allerede tinget, så (for å høre ut som en bruktbilselger - ) det blir førstemann til mølla 😂🎁


Sammen med boken får du denne forklaringen så den vordende koder skal skjønne at det ikke “bare” er en bok 😋 


Klikk her for å bestille 


>> Viktig: Når du har bestilt, svar på denne eposten og si hvor du vil ha boka tilsendt <<


Og … om du vil at barnet skal kunne logge inn med sin egen epost-adresse, send meg den også, så lager jeg en egen konto til barnet og gir deg passordet.


(Barnet får ikke en epost nå, men vil kunne logge inn når dere er klare!)


Så dette er altså planen:


Klikk her og bestill kurs + bok + forklaring, det er fort gjort.


Når boka kommer i posten, pakk den inn sammen med forklaringen, og legg det hele under treet.


Yess 😂🎁. Da er det unnagjort.