Algebra has always been a favorite subject of mine. There's not much theory involved, just a toolbox of methods and the order of operations to solve in. If you reach back into high school, you'll remember (quoted from Math.com):
- Muamua faia gaioiga uma o loʻo taʻoto i totonu o puipui.
- Le isi, faia soʻo se galuega ma exponents poʻo radicals.
- Galue mai le tauagavale i le taumatau, faia uma faʻatele ma vaevaega.
- I le iuga, galue mai le agavale i le taumatau, faia uma faʻaopopo ma toese.
Here's the example from Math.com:
Faʻaaogaina lenei i atinaʻe e faigofie lava.
- Operations within the parenthesis equates to my page layout, in a simple HTML format. I begin with a blank page and steadily populate it until it has all of the elements I'm looking for. To ensure flexible user interface design, I always work with XHTML and CSS. Soʻo se mea e iai faʻaupuga (ie. Faʻamaumauga poʻo faʻamaumauga faʻaiuga), ou te fai atu le faʻailoga ma le ituaiga i tusitusiga dummy, ata, po o mea faitino.
- Le isi, ou te galue ma soʻo se faʻalauiloa poʻo ni faʻaaliga. Nei o aʻu polokalame faʻatulagaina poʻo faʻamaumauga tuʻufaʻatasiga galuega e toso mai, suia, ma uta (ETL) faʻamatalaga pe a ou manaʻo e faʻaalia i laʻu maeʻa itulau. Ou te galue moni i sitepu i lena faʻasologa seʻi vagana o le faʻatulagaina i le mea moni fesili mafuaʻaga i le faʻaleleia atili o gaioiga.
- O le isi o le faʻateleina poʻo le vaevaega. Lenei ou te faʻafaigofieina laʻu numera. Nai lo le tasi tele monolithic tusitusiga, ou lē faʻatino tele o le code ou te mafai ona aofia ai faila ma vasega. Faʻatasi ai ma le atinaʻeina o le upega tafailagi, ou te taumafai e galue mai luga i lalo, ioe.
- I le iuga, galue mai le agavale i le taumatau, uma faʻaopopoina ma toʻese. Lenei sitepu o le mulimuli gaioiga, faʻaogaina le mulimuli tidbits o pepa faʻamaonia, sitaili vaega, sese taʻavaleina, ma isi., Ou te taumafai e galue mai luga i lalo.
Good development is not any more complex than a great Algebra problem. You have variables, equations, functions… and a logical order of operations to get the best results. I see a lot of hackers that simply ‘get it to work' but you find (as I have) that if you don't plan out your methodology and take a logical approach, you find yourself writing your code over and over and over when problems or changes are needed.
Algebra has always been a lot like a jigsaw puzzle to me. It's always been challenging, fun, and I knew a simple answer was possible. All the pieces are there, you just need to find them and put them together correctly. Writing code is no different, but it's more enjoyable because your puzzle output is whatever you would like it to be!
I'm not a formal developer, nor am I even a great one. I have; however, received compliments on the code I've written throughout many projects. I believe much of it is because I do a lot of preplanning, whiteboarding, schema extraction, etc. before I even write that first script tag.