Long Road to Code

kakaotalk_20211010_233031888.jpg

Sunday Code

Last week was my introduction to Kotlin using Intellij. I got to the level of writing the "Hello Proof of Brain" and felt pretty good about it. This is the same way I felt in elementary school when I learned basic.

I felt pretty good until the second day when reality hits. Now I'm starting with operators. This looks pretty straight forward for a beginner so I moved on to lesson two in Kotlin Bootcamp https://classroom.udacity.com/courses/ud9011.

I just opened the Intellij with a new project called POBOperators.
The first thing I did was assign the value to TotalPOB to be 155583.75 as that was the total number of POB at the time of writing this. Now TotalPOB has become it's own integer.

Stake

To make things interesting I assigned the integer stakedPOB the value of 90.51% of TotalPOB. That comes out to the number 1408176.0761250001 which is very similar to the current state of POB.

Notice I how I don't have to use any punctuation in the assignment of integers in Kotlin. Everything seems to be pretty simple in Kotlin so what am I missing?

image.png

image.png

What would happen if I tried to call staked POB something it wasn't, like 2 POB. Could I just randomly assign number?

Dang it. I got an error message. The value cannot be reassigned. StakedPOB can not = 2

Now my program can only understand Staked POB to be 90.51% of TotalPOB. If the percentage goes higher or lower then my program will not be able to give you the correct number.

So I suggest you stake POB^^

image.png

Just a few basic skills

I tried working with Null variables and learned that I need a lot more practice with basic programing instruction in Kotlin to continue. I started a free study course with JetBrains academy https://hyperskill.org/tracks and I am trying to learn basic Kotlin skills.

I'm going to complete a project called an "easy" project: "Connect Four". But this is what I will have to learn to just start the first step. I think the green shows what I know already.

It's good to see how much I don't know. I breezed through Units of Information but don't know a "." from a ? in Regexps basics. I have a ton to learn just to be prepared for one simple project^^

image.png

References:

https://pixabay.com/users/hawksky-7468444/
He made the cover image.

https://kotlinlang.org/docs/home.html
About everything you need to know about Kotlin is here

https://play.kotlinlang.org/byExample/overview
A reference to Kotlin code writing.

https://hyperskill.org/projects/202
The connect four project I started.

At the rate I'm going this simple project will finish next year.

H2
H3
H4
3 columns
2 columns
1 column
12 Comments
Ecency