Gnarly Learnings from April

We love reading, watching, and listening to constantly update our skills and learn new perspectives. Here are some of the exciting pieces we learned from this month.

How to Build a Web App with and without Rails Libraries

There’s a lot we t…

We love reading, watching, and listening to constantly update our skills and learn new perspectives. Here are some of the exciting pieces we learned from this month.



How to Build a Web App with and without Rails Libraries

There’s a lot we take for granted when writing an application using Rails. Revisit some of these core principles for building a web application in this detailed explainer.



Use console.log() like a pro

Turns out that your browser’s console is a lot more flexible than it might appear at first blush. When debugging your code, you can make your output easily browsable with timers, memory tracking, and deep object introspection. Much more convenient than console.log("Here!") all over the place.



Using the Switch(true) Pattern in JavaScript

By leveraging a switch statement checking against the boolean true, we can avoid the trap of noisy endless ifs and make our various states more readable.



Rails 6.1 adds delegated_type to ActiveRecord

A delegated_type provides a new option to model shared data and behavior. It particularly excel over Single Table Inheritance in situations where the different child models may have many different model-specific attributes. In Single Table Inheritance, this would mean a lot of columns in our database that are only used for one of the children – and null for everything else. Not so with delegated_type!



Using Hotwire Turbo in Rails with legacy JavaScript

With so many examples of Hotwire showing how to use it with a shiny new application, you might be wondering if you can still use it in your well-worn, mature application. This article shows a strategy for selectively using Hotwire functionality while maintaining your existing functionality.



Maximize your mentorship: establish, absorb, and connect

Set the stage with your mentor by providing clear expectations, knowing what questions to ask, and following through on action items. This article (and its companion referenced at the end) can also be helpful for mentors in establishing their relationship with mentees.



Argument Cultures and Unregulated Aggression

This is a great reminder of checking what behaviors and culture you’re cultivating in your team and organization – whether you know it or not.



What happens when…

There are more times than I care to admit where I contemplate how changes I’m making even work – or how code ever worked to begin with. But…how do computers work? This repo goes into explicit detail of what’s involved to attempt to reach google.com from your browser.



How does the brain interpret computer languages?

This is your brain. This is code. This is your brain on code.



Contributors

This post originally published on The Gnar Company blog.


Print Share Comment Cite Upload Translate
APA
Kevin Murphy | Sciencx (2024-03-29T00:40:29+00:00) » Gnarly Learnings from April. Retrieved from https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/.
MLA
" » Gnarly Learnings from April." Kevin Murphy | Sciencx - Friday April 30, 2021, https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/
HARVARD
Kevin Murphy | Sciencx Friday April 30, 2021 » Gnarly Learnings from April., viewed 2024-03-29T00:40:29+00:00,<https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/>
VANCOUVER
Kevin Murphy | Sciencx - » Gnarly Learnings from April. [Internet]. [Accessed 2024-03-29T00:40:29+00:00]. Available from: https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/
CHICAGO
" » Gnarly Learnings from April." Kevin Murphy | Sciencx - Accessed 2024-03-29T00:40:29+00:00. https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/
IEEE
" » Gnarly Learnings from April." Kevin Murphy | Sciencx [Online]. Available: https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/. [Accessed: 2024-03-29T00:40:29+00:00]
rf:citation
» Gnarly Learnings from April | Kevin Murphy | Sciencx | https://www.scien.cx/2021/04/30/gnarly-learnings-from-april/ | 2024-03-29T00:40:29+00:00
https://github.com/addpipe/simple-recorderjs-demo