sourav Profile picture
Mar 9 9 tweets 3 min read Read on X
Started learning Ruby on Rails this week after years of React/Next.js development. The mental model shift has been interesting & challenging!

Trying to document my journey with visuals & insights on the fundamental conceptual differences!

Thread 🧵👇
React taught me component-based thinking - UI, logic, and styling everything bundled together.

Rails forces me to separate these concerns into Models (data), Views (templates), and Controllers (coordination).

Feels like rewiring my brain! Image
React: Components manage UI and state, with dedicated data fetching from APIs
Rails: Data flows from database through controllers to views

Two fundamentally different approaches to the same problem. My instincts still pull me toward the React way! Image
As a React dev, I keep asking "What's the Rails way to do X?" It's like learning a new language where I know the meaning but not the words.

React components → Rails views+controllers useState/context → ActiveRecord
Route config → "resources :posts" Image
React: Component-focused development with explicit configuration for each piece
Rails: Convention-based development with standard patterns

Really like the Rails generator commands, but the real difference is in the philosophy: explicit choices vs. convention-based patterns. Image
React: Start with UI Components → figure out state needs → connect data later
Rails: Start with Database Models → build controllers → create views last

Biggest challenge: training my brain to think data-model-first instead of UI-first! Image
React: Component-focused development with explicit configuration for each piece
Rails: Convention-based development with standard patterns

Really like the Rails generators commands, but the real difference is in the philosophy: explicit choices vs. convention-based patterns. Image
It's just one week into Rails so I'm still adjusting my thinking. The hardest part isn't syntax - it's retraining my brain to approach problems differently.

These visuals represent my current understanding so if there's anything off, please let me know! :-)
Although I barely use Linkedin but this post was originally posted there.

Check out:
linkedin.com/posts/souravin…

• • •

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

Keep Current with sourav

sourav 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!

More from @souravinsights

Apr 27, 2021
Let's demystify @graphprotocol and understand #what does this do? #Why developers use it? What problems it solves, #how it works and how to get started!

A #thread 🧵 👇 Image
1/ The #web 🌐 of today has a client-server architecture that grants tremendous power to whoever runs the server. This favors #centralization! But we may have reached the peak of centralization & the power is now slowly getting distributed!
2/ Web3 is the new layer that will enable #decentralization on a mass scale! Blockchains like #ethereum will be the north star of this new movement. 🚀
Read 16 tweets
Apr 21, 2021
The crypto boom is taking off like crazy! Everybody now wants to own digital money. People are using Exchanges/P2P to buy them. However, exchanges are currently the most popular choice for many! So it's high time we talk about them & understand "How they Work" in this 🧵 #thread! Image
Table of Contents: 📝
▪️What's an #exchange & how it works?
▪️Who are #MarketMakers & why we need them?
▪️What's #liquidity & why it matters?
▪️Types of Exchanges:
- Centralized Exchanges #CEX
- Decentralized Exchanges #DEX

#Retweet if you like the content! Let's get started! 🚀
What's an #Exchange?
It's just a platform that matches #buyers & #sellers. They say what price, they are willing to buy/sell any particular asset, the exchange matches these 2 orders & the trade happens. The price at which the trade got executed becomes the "Last Traded Price".
Read 18 tweets

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!

:(