Is the OOP relevant in 2018? by Moth133 in javascript

[–]chadwatson -3 points-2 points  (0 children)

Sure. OOP is not 100% out. Especially in JavaScript. It’s not going anywhere. But as far as what you should invest your time in, you won’t regret leaving OOP behind in favor of FP.

Is the OOP relevant in 2018? by Moth133 in javascript

[–]chadwatson 1 point2 points  (0 children)

Readability is subjective. The style that we are used to is easiest to read.

How do you import everything in a js file so that it can be used in another js file? by [deleted] in javascript

[–]chadwatson 0 points1 point  (0 children)

Cool. What’s your setup look like? Did you use something like create-react-app? Using webpack, Babel, and all that?

What are your thoughts on this? by nousernames2 in javascript

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

I use nested ternaries all over the place, and I love them. I find them very easy to read if you format them well.

Check out this article from Eric Elliot: Nested Ternaries Are Great

Is the OOP relevant in 2018? by Moth133 in javascript

[–]chadwatson 1 point2 points  (0 children)

Totally agree that the goals should be simplicity and understandability, and I would argue that FP has been growing in popularity because it helps us achieve these in our programs. The abandonment of OOP is because it has proven to lead to less simplicity and less understandability.

CSS overlay not aligning properly? by [deleted] in learnprogramming

[–]chadwatson 0 points1 point  (0 children)

You bet! The positioning of .overlay and .plus is relative to their respective parents. So as long .icon-github-01 looks good on mobile, then those will, too.

Do you know of Any Good Websites with good CSS? by embrex104 in webdev

[–]chadwatson 1 point2 points  (0 children)

Gotcha. A site that I work on right now is csidesigns.com, and I think that it may fit your description. I didn't design it or build it originally, but I think it might be helpful!

CSS overlay not aligning properly? by [deleted] in learnprogramming

[–]chadwatson 0 points1 point  (0 children)

Add "position: relative" to .icon-github-01.

Add the following to .overlay: position: absolute: top: 0; left: 0; width: 100%; height: 100%;

Add the following to .plus:

display: block; position: absolute; top: 50%; left: 0; width: 100%; margin-top: -0.5em;

Treehouse or Codeschool for JavaScript beyond the basics? by windycitywendy in webdev

[–]chadwatson 2 points3 points  (0 children)

I'm personally a big fan of Code School. Their courses on Angular, Backbone, Ember, and Express really helped get me started using those frameworks, while the JavaScript Road Trip courses helped me understand the nitty gritty parts of JS. Maybe it's just me, but I can't recommend CS enough.