Sign in with Twitter

Username:

Cory House @housecor Kansas City

I transition teams to React. Founder: https://t.co/pE10vNujw3 Author: https://t.co/gkxudiJoCZ Developer. Teacher. Speaker. 7x @microsoft MVP. #javascript #reactjs

590 Following   28,812 Followers   20,988 Tweets

Joined Twitter 1/21/09


@alexandrudanpop That’s fair. Though nearly all apps should likely handle these things. @sergiodxa I agree. But it is another dependency and thing to learn. And it's overkill for simple apps. So depends on the team and context. @pniedri Agreed, though I typically handle that via an integration test.Here's a codesandbox with examples of the 4 levels: https://t.co/ghZBuI6xBaI've started thinking about a maturity model for handling API calls in React. I propose 4 levels of maturity. Leve… https://t.co/D38zowou8h @maraimalais Here's a repo with my suggestions: https://t.co/aMSCXjeXTl @maraimalais Check out the React dev toolsGreat read. Summary: Does it make sense to unit test a method that calculates solar times using a complicated mat… https://t.co/HjxKByoC8RGive a seasoned programmer a simple task, and he/she will find a way to make it complicated. Examples: "We should… https://t.co/xWWUKYYsBNA pervasive risk for programmers: "The more expert we become at any subject, the more complexity we prefer." - D… https://t.co/kUr6qT5qgD @queroumavodka Interesting. How would making a bed protect from respiratory issues and insects?The lower my expenses, the greater my options. The less needless stuff I own, the less stuff owns me. The more I… https://t.co/ozye5BxjgdOnly one of these is popular. Why? Culture. Culture is filled with needless habits. "Live above your means via de… https://t.co/bZlggzd1Di
7/10
2020
@jezhumble I enjoyed “Make it Stick” recently on this topic. Highly recommend it.Want to read a media query in #JavaScript? window.matchMedia is your friend: https://t.co/4HNylBdcIwLife as a dev: Every few days, I learn something that makes me wish I could go back and improve my previous code.
7/9
2020
@Ali_H_Ghali @code As needed. @saltnburnem @code Unrelated. GitLens is for source control. This is for upgrading npm packages.One of my favorite @code extensions: Version Lens. After installing it, click the "V" in the top right. It shows t… https://t.co/Mtv04gks7G @Silvereddie101 Sorry to hear. Please post on the course discussion for support. Be sure to include a link to your… https://t.co/hGiJri05W3 @BrandonRockhold 🙂👋
7/8
2020
@jo_enr Sorry can’t share detailsI was always puzzled by semantic versioning in @npmjs packages until I came across this wonderful interpretation by… https://t.co/iB3FDJjUis
Retweeted by Cory House @twwilliams Yeah clearly many people agree with your distinction. I’m weird because I care if the rest of the house… https://t.co/YJqaAIz5cA @twwilliams No one sees my bed either @_AshConnolly I saw that talk long ago and found it silly. There's nothing magical or even inherently useful about… https://t.co/VcZhqS3Gwy @twwilliams Much like a bed that's made and covered in fancy shams and pillows that must be removed before sleepingI enjoy writing software, and the last few days have been especially rewarding. I'm working with a client to quickl… https://t.co/FXOa2HfxnbRelated poll: Do you clean your toilet every day? @cwoodruff @saltnburnem I'm working up to it :) @CtchngAvocados I prefer exercise @saltnburnem @cwoodruff This is ground-breaking research guysRelated poll: Do you tie your shoes after you take them off so they look nice while you're not wearing them?Poll: Is making your bed each day important? @Chinonso_ig Can you please email Pluralsight support so they'll investigate the issue? support@pluralsight.com An… https://t.co/riwxwj0aUA
7/7
2020
@kaybi_7 Thanks! You probably wouldn't use Redux to store data requested from React query because its cache makes… https://t.co/Bd72Jffbfk @jguadagno @ardalis @jekyllrb Yeah, I love the idea of static pages. Makes tons of sense, especially on static content like this.Posted: Four Ways to Fetch Data in React ⚛️ If you're calling RESTful APIs, here are four options to consider. 1.… https://t.co/DzCIqTuwmo @pavsaund Good call. Thanks Pavneet! @ardalis Yeah, I'm fighting similar battles @ardalis Oddly, I've run Lighthouse on a few Gatsby blogs, and well-configured Wordpress is equally fast to first m… https://t.co/eHVxvGvxVD @theDiverDK Thanks for pointing that out. I made a few performance tweaks and it's a 96 according to lighthouse. 2.… https://t.co/firmUSFeAA @joepetrakovich Interesting. I hadn't considered that. Are you saying it reduces deliverability?Poll: What domain name should I use for my blog? I own all these. They all redirect to the same site. Which is best? @ardalis Yep, totally agree. And good call paying someone. @ardalis I'd prefer it, but decided I didn't need yet another distraction from actually blogging. 😜 PHP was one of… https://t.co/lWFcZTcu8v @crimhabsfan Thanks! I see what you mean. That's odd behavior, but not code I wrote. The menu is built into the the… https://t.co/IwxtO7FE6B @ardalis Wordpress. <insert cobbler's shoes reference here> @jguadagno Fixed! Thanks Joe!Oh, and I've configured a mailing list sign up for future posts. You can sign up at the bottom of any post. I'm eag… https://t.co/0zXmDaX0RvUpdate complete! 🎉 It's been 10 years(!) since I redesigned my blog. Just spent the day updating it since I'm star… https://t.co/iG0fS6T5gz
7/6
2020
I can’t create a positive feedback loop if my health is so poor that I’m struggling to survive. I can’t create a… https://t.co/YTvYKhLXdPThe First Law of Ecology: You can’t change just one thing. Everything Is connected to everything else. So negativ… https://t.co/IoanwCbzZrGood habits create positive feedback loops. Sleep well Exercise Eat healthy Focus during work Save money Habits… https://t.co/kRGsE0iGwB @coridrew Yep the move to functions is a win, but a big shift for the whole ecosystem
7/5
2020
@coridrew Unfortunately all that changes in v6. I'm enjoying the Beta. It's a breaking change, but to me a clear step forward.Takeaways: 1. Sometimes intimidatingly complex is actually needlessly complex. 2. If it’s hard to understand, dig… https://t.co/QxgDTzWaL4A poorly-designed solution may seem impressive. Why? Because it’s complex and unapproachable. So it looks like it w… https://t.co/Qcd1ZOSV9c @giovannibenussi @dhh @kurko Wow great post 👍
7/4
2020
@dustinsoftware Slick! Yes, this is a requested feature: https://t.co/pRALtuVjBB But your solution looks great in the meantime! @dustinsoftware Nice! Yep, that certainly works too, though a little more code. Thanks Dustin! @ryanlanciaux It's still odd to me that this isn't baked in, but your idea seems to work great. Thanks again Ryan! 😃 @ryanlanciaux this little tweak of running the useEffect when the location changes seems to work well! 🥳 https://t.co/hEIMtmuqsy @ryanlanciaux Thanks for digging Ryan! However, the useEffect with an empty dependency array is equivalent to runni… https://t.co/Rj9mLP3DyC @dustinsoftware https://t.co/KOhDV7D5Dt @ryanlanciaux There’s no way to plug into history in v6 so noJust finished upgrading a large site to React Router v6. Love the new API! 👍 I only found 2 downsides: 1. Need to… https://t.co/whAqoGozmB @sergiodxa Yep, though then I start to wonder why withRouter was removed at all @mjackson @ryanflorence Yep, makes sense. I always use functions for new components but wanted to avoid having to c… https://t.co/jXrjpPcrMQI'm guessing the answer is to either: 1. Convert class to function 2. Wrap the class in a function so I can route… https://t.co/xVfinFsM4eI'm enjoying the new React Router 6 API. (In beta, but well documented! https://t.co/q2usoZ6WVz) @mjacksonhttps://t.co/NZYKTvbj7DOh, and yes, it's possible (though rare) to take composition too far. For example, left-pad:… https://t.co/hRZJrgG36r @virtualkirill Arguably this: https://t.co/M2GFINQiDU Also consider the Fairbairn threshold: https://t.co/ieCrWwI61m @0b11111 You're ignoring all the other state that is not using localStorage.Composition is why I'm such a huge fan of JavaScript components (Whether React, Vue, Angular, Svelte, etc). Same… https://t.co/oWJJfBQMUN @0b11111 Only 2 pieces of state in that app are in localStorage. All other state isn't. @0b11111 Those branches have subtle changes to specific pieces. Note the PR diffs. localStorage is merely one way I… https://t.co/J3QvXXrCgSI ❤️ composition. There are many composition tools: Functions Classes Components Libraries Packages Composition… https://t.co/olMVg0u1TI @dev__adi Superb post! Very well explained. 👍
7/3
2020
Undo is free https://t.co/IPVOLyFo5k @elkykelyn I share them via npm or an internal server. I also have a course on this: https://t.co/a91dZTbZDw @a_v_berezkin haven't tried @DerekMT12 Bixby Bridge near Big Sur on California Pacific Coast Highway
7/2
2020
@Bereketethio1 Wonderful to hear! Thank you for the feedback 😀 @ampsantos0 @Microsoft @MVPAward Yep, exactlyYep, after 3 years I still prefer using a single monitor. Though I upgraded to a 27" 4K USB-C model. I occasionall… https://t.co/DhBVlfViow @hardkoded @Microsoft @MVPAward Ha, one of my fav things. :) Got it shortly after SO launched. Was at a conference… https://t.co/ChHwFuZuSiExcited to be a @Microsoft MVP for my 8th year! 🎉😀 Thanks @MVPAward! https://t.co/93jHQ9CiIWExample: When building a React component library, I build the docs site using the library's reusable components. T… https://t.co/kgmrADmrUgDogfooding: Using the tool you’re building for others. Dogfooding is powerful. ✅ Catch issues early ✅ Assure the… https://t.co/7Rl3HqcZ2V @peppesilletti Agreed. I typically write tests first for that reason. But I don’t necessarily follow all three of these rulesWhen I don’t do “pure” TDD: - I’m experimenting with APIs or designs - I’m temporarily helping a team that doesn’t… https://t.co/n63xXRHIbBConfession: Sometimes, I write tests after I write code. Sometimes, I don't write tests. Often, my code coverage is… https://t.co/oPXQ4Uzsj6
7/1
2020
Love SQL? Wish you could use it in Javascript and Node? You can. https://t.co/txdcWZ0Nyk #javascript @0b11111 It's 8 different ways to do 8 *different* things. @G_Abud Many. That's what the course will explore. @Dopamine_Driven Ah, yep! Fixed by adding a slash to root (sorry, I'm tweaking this fast today so regressed some th… https://t.co/HJEbYpHSgQ
6/30
2020
@Dopamine_Driven Fixed. Get latest on main. Thanks! @pat_scott The First Law of Ecology: You never change one thing.Options are risky because they feel "free". But they're not. Every option means we have more code to write, test,… https://t.co/Qb4iR3jEf4
6/29
2020

0