Open in app

Sign In

Write

Sign In

Cody Blair
Cody Blair

1 Follower

Home

About

Mar 2, 2021

BlogPost_401

Why/when would you use a class-based component vs a functional component? Class based components will be your choice if you have an object with states, as this is unavailable to functional components, or if you want to take advantage of the built in life-cycle methods. Functional components are typically better…

Codingbootcamp

2 min read

Codingbootcamp

2 min read


Jan 11, 2021

Blog_Post 304

What is “callback hell” and how can it be avoided? Callbacks on callbacks nested in callbacks ect… Just a lot of callback functions with code in those callbacks that other callbacks are dependent on. Promises are one answer when it comes to asynchronous processes. …

Coding

2 min read

Coding

2 min read


Jan 3, 2021

BlogPost_303

If a user attempts to create a resource that already exists — for example, an email address that’s already registered — what HTTP status code would you return? 409, duplicate resource Consider a responsive site design that requires a full-width image in all responsive states. What would be the correct…

Coding

3 min read

Coding

3 min read


Jan 3, 2021

BlogPost_302

What do you find challenging about coding? How open ended it is. There is so much that can be done, different paths to take, and nothing is really going to tell you exactly how to do it. …

Web Development

2 min read

Web Development

2 min read


Dec 5, 2020

BlogPost_301

How do you organize your code? What are some suggestions you find on the web? I try to space everything out for maximum readability, and keep my files organized in a way that they are categorized by type (ex. images, JS, raw data ect…). The internets suggestions are to separate…

Coding

2 min read

Coding

2 min read


Nov 13, 2020

BlogPost_207

Why would you use something like the load event? Does this event have disadvantages? Do you know any alternatives, and why would you use those? Sometimes you need to wait for the page to load for the element in question to properly do what it needs to do. If some…

3 min read

3 min read


Nov 13, 2020

BlogPost_206

What are the pros and cons of immutability? It can be helpful to have an object be immutable, to avoid causing bugs in complex code that references the object over and over. …

3 min read

3 min read


Nov 7, 2020

BlogPost_205

I’m just gonna do the questions. Can you offer a use case for the new arrow => function syntax? There is a great article about this here https://stackoverflow.com/questions/22939130/when-should-i-use-arrow-functions-in-ecmascript-6 The gist of it is that you should use function(){} when in the global scope and using Object.prototype properties, Class when using…

2 min read

2 min read


Oct 18, 2020

BlogPost_204

Not too much to my story when it comes to JavaScript this week. I have been spending a majority of my time practicing using different methods. So with that I will get straight to business. Can you describe the main difference between a forEach loop and a .map() …

Coding

2 min read

Coding

2 min read


Oct 16, 2020

Still Learning

Nothing to report. Just working and learning. Class is going well. Yousif is teaching us well. It’s all just one day at a time. I learn a few new things, I learn how to implement them, I attempt to solidify my knowledge, and repeat. …

Web Development

3 min read

Web Development

3 min read

Cody Blair

Cody Blair

1 Follower

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams