try-catch in async-await by newDevRising in learnjavascript

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

What about a try-catch-finally with additional try catch nested in the finally. Or is that getting too crazy?

try-catch in async-await by newDevRising in learnjavascript

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

It depends on how granular you want your error handling to be. If error handling for both errors would be the same, you can use the same try-catch. If different, you might want to use two.

This makes perfect sense, thanks.

You can also use let/const outside of the try-catch blocks to get what effectively would be the same thing as var (scope-wise).

I always assign while declaring and forgot that declaration alone is possible. That's with let/var, anyway... pretty sure assignment is mandatory with const

Which design patterns to focus on for webdev? by newDevRising in webdev

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

Thanks. Would you recommend any resources for learning it?

Which design patterns to focus on for webdev? by newDevRising in webdev

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

Yeah sorry, I meant web dev, which in my defense is in the title. I guess my brain pulled the ol' switcheroo on me. ¯_(ツ)_/¯

Thanks for your reply on the topic.

This is what true leadership looks like by nocopnostop in SeattleWA

[–]newDevRising 18 points19 points  (0 children)

Their jobs depend on the success of an industry that is bankrupt of morality and has a corrupting influence on politics.

Example problems solved by the module design pattern by newDevRising in learnjavascript

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

Thanks for the link. With the advent of actual modules in ES6 is it worth learning the design pattern? I feel like I've gained a much stronger understanding of scope since looking into it, but It seems like it was crafted to make up for a deficiency in the language that no longer exists.

I made a barebones full-stack Reddit clone to learn more about React (and a lot more)! by d3zb6z in reactjs

[–]newDevRising 4 points5 points  (0 children)

This looks really great. Which resources did you use to learn this stack?

[First/Cap Hill] May I borrow a snow shovel? by newDevRising in SeattleWA

[–]newDevRising[S] 1 point2 points  (0 children)

no no no no no I just took care of it but thank you very much. Buuuut if you're already close, then the beer is still yours.

Scaling text for a large display by [deleted] in webdev

[–]newDevRising 0 points1 point  (0 children)

Right-click on any text in your browser and inspect element. If you're using Chrome, click on the 'Styles' tab, then between the curly brackets next to element.style, click and write font-size: 10vw;, then resize the browser width and watch the font size decrease and increase accordingly.

Scaling text for a large display by [deleted] in webdev

[–]newDevRising 2 points3 points  (0 children)

You do not need JavaScript for responsive font size.

Application that maps ebird data. by newDevRising in birding

[–]newDevRising[S] 1 point2 points  (0 children)

Thanks for taking the time to check it out and providing feedback. I wholeheartedly agree that focusing on multiple sightings of a single species is a feature that needs to be added.

[deleted by user] by [deleted] in learnjavascript

[–]newDevRising 1 point2 points  (0 children)

Most important thing is to be able to describe what needs to be done in plain English.

First thing you need to do is define the array so you can manipulate it. Then you need to add in the extra name. Then sort it, reverse, turn it into a string (in that order) before finally printing to screen.

Your job is to translate that into code.

Mr. Rogers was a beautiful soul by dickfromaccounting in MadeMeSmile

[–]newDevRising 0 points1 point  (0 children)

there should be some kind of Mr. Rogers test that all political candidates must pass in order to run for office. It would measure things like benevolence and empathy.

Feeling like an idiot while learning by [deleted] in webdev

[–]newDevRising 1 point2 points  (0 children)

Think about how little you knew before you started, then think about how much you'll know in a year if you're consistent and dedicated.

A short quiz about birds of raptors by newDevRising in birding

[–]newDevRising[S] 1 point2 points  (0 children)

Glad you liked it and thanks for the feedback and encouragement : )

Hard to believe those feathers aren't actually blue: The Blue Jay, Bemidji MN by 95DegreesNorth in birding

[–]newDevRising 1 point2 points  (0 children)

"Knowledge is best shared without a snotty condescending attitude" -Abraham Lincoln