๐Ÿฆ– Tech Talk Thursday ๐Ÿ’ป

This week I’ve been learning coding for 5-10 minutes a day, it’s been surprisingly fun.

Welcome to “Tech Talk Thursday” (Woo!).

I’ve been using the free Grasshopper App to learn Java, I’m not a computer major, not a “computer person” but it’s very accessible.

I find myself relying on a lot of math knowledge and some extremely amateur Rimworld coding experience, I wonder if I can make it even easier for anyone else interested in trying?

So far I’ve covered the first three sections:

  1. Drawing Shapes

2. Variables

3. Arrays

Part 1: Drawing shapes, the point was drawBox(blue); makes a blue square. The squares move in order from left to right across a line until newLine(); is typed. Command 1 = drawBox(color);, Command 2 = newLine(); In the fictional world of Flat Land you could make an army of workers.

Exercise 1
Exercise 1 – Off Script

If the stripe is the same on top the code is different because it doesn’t need to change lines after each square. It’s still the box code drawBox(color) but it can be drawBox(‘ggg yyy bbb’); the ” matter, the spaces matter, the () matter, they are important to the computer, the spaces indicate new lines (like hitting enter on a keyboard), the ” are saying the inside is the inside, like a cell membrane separates the blood from the cell contents, the ; is closing that command, giving closure to what the command started.

Exercise 2
Exercise 2 Off Script

Command 3 = drawBox(pickRandom(color)); this is a little fun, the computer will pick a color for you…

Part 2: Instead of painting the color directly another way is to set a variable as a color and then use it. Like var LivesThatMatter = Black, would attach that color when you type “Lives that Matter” so drawbox(LivesThatMatter) would give you a black box.

Exercise 3 Off Script

Command 4 = print. It displays text that is defined with your variable.

Exercise 4 Off Script
Exercise 5 Off Script

Without typing print, the information stored is there, but won’t show. The title of the variables can not have spaces so capitals are used to make reading easier, ItHelpsSeperateTheWordsVisually.

3. Arrays, the new term “array” means choices that will show up for a random choice.

Ex: varย answerย =ย pickRandom([ย ย ‘choice 1’,ย ย ‘choice 2’,ย ย ‘choice 3’,ย ย ]);

Exercise 6
Exercise 7 Off Script

I laughed and laughed at baking a hypothetical cake with a penis… not that I would ever do that. But I did go to my husband’s friend’s birthday party, who had a cake decorated with a penis cake topper, the guys started throwing it around after cutting the cake and then I got hit with it. So… it’s just fond memories perhaps, not necessarily pro-cannibalism or extreme feminism by the way.

Not sure if I’ll cover coding next week vs another app or program, but I really wanted to expose people who hadn’t tried the app to what it would be like. I had no idea before hand how easy it would be to start learning, and I think most likely many people wouldn’t have known either.

So, there’s a fun game, a job skill, or a brain exerciser that you can do for free from home, maybe it’s not your jam, but perhaps now you know you could probably learn to handle that if you cared to learn.

I find it an ironic topic to post about, because I’m a recovering technophobe, I’m the last one in my family to get the newest form of technology and I only reluctantly learn how to use it once I get it… but just like math, society uses technology and if you don’t know about it, it’s just to your own detriment… so slowly getting on board with being more open minded and building skill to improve my blog, or my job skills, or my world with more tech skills.

I had a lot of fun learning coding so far, it’s been a few weeks, just 5-20 minutes when I find the time.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.