Coding Is Evolving, Folks.

By jason on 11/29/2015

I've never coded on punchcards, nor relied on books for helping me code on projects; however, I would like to take a moment and appreciate those circumstances where many programmers have probably found themselves (perhaps, regretfully so). I usually manage projects, clients, and focus my time and energy on business development tasks. It was not that long ago that I actually had to, every day. It was a great time and an important part of the progression of Nerdy Dragon, because it set our course of action.
* * *
While coding yesterday, I took advantage of some great resources:

  • How to format a javascript variable as currency:

    [code lang="js"]
    function formatCurrency(num) {
    num = num.toString().replace(/\$|\,/g, '');
    if (isNaN(num)) num = "0";
    sign = (num == (num = Math.abs(num)));
    num = Math.floor(num * 100 + 0.50000000001);
    cents = num % 100;
    num = Math.floor(num / 100).toString();
    if (cents for (var i = 0; i num = num.substring(0, num.length - (4 * i + 3)) + ',' + num.substring(num.length - (4 * i + 3));
    return (((sign) ? '' : '-') + '$' + num + '.' + cents);

* * *
If you're writing a calculator, the above two javascript functions could come in quite handy!
Some explaining and tuning of MySQL - big data requires resources to work with; the less work you ask the database to do, the less you will need to spend on those resources.
It's good to be developing software today, and even better to share the tools, methods, and experiences.


software programming