CodeIgniter Forums
Math and coding - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forum-1.html)
+--- Forum: Lounge (https://forum.codeigniter.com/forum-3.html)
+--- Thread: Math and coding (/thread-77546.html)

Pages: 1 2


Math and coding - GrimeHero4Life - 09-14-2020

Hi! 
Soon I will jump into IT and I want to know - is a math mandatory? 
I got just a basic knowledge of this subject, so would be nice to hear about your experience with good math skills or absence of skills in general.
Thanks in advance.


RE: Math and coding - nc03061981 - 09-14-2020

1 + 1 = 2
Or = anything you want


RE: Math and coding - GrimeHero4Life - 09-14-2020

(09-14-2020, 10:03 PM)nc03061981 Wrote: 1 + 1 = 2
Or = anything you want
that is not something I wanted to hear,but thanks..Smile


RE: Math and coding - tgix - 09-14-2020

Very broad and open question.
My personal opinion is that a good programmer should have skills in problem-solving and language. By language I don't mean programming language but instead the skill of expressing thoughts and ideas, both in writing and verbally. Once you have this skill, you can easily learn new programming languages and express yourself in that language. I use C, PHP, Xojo Basic, shell and JavaScript on a daily basis for work and I'm not preferring any over the other - they are good at different things.
I've been mentor for students in college where they teach a specific language (almost exclusively Java but also some JavaScript and (sigh) HTML). Learning a language but not learning problem-solving gives excellent programmers that are useless at solving an actual problem and if you have learned to do OOP specifically in Java but haven't grasped the OOP concept you are likely to fail in a real-world project.
As to math - it gives you an important aspect when it comes to problem-solving and which is good. I have been working in projects heavy on math so I had to refresh integrals and statistic analysis methods for that specific project (I attended university in late 90's for a master in Electrical Engineering so some of the details of Newton-Raphson's method were lost to me and I had to refresh).
As to literature on programming I prefer language-agnostic books describing concepts and algorithms in pseudo-code. This makes is possible for me to implement the concept in the language of my choice. Some personal favorites are:
* PHP and MySQL Web Development (Thomson and Welling) - the first edition of this book took me from programming web-systems in perl to PHP back in 2001.
* Design Patterns (Gemma, Helm, Johnson and Vlissides)
* Algorithms (Sedgewick and Wayne)
* The Art of Computer Programming (Knuth) - a must have as a programmer, but I doubt most of us have actually read it cover-to-cover...
* (More recent) - The Fizz Buzz Fix (Barnard)

Wishing you all luck in your programming career!
/Mattias


RE: Math and coding - GrimeHero4Life - 09-15-2020

Big thanks to you Mattias!
Also the literature list - so appreciated, so hard to find the appropriate literature now.
Hope one day I`ll become a big programmer Smile


RE: Math and coding - InsiteFX - 09-15-2020

Computers use Binary math zero (0) or 1 (1) on/off yes/no.

Unless you are coding in binary you do not need to learn binary math.

For example a binary word has 8-bits 0 to 255 what happens if you add 1 to 255?


RE: Math and coding - GrimeHero4Life - 09-15-2020

(09-15-2020, 02:45 AM)InsiteFX Wrote: Computers use Binary math zero (0) or 1 (1) on/off yes/no.

Unless you are coding in binary you do not need to learn binary math.

For example a binary word has 8-bits 0 to 255 what happens if you add 1 to 255?
crash?xd


RE: Math and coding - InsiteFX - 09-15-2020

No it wraps around and sets the sign bit -+


RE: Math and coding - John_Betong - 09-16-2020

Beware of computer arithmetic Smile

https://0.30000000000000004.com/


RE: Math and coding - includebeer - 09-18-2020

You need to know a minimum of math. Depending of what you are coding you may need a lot of math. For example, if you plan on developing games, you will need math for the physics formula, if you use bitwise operation you need to know binary.