Potluck Part 2 - Magic GQLess Are classes dead? Custom Hooks Staying Up To Date CSS More!

Published: April 29, 2020, 1 p.m.

b'

It\\u2019s another potluck! In this episode, Scott and Wes answer your questions about custom hooks, static site generators, code management, CSS, and more!

Sentry - Sponsor

If you want to know what\\u2019s happening with your errors, track them with\\xa0Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting\\xa0Sentry.io\\xa0and using the coupon code \\u201ctastytreat\\u201d.

Freshbooks - Sponsor

Get a 30 day free trial of Freshbooks at\\xa0freshbooks.com/syntax\\xa0and put SYNTAX in the \\u201cHow did you hear about us?\\u201d section.

Show Notes

04:02 - Q: Could you do a quick overview of how to effectively use a platform like\\xa0Cloudinary? I have a\\xa0Gatsby\\xa0site with a lot of images and want to use something like Cloudinary to help with optimization, but the docs aren\\u2019t completely clear to me how to get the most out of their service.

10:58 - Q: What kind of CSS pre/post-processor you usually use? What are the pros and cons of pre-processor (SASS, SCSS, LESS) and post-processor (PostCSS)?

16:22 - Q: What is the most effective way to share a project with the internet and get feedback? I\\u2019m in a phase right now where I\\u2019m building loads of new web things with React and JavaScript, but the only place I can think to share them is my Twitter, where only like 3 people will see them.

18:35 - Q: What are your thoughts on classes in JavaScript? Do we still need them in 2020, or has the functional programming paradigm made them largely unnecessary? Does the answer change based on the size of the project and/or team?

23:56 - Q: Does ES2020 have\\xa0var? Also, is ES2020 a real spec or just a term people are using?

27:37 - Q: Have you tried\\xa0gqless, a graphql client alternative to something like Apollo client? Very interesting idea for clean and maintainable code.

29:15 - Q: What are the main differences in working for a software agency and a software product company? Pros and cons of each?

33:53 - Q: Advice for having static blog with minimal moving parts? I used to have a static blog but I eventually got sick of touching it because instead of writing content I often got stuck keeping up with all the dependencies involved.

38:18 - Q: Micro Frontends\\u2014is it the solution to rewriting legacy components?

42:16 - Q: I am relatively new to web development and I feel like it is very difficult to \\u201ccatch up\\u201d with JavaScript. It seems like whenever I try to contribute an open source, I can\\u2019t figure out the code because they\\u2019re using newer (and presumably better) ways of doing things. How can I get up to date with everything that\\u2019s going on in the JavaScript world? Also, at what point should I start learning a front-end framework?

46:56 - Q: My team and I are starting to write pretty complicated custom hooks gathering data from a number of different endpoints and/or polling certain endpoints on a continuous interval timer before returning it to the component that needs the data. Since this is the case some hooks have gotten fairly large with multiple functions inside of them getting called to get/manipulate all the data, or multiple hooks using those same functions to get slightly different data. Is it a best practice to keep all those hooks together in one file if they support all the hooks? Or should we break the hooks into separate files and move the helper functions into another file and just have one hook per file?

51:10 - Q: Any tips for navigating projects with bad project managers? Working with non-technical agency project managers makes it pretty difficult to effectively plan and allocate time to ensure that all of the projects are done on time, on budget, and done well. It\\u2019s important to me to maintain an optimistic attitude in the organization, but sometimes I\\u2019d love to just hit \'em with the \'ol \\u201cPeace out\\u201d and go smoke some pork butt. Wondering if you guys have any good experience managing these types of projects?

55:45 - Q: I\\u2019m committing often and early, but this means that I end up writing the same vague git commit message over and over again. I know the solution to the problem is to just be more verbose, but it\\u2019s a difficult habit to break. Any advice?

Links

\\xd7\\xd7\\xd7 SIIIIICK \\xd7\\xd7\\xd7 PIIIICKS \\xd7\\xd7\\xd7

Shameless Plugs

Tweet us your tasty treats!

'