How Life is like Coding

Authors, Omar Abdelhamid, Science and Technology

How Life is Like Coding

by Omar Abdelhamid

Coding is a science. But in coding, there’s more that you learn than the rules and the commands and the format and the different aspects of every language. While learning coding, there are important life lessons that are learned as well.

1) In coding, there are tons of lines of code to write. Lines are measured in the millions, and they are essential to the foundation of what you are coding. In life, there are some phases and hardships that are tedious that everyone has to go through, and they are essential to the foundation of yourself. If you get past them, you could find success.

2) Sometimes its best to take shortcuts.

Luckily for programmers, there are many coding shortcuts that make it much easier for them to write code. There are pre-made commands and shortcuts that accomplish things that would be much harder without them. In life, we are sometimes given advantages like technology that make it much easier for us to accomplish otherwise difficult things. In both cases, these help us skip tedious parts and get to working on the more substantial parts of projects, and thus create more and more amazing things more quickly and efficiently.

3) Be Creative.

Sometimes there isn’t a command for something, and you need to use your creativity to work out a way to solve a problem or reach a desired result if there isn’t an already established way to do something. Sometimes you can’t find open source code for something, and you have to find out a way to make it work. Similarly, in life, we don’t always learn the solution to our our problems, and we need to think with an open and creative mind in order to solve them.

4) Mistakes aren’t always clear.

In coding, you could have finished a long block of code, but when you run it, it doesn’t execute the way you wanted it to. You think it should be easy to fix the problem, but one big roadblock is in the way: you don’t know what you did wrong. You have to search through your code and test every segment separately sometimes to know what you did wrong before you even think about fixing it. In life, we don’t always know what went wrong when we are faced with an undesirable result. We have to experiment and make mistakes and learn from them so that we could find the best combination of conditions and find success.

Coding is said to be the language of the future. How suiting too, since it serves a double purpose as the basic building block of technology and an important teacher of how to success in life.


The Quadratic Formula

Alwin Peng, Authors, Math, Uncategorized


By Alwin Peng

The quadratic formula is used in order to find the value of x in an equation such as ax^2 + bx + c = 0.

It is x = (-b + (b^2 – 4ac)^(1/2))/2a.




It simplifies a more complicated way to solve the expression. Below, I will show you why the formula works by explaining how it was derived.Deriving the quadratic formula goes as follows:

ax^2 + bx + c = 0

ax^2 + bx = -c .We subtract both sides by C

x^2 + bx/a = -c/a .We divide both sides by A

x^2 + bx/a + (b^2)/(4a^2) = -c/a + (b^2)/(4a^2) .We add (b^2)/(4a^2) to both sides   so that the left side of the equation is factorable

(x + b/2a)^2 = -c/a + (b^2)/(4a^2) We factor the left side

(x + b/2a)^2 = -4ac/(4a^2) + (b^2)/(4a^2) We multiply the top and bottom of the fraction -c/a by 4a so that it can be added with (b^2)/(4a^2), achieving the common denominator of 4a^2 in both fractions.

(x + b/2a)^2 = (-4ac + (b^2))/(4a^2) We now add the like terms

x + b/2a = (((b^2) – 4ac)^(1/2))/2a We square root both sides

At last, we subtract both sides by b/2a, isolating x and getting the quadratic formula:

x = (-b + (b^2 – 4ac)^(1/2))/2a

The method  that we just used to obtain the quadratic formula is known as “completing the square”, but just plugging values into the quadratic formula is a faster and simplified way to complete the square.