This is the first thing I change from the generated code. The next is removing Current.
This is the first thing I change from the generated code. The next is removing Current.
Recently, Iβm experiencing this bug more often than the correct behavior π
Same with βTime.nowβ and βTime.currentβ. The basic rule to avoid time zone problems in Rails apps is to always βTime.currentβ, βDate.currentβ and other methods that use the configured zone like β1.month.agoβ.
ITS HAPPENING
Firefox 127 shipped today making it the first browser to support Temporal - the new API for working with Dates, times, timezones + durations
TIL. Life changing.
Have you ever wished the browser would look at a background color and pick black or white for the text βΒ whichever one provides more contrast?
Now, the `constrast-color()` function in CSS does just that.
webkit.org/blog/16929/c...
Two people singing on a stage at Balkan Ruby
Ruby caraoke with @bbatsov.bsky.social and @julialopez.dev at Balkan Ruby π€πΆπ
βTake notes, not side quests!β YES!!!
Unfortunately, Ruby doesn't have a standard or tool built-in for formatting π It's unavoidable a person or community to choose something that doesn't match our own preference. At least we have the option `rails new --skip-rubocop`. Next step it may be make the formatter configurable.
TIL there's an ESLint plugin that sorts and organizes imports: github.com/lydell/eslin...
TIL: You can use #ruby pattern matching on Time. Comes in handy if you have to check if there's an important conference happening today! π€
Using the shadcn/ui calendar component? You might want to update react-day-picker to v9 and date-fns to v4. It's not officially supported yet, but this article explains how to do it: date-picker.luca-felix.com
class ApplicationRecord < ActiveRecord::Base self.inheritance_column = :sti_type end
In every Rails project, I rename the STI column in ActiveRecord to `sti_type`. This simple change makes `type` available for attributes, enums, or methods.
This makes building interactive apps easier with better UX. Iβll share more thoughts soon! β‘ #Rails #React #TypeScript #InertiaJS
Inertia.js lets me keep Rails as a monolith while using React + TypeScript for the UIβno need to split into separate backend & frontend apps!
Iβm using Rails, Inertia.js, React & TypeScript for my new side project. First impressions? Pretty good! π
Rails + React gives me access to two huge ecosystems. My biggest issue with Rails has always been the frontend.
Looking for my next job!
- Based in Berlin π©πͺ, but also open to remote.
- I've been most excited about #ElixirLang lately, but also open to other tech stacks(I've worked with Clojure, Rust, JS/TS)
Some stuff I've worked on recently belowπ. (And I'd appreciate a repost :))
I uploaded my screen recording from the recent Ruby Banitsa conf. It's pretty loose and informal!
We had a really fun conversation towards the end with @rstankov.bsky.social and @ventsi.bsky.social chiming in! Hope my mic picked it up π
www.youtube.com/watch?v=Md90...
Hell yeah!
I prefer to stay in the terminal in one app window. I'm using tmux + fzf to switch projects (tmux sessions) and tmuxinator to configure what tmux windows/panes to open when I start a project.
I know what stack I would use for my next side project.
Drop your lock screen
If you wanna pick up the beta of Network Programming in Elixir and Erlang it'd be a good time too. We're essentially only one chapter away from printtttttt
Room with number 404
Room not found