What’s the difference and finding the right balance

Photo by Daniel Cheung on Unsplash

Awhile back, I was part of a group of employees who participated in a week-long data intensive run by our parent company. It was a really worthwhile experience where we all put in time and effort to solve interesting problems we saw at the company. One of the things that has stuck with me throughout the process was something we actually learned on the very first day — there is a difference between problems and tasks.

As a software engineer, this is something I’ve dealt with on a regular basis, but haven’t always thought about in such explicit terms. So…

Captain America “So you got detention” meme
Captain America “So you got detention” meme

We recently started using React Hooks in one of the apps here at Flatiron School. I’ve used React before, but haven’t had the chance to explore Hooks until now so I was pretty excited! I dove into the documentation to get a feel for it and saw this section about the Rules of Hooks, which state that you should:

Only Call Hooks at the Top Level
Don’t call Hooks inside loops, conditions, or nested functions. Instead, always use Hooks at the top level of your React function. By following this rule, you ensure that Hooks are called in the same order…

Into the Ecto.Multi-verse

Marvel: “Infinity War is the most ambitious crossover event in history.” Flatiron Labs:

If you’re gazing across the Elixir landscape and looking for a way to execute operations only if other operations succeed while minimizing the number of transactions, look no further! Ecto.Multi could be just what you’re looking for.

At the core of it, Ecto.Multi is a struct, which means it can be passed around like any other struct in Elixir. It’s most commonly used to bundle a series of database operations together. If anything in the series fails, all of the previous database operations in the multi are never applied. …

Crystal Chang

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store