Ventsislav Nikolov
@ventsi.bsky.social
28 followers 78 following 15 posts
Ruby | Elixir | JavaScript/TypeScript Co-founder of rubylift.com
Posts Media Videos Starter Packs
ventsi.bsky.social
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”.
Current Time Now | Time.now
View your current local time on Time.now. Browse cities, countries, and timezones with their current times. Updated Live.
Time.now
Reposted by Ventsislav Nikolov
wesbos.com
Wes Bos @wesbos.com · May 27
ITS HAPPENING

Firefox 127 shipped today making it the first browser to support Temporal - the new API for working with Dates, times, timezones + durations
Reposted by Ventsislav Nikolov
rednafi.com
TIL. Life changing.
Reposted by Ventsislav Nikolov
jensimmons.bsky.social
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...
How to have the browser pick a contrasting color in CSS
Have you ever wished you could write simple CSS to declare a color, and then have the browser figure out whether black or white should be paired with that color?
webkit.org
ventsi.bsky.social
Ruby caraoke with @bbatsov.bsky.social and @julialopez.dev at Balkan Ruby 🎤🎶😁
Two people singing on a stage at Balkan Ruby
Reposted by Ventsislav Nikolov
balkanruby.bsky.social
“Take notes, not side quests!” YES!!!
ventsi.bsky.social
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.
Reposted by Ventsislav Nikolov
hansschnedlitz.com
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! 🤔
ventsi.bsky.social
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
Shadcn Date Picker
Advanced date picker with range selection, year and month selection, and more.
date-picker.luca-felix.com
ventsi.bsky.social
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.
class ApplicationRecord < ActiveRecord::Base
  self.inheritance_column = :sti_type
end
ventsi.bsky.social
This makes building interactive apps easier with better UX. I’ll share more thoughts soon! ⚡ #Rails #React #TypeScript #InertiaJS
ventsi.bsky.social
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!
ventsi.bsky.social
Rails + React gives me access to two huge ecosystems. My biggest issue with Rails has always been the frontend.
ventsi.bsky.social
I’m using Rails, Inertia.js, React & TypeScript for my new side project. First impressions? Pretty good! 🚀
Reposted by Ventsislav Nikolov
samrat.me
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 :))
Reposted by Ventsislav Nikolov
kaspth.com
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...
Express your video by writing your own gems — Ruby Banitsa conf 2024
YouTube video by Kasper Timm Hansen
www.youtube.com
ventsi.bsky.social
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.
ventsi.bsky.social
I know what stack I would use for my next side project.
Reposted by Ventsislav Nikolov
whatyouhi.de
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
pragprog.com
Pragmatic Black Friday Sale
Including these great Elixir / BEAM titles (along with everything else we publish!)
Use checkout code turkeysale2024 for 40%!