Lucian Ghinda Profile picture
Aug 22 52 tweets 47 min read
I created the sixth issue of the @shortrubynews #shortruby

Read the entire issue here: newsletter.shortruby.com/p/issue-6-2022

So here is what happened in #Ruby on Twitter last week
@shortrubynews @justalever @chalmagean shared some topics that a junior developer should focus on along with learning the language or framework:
Here are some other points that people shared in the conversation about what Rails juniors should learn

👇

·@inkyvoxel
@rose_w @schwad_rb shared an example about undefining all instance variables but keeping a secret reference:
Here is a nice screenshot from that BlankSlate example:
source: github.com/jimweirich/bui…
@joeldrapper asked about how to simply serve static files on Ruby:
@joeldrapper @joeldrapper received a lot of good suggestions there:

@olleolleolle shared Grip github.com/joeyespo/grip
• ruby -run -e httpd . -p 8000` were the most common answer and the simplest one in ruby
@olleolleolle shared a link to github.com/ruby/ruby/blob…
@joeldrapper @olleolleolle @rubygems_status @joemasilotti asked about how to send a notification when subscription status changes:
There are so many exciting replies to @nusco question that I don’t know what to pick. Here is one that I did not know so far discord.com/invite/stimulu… Discord channel shared by @julian_rubisch
@nusco @julian_rubisch @joemasilotti asked for recommendation about how abstract styles when working on Tailwind. It seems the main recommendation is to not use apply and use components.
@nusco @julian_rubisch @joemasilotti @jaredcwhite shared that he is working on a new project. More details are on The Spicy Web Discord server link to join discord.com/invite/CUuYVH7…
@nusco @julian_rubisch @joemasilotti @jaredcwhite @siaw23 @_byroot asked about GitHub Actions to trigger build when you push to a branch without opening a PR, but not to build twice:
There were suggested a couple of possible solutions for @_byroot question:

• This commit github.com/Shopify/identi… from Shopify/identity-cache

• This line github.com/yabeda-rb/yabe… from test.yml from yabeda-sidekiq

• The main.yml github.com/rubyapi/rubyap… from rubyapi
@_byroot @oceanicpanda shared that he is working on a list of Ruby engines.
@_byroot @oceanicpanda @OjedaAlef shared a piece of code adding methods on top of the Hash:
@_byroot @oceanicpanda @OjedaAlef @joeldrapper @siaw23 @bhserna @hsbt shared they merged syntax_suggets and it is now part of Ruby standard library.

Read more about the discussion about merging this to Ruby here bugs.ruby-lang.org/issues/18159 and link to the Github PR here github.com/ruby/ruby/pull….
here are some suggestions received by @faqndoE97

👇

◦ separate gem recommended by @strzibnyj
◦ UI module for generic and specific modules by @_swanson
@_swanson @joeldrapper shared a new update for the performance improvements in Phlex:
@_swanson @joeldrapper @joemasilotti shared a clean and nice sample code with View Components + class_names + polymorphic slots:
@_swanson @joeldrapper @joemasilotti @joelquen shared how `cycle` from Ruby works similarly with Haskell `cycle`:
on the same topic @joeldrapper shared a question about a market for GUI design interface for Rails:
Based on the replies from both these conversations from @joeldrapper and @leenyburger there seems to be a desire for more UI libraries/projects in the Ruby/Rails world.
@joeldrapper @leenyburger @adrianthedev asked a question about pains when working with UIs in Rails
Here is the most common pain points received by @adrianthedev when working with #ui in #rails:

• Missing UI libraries compatible with Rails

• Finding talented UI developers

• Working with ERB and partials
@adrianthedev @th1agofm created a poll about which debugger you use the most often in Ruby.
(open the quoted tweet to see the results, hint: pry is high)
It is worth reading the discussion this poll generated and also the following discussions from what Thiago shared after the poll closed:

- preference for debugging in REPL

- how devs are using debuggers .
@kkuchta asked a funny question:
Read the replies as there are interesting code examples offered there even if they break common wisdom 😆
@kkuchta @adrienpoly asked about recommendations on how to create a memo about what happened during the week:
He received two interesting replies:

@afomera shared a good zsh function gist.github.com/afomera/44e2fd… that uses github cli to pull merged PRs

@_swanson suggested using Linear
@afomera @_swanson @GregMolnar shared a good picture of the advantages of automated tests:
@afomera @_swanson @GregMolnar @dvassallo shared a view about skipping unit tests that triggered a lot of discussions about coding without tests:
Here is one interesting reply among many others from Cody Norman @cnorm35 to @dvassallo tweet about #unit #testing
Also related to testing, @postmodern_mod3 shared an excellent way to think about TDD/BDD that could help define when to stop:
@postmodern_mod3 @ejstembler shared a little code in Crystal about a Blacklist Handler that I think with just some small changes could be copied to Ruby:
@postmodern_mod3 @ejstembler @viebel asked a question about accepting extra fields in request payload that triggered a wide range of replies:
@postmodern_mod3 @ejstembler @viebel @keystonelemur shared why he thinks juniors are a critical path to healthy growth in engineering teams. Read the entire thread it is super good.
This edition was created with support from @adrianthedev from Avohq avohq.io/rails-admin (a friendly full-featured Rails admin panel), and from @jcsrb who recommended me some great tweets.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Lucian Ghinda

Lucian Ghinda Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(