Professional Documents
Culture Documents
3 Things To Keep in Mind If You Want To Learn How To Code in 3 Months Instead of 3 Years
3 Things To Keep in Mind If You Want To Learn How To Code in 3 Months Instead of 3 Years
Above a two similar out products that have been produced with two different approaches
It is simpler and cheaper to use Hammer and chisel method
But it is strenuous and takes a lot of time… simple work can take up to 80 hours of active
time. Meanwhile the 3d printer method would only take about 30 minutes of active time
In coding, any problem you want to solve can be solved using simpler and cheaper means
too.
To explain this point, I’d give a live example at the end of this pdf
But before that, here are 3 things to keep in mind if you want to learn how to code, faster
1
Coding is made up of two parts
Algorithm
This implies knowing the steps required to solve the problem
E.g to add find the sum of two numbers,
you first pick the first number,
then add the second number to it
Note:
If you don’t know how to solve a problem without coding, you won’t be able to solve the
problem WITH coding
2
Look at code like building blocks
Here’s a secret, the same java that is used by american developers who speak english is
the same that is used by chinese developers who speak chinese
For example;
Blocks view
Implementation
Print(“hi”);
When you’re coding, you have to look at the programming syntax as blocks
3
Aim-Search-Shoot
But to do this you have to understand point number one, which is that… coding is made up
of two part
1.The language-syntax
2. And the algorithm
Second, go to google and search “how to [solve specific problem] in [language of choice]”
For example;
Python was created for code readability, The creator wanted a language that was easy to
read
That why python doesn’t require you to use things like curly braces, {}, semicolons, ;, etc
Java was created to be able to run on multiple devices no matter the underlying operating
software… e.g Windows, Linux,
That is why Java frequently calls on the System class, which enables the programmer to
use system resources without having to understand the OS itself
These are minor details that help you learn new programming languages faster
Sample Code
Here’s a short story
Steps;
1. Write down your email address
E.g m4botdev@gmail.com
4. Write it down
109- 52- 98- 111- 116………
Like ; mustaphabaruwasemail4work@gamil.com
That’s about 40 characters up there
If I’m to use the manual method, I’d have to look through my ascii chart 40 times!
Start
1. Accept user email address
2. For each letter in email address
3. Find the ascii value
4. Output the values
Note that a computer code already has all the ascii built in so no need to find an external one
Code version 1
****************************
//code start
***********************
Code version 2
****************************
//code start
#include <stdio.h>
int main() {
***********************
You can safely think of this as point 2: [Look at code like building blocks]
This is similar to the main method and main class in java language
JAVA
import java.util.Scanner;
int main(){
The point is, you don’t have to memorize the deeper workings…
Imagine it’s just a building block and move on with your code
Code version 3
****************************
//code start
#include <stdio.h>
int main() {
***********************
Next is to accept the email address. Which we will accept as a string variable
Code version 4
****************************
//code start
#include <stdio.h>
int main() {
***********************
Now next step is to find the ascii value for each letter in the email address;
Code version 5
****************************
//code start
#include <stdio.h>
int main() {
***********************
Code version 6
****************************
//code start
#include <stdio.h>
int main() {
//Accept user email address
char useremail[30] = "m4botdev@gmail.com";
***********************
Finally I used the printf function to find the ascii value and output the values of the code
at the same time
#include <stdio.h>
int main() {
//code accepts user input
char useremail[30] = "m4botdev@gmail.com";
//to test code, replace my email above with yours
return 0;
}
OUTPUT:
Your email in ASCII form is : 109- 52- 98- 111- 116- 100- 101- 118- 64- 103- 109- 97- 105-
108- 46- 99- 111- 109-
Going forward;
So what if we wanted to find the binary version of our email using code
Challenge 0.1
Complete this challenge and I’d send you the binary finder code
Also I’d like for more software students and enthusiasts to join our community so that more
people can benefit, so I’m adding one more challenge
Challenge 0.2
1. Share the link for the Serial Programmers community to as 3 people you think will be
interested or 3 groups (you can share with as many as possible people)
3. I’d share a short pdf that shows you how to use the concepts you learned here to
build full software that you can show to software companies or add to your portfolio
My email address:
m4botdev@gmail.com