Viewing a response to: @cryptoctopus/coding-diary-entry-1-fear-and-doubts-in-javascript-world
First of all, don't get discouraged!! Everyone learns at different paces, and everyone learns differently. Programming any language isn't "easy"...it takes time to learn the syntax and the logic process needed to complete a task. Second of all, take on programming with baby steps. Start with psuedo-code. Short english phrases that explain the basic processes (like whats in your comments). This will help define the basic hitpoints of your program. // Generate random colors and pick one to be the winner // Display the colors // On a click, check the value of where they clicked // Determine if value is equal to winner // Show pass/fail message From that, you can break each line down further to explain the what & how of each. // Generate random colors and pick one winner // Loop X times // Generate random RGB values // Add to color array // After loop, pick a random one and assign it as winner Etc. After 2-3 iterations of that (maybe more as you're new), keywords will start popping out that match with programming words (loop, each, assign, etc). Once that happens, you can start replacing psuedo-code with real code and start to form the functions and events you need to make it work. As you write more sample programs, you'll begin to be able to connect the dots easier as to how to make it do what you need. Code is frustrating. Sometimes its fun. Sometimes its a bitch. Try to get in a logical mindstate and create a set of steps and flows that data has to go through to get to its goal. Comment your code as you go, and even ask questions in the comment that you can come back to, or research later. Let google and stackoverflow be your friends! Nobody codes without googling SOMETHING. Programming in a bubble simply isnt possible with the pace of change in this field! Keep up the good work and remember to step away when frustrated, things come to you when you don't have code in your face. :)
author | hornetnz |
---|---|
permlink | re-cryptoctopus-coding-diary-entry-1-fear-and-doubts-in-javascript-world-20180123t012903021z |
category | coding |
json_metadata | {"tags":["coding"],"app":"steemit/0.1"} |
created | 2018-01-23 01:29:03 |
last_update | 2018-01-23 01:29:03 |
depth | 1 |
children | 0 |
last_payout | 2018-01-30 01:29:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,940 |
author_reputation | 244,007,352,861 |
root_title | "Coding Diary Entry #1 - Fear and Doubts in Javascript World" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,522,953 |
net_rshares | 0 |