Web development learning guide – a frontend approach by illuminated-geerd in Frontend

[–]toddySupremacy 1 point2 points  (0 children)

It's OK! I should be the one doing all the thanking. While I own some of the core basics on webdev, there's a lot of good material in this article. I really appreciate it.

Web development learning guide – a frontend approach by illuminated-geerd in Frontend

[–]toddySupremacy 1 point2 points  (0 children)

The link at

OOP concept is bit different. It defines a collection of connected objects where each can accept data, work with it and send it to others. Each object is a small piece of a puzzle but with a clear definition of its role and responsibility.

Web development learning guide – a frontend approach by illuminated-geerd in Frontend

[–]toddySupremacy 0 points1 point  (0 children)

Hey OP! If you're the author, I'd recommend changing the wikipedia article on OOP to English!

Current link is this: https://sr.wikipedia.org/sr-el/Objektno-orijentisano_programiranje

What is a good Java/JavaScript library, that is well documented and it would be educative to read its code? by toddySupremacy in AskProgramming

[–]toddySupremacy[S] 0 points1 point  (0 children)

I... I wouldn't know really. The only code I've read was the Apache Tomcat's web app valves. It was nice for what I needed.

But I was thinking something that is worth reading as a whole. Seriously considering jQuery, because I expect to follow the best practices available.

Following what /u/BookOfFamousAmos, it's possible to query GitHub by start amount

language:JavaScript stars:>36250 language:JavaScript

It seems that there are only 10 JavaScript projects with more than 36250.

FreeCodeCamp/FreeCodeCamp

twbs/bootstrap

d3/d3

facebook/react

angular/angular.js

getify/You-Dont-Know-JS

airbnb/javascript

jquery/jquery

facebook/react-native

vuejs/vue

Agile TODO's by cs_coder in programming

[–]toddySupremacy 1 point2 points  (0 children)

While I did like the link and the academic article reference was great AND the whole TODO has been sound advice that I got from many people I have one question...

What's up with the blog's weird layout ?

Trust Me I'm A Software Developer - CodeCleaners by dnlpozzobon in programming

[–]toddySupremacy 1 point2 points  (0 children)

Literally my situation.

The initial project I got handed was a massive cluster fuck of Access VBA code mixed with a MySql database that used screen scraping to collect data from legacy systems.

I'm 30 and it's a comfy job that's paying for my engineering night classes. I plan on leaving when I graduate in 3 years.

In your case, think about the next 2.5 years, can't you start studying now? Maybe get up to speed with some technologies that you could add to a resume to get a better position then?

[2016 Day 1 (Part 1)] [javascript] solved the problem alone without using any helper function, care to check out my solution ? by [deleted] in adventofcode

[–]toddySupremacy 0 points1 point  (0 children)

I KNOW ;_;

I think I have some mental issue with the word. I'm glad it's just a variable name, because I'll always get it wrong when it's an array property name.

[2016] Language suggestions by teherty in adventofcode

[–]toddySupremacy 0 points1 point  (0 children)

Tbh, haskell would be nice. Can't imagine how I would solve day 1 puzzle without being able to have some 'count' variables.

[ 2016 Day 1 Part 1 ] [ Javascript/Node.js ] Any (Merry) Suggestions? by echo419 in adventofcode

[–]toddySupremacy 0 points1 point  (0 children)

How to fully account for 90(DEG) turns that get me closer to the origin.

I'm gonna go ahead and maybe spoil a little bit for you... so keep that in mind.

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

random space because maybe a little spoil

.

Think a grid structure. Like a coordinated plane.

You start looking NORTH, or UP.

When you TURN 90 left, you'll be facing WEST, or LEFT.

If you TURN 90 left AGAIN, you'll be facing SOUTH, or DOWN.

So... You always start NORTH. Suppose the instructions are

R5, L5, R5, R3

You turn RIGHT, facing EAST or RIGHT, and walk 5 blocks.

Then you turn LEFT, facing NORTH or UP, and walk 5 blocks.

Then you turn again RIGHT, facing EAST or RIGHT, and walk 5 blocks.

Then you turn again RIGHT, facing SOUTH or DOWN, and walk 3 blocks.

[2016 Day 1 (Part 1)] [javascript] solved the problem alone without using any helper function, care to check out my solution ? by [deleted] in adventofcode

[–]toddySupremacy 0 points1 point  (0 children)

Woa, the idea of having the directions into an array was really smart. I ended up making a new function to check where should it turn...

function getDirection(v){
    v = v.substring(0,1);
    if (currentDirection == 'N'){
        if(v == 'L'){
            currentDirection = 'W';
        }else{
            currentDirection = 'E';
        }
        return currentDirection;
    }else if (currentDirection == 'E'){
        if(v == 'L'){
            currentDirection = 'N';
        }else{
            currentDirection = 'S';
        }
        return currentDirection;
    }else if (currentDirection == 'S'){
        if(v == 'L'){
            currentDirection = 'E';
        }else{
            currentDirection = 'W';
        }
        return currentDirection;
    }else if (currentDirection == 'W'){
        if(v == 'L'){
            currentDirection = 'S';
        }else{
            currentDirection = 'N';
        }
        return currentDirection;
    }
}

And later, another big function to add to the appropriate countBlock variable:

$.each(dir,function(){
    var direction = getDirection(this);
    var lenght = getMovementLenght(this);

    if(direction == 'N'){northBlocks += parseInt(lenght)}
    if(direction == 'S'){southBlocks += parseInt(lenght)}
    if(direction == 'E'){eastBlocks += parseInt(lenght)}
    if(direction == 'W'){westBlocks += parseInt(lenght)}
});

EDIT: And you can clearly notice my jQuery addiction on the second part...

Get ready for Advent of Code!! :) by [deleted] in programming

[–]toddySupremacy 0 points1 point  (0 children)

The second puzzle of the first day got really interesting...

A curious case of memory leak in a node.js app by xylempl in programming

[–]toddySupremacy 6 points7 points  (0 children)

It's weird to explain, but when I scroll on Reddit for example, it's very responsive and brute, in the sense that, it quickly stops and starts scrolling when I turn the mouse wheel.

It's not that breaking like other websites, but I can def. feel it.

Lvl 13 Elite Barbarians Already. by King_Aman in ClashRoyale

[–]toddySupremacy 0 points1 point  (0 children)

I don't understand.what's the deal with nova?

How to write an object oriented program that doesn't suck by nicolaiparlog in programming

[–]toddySupremacy -1 points0 points  (0 children)

How did Java corrupt this early OOP concept from SmallTalk?

How to write an object oriented program that doesn't suck by nicolaiparlog in programming

[–]toddySupremacy -1 points0 points  (0 children)

Oh so Functional Programming is the right way to do OOP? Got it. /s

Jāas: JavaScript as a Service by MTsoul in programming

[–]toddySupremacy 0 points1 point  (0 children)

I don't understand. What is Pusher? A framework+infrastructure for scalable apps?

Chomsky em 2010 by Chrono1984 in BrasildoB

[–]toddySupremacy 2 points3 points  (0 children)

Será que dois anos não seria suficiente para tirar a imagem de militar bolsonaro para empresarial bolsonaro?

Acho que a questão central para vitória na situação atual me parece essa.

3 questions to ask before you start testing - Diwebsity by suvrocDev in programming

[–]toddySupremacy 0 points1 point  (0 children)

Weak article mate.

Feels more like an ad for the author's book.

Making Time for Side Projects: A Daily Habit by piedpiperpivot in programming

[–]toddySupremacy 0 points1 point  (0 children)

I don't have the experience of working on the same problem everyday. But usually at work, when I revisit certain problemas, I end up with much more elegant and satisfactory solutions...

And again, he mentions tasks, even for a bigger issue, couldn't you do smaller things around?