cpm

3.2K posts

cpm

cpm

@cpm

Software developer. Theatre hobbyist. Gamer. That covers the basics! He/Him/His

Media, PA Katılım Nisan 2007
363 Takip Edilen274 Takipçiler
cpm retweetledi
Ryan Singer
Ryan Singer@rjs·
When a requirement specifies the solution, the design is a tautology. Separating requirements from solutions is key to doing design.
English
4
10
74
4.9K
cpm
cpm@cpm·
@zilasino If it's a hardcoded concept that code will reference explicitly, enum. If code can break if a magical DB row gets deleted or isn't seeded, that's a red flag for me.
English
0
0
1
11
Zil N
Zil N@zilasino·
Do you use enum in Rails, or do you prefer a separate lookup table in the DB?
English
6
0
9
2K
cpm
cpm@cpm·
@zilasino For new work I use ActiveStorage. For existing projects that started with CarrierWave, I stick with that. CarrierWave has everything on the model while ActiveStorage adds some joins, so if a legacy app isn't careful you can accidentally end up with subtle N+1 if you migrate.
English
0
0
0
22
Zil N
Zil N@zilasino·
How do you handle image uploads in 2025? ActiveStorage, Shrine, or CarrierWave?
English
9
0
12
2.8K
cpm
cpm@cpm·
@phillyrb @kcdragon_ Curious what the % of attendance work at Power Home Remodeling? RailsConf left me with the impression that most rubyists currently in the area are work there.
English
1
0
0
50
philly.rb
philly.rb@phillyrb·
We had a great time listening to @kcdragon_'s Intro to Hotwire Native last night. We're working on setting up some great speakers in 2026. We already have January setup (look for the announcement soon) and have slots for February and March open for anyone looking to give a talk.
philly.rb tweet media
English
2
1
5
1.4K
cpm
cpm@cpm·
@phillyrb @kcdragon_ Sorry to have missed it! Need to clear my calendar for these in-person Philly.RB meetups. Haven't been to one since the University City days. I could potentially talk about rehabbing rspec test suites for legacy applications if anyone would be interested in that.
English
1
0
1
42
cpm
cpm@cpm·
@ThePrimeagen I refuse to believe anyone at any point of history did a significant amount of editing in ed. Only reason I've ever opened it was because Linux for Dummies had a chapter on it back in the day.
English
1
0
1
506
ThePrimeagen
ThePrimeagen@ThePrimeagen·
someone unironically using ed in 2025?
ThePrimeagen tweet media
English
16
1
107
20.5K
cpm
cpm@cpm·
I wonder what percentage of the internet is going to be down today due to the CloudFlare issues. I would imagine no where near the scale as when AWS hickups, but still. It's unfortunate how we added points of failures to the biggest decentralized system in the world.
English
0
0
2
200
cpm
cpm@cpm·
@rjs Are you talking about a world where what agents generate is deterministic? If I'm understanding you correctly, I have a hard time seeing prompt input replacing the role of declarative code as long as the result of any given prompt has some randomness to it.
English
0
0
0
31
Ryan Singer
Ryan Singer@rjs·
While I truly love declarative code that expresses a domain model .... I have to admit a sneaking suspicion that the "code should communicate the design" adage is going to get revised. I suspect we're going to see more domain modeling happen one level up from the current level of code implementation. Basically, what we see in things like DDD and "Domain Modeling Made Functional" but as an input to coding agents. It's like extending the trend of high-level languages up another tick.
English
4
1
11
3.3K
cpm
cpm@cpm·
@samsutliff 2003 me couldn't imagine anything replacing AIM or video calls ever being good.
English
0
0
1
16
Sam Sutliff
Sam Sutliff@samsutliff·
Almond milk is the Skype of milk. Imagine explaining that sentence to yourself in 2003
English
1
0
3
204
cpm
cpm@cpm·
@samsutliff Everyone called them the el and the subway when I was in college.
English
1
0
1
8
Sam Sutliff
Sam Sutliff@samsutliff·
Ok call me a Philly poser, but I've always heard the El and the BSL. But today I heard a real vintage Philadelphian calling the BSL "the sub" and I am well and truly obsessed. Is this a real thing or was it just this one dude?????
Philadelphia, PA 🇺🇸 English
2
0
1
93
cpm
cpm@cpm·
I'm nearly convinced inheritance in programming is actually an AntiPattern.
English
1
0
3
225
cpm
cpm@cpm·
After 20 years, I finally found something I strongly dislike in ruby on a language level. If you define a setter like `foo=` if you do `foo = :bar`, the expression will always return :bar. It's impossible to get `foo=`'s return. I guess it's true that no one is perfect after all!
English
1
0
3
270
cpm
cpm@cpm·
How am I just learning about `git switch -` today?? I've spent so much mental energy when hopping into another branch to check on something over the years.
English
0
0
1
212
ThePrimeagen
ThePrimeagen@ThePrimeagen·
I find the new twitch mobile app very confusing. Every time I open it I can't tell what I'm doing or where I'm going Am I a boomer or is this bad design?
English
171
7
1K
91.6K
cpm
cpm@cpm·
@thePipester CrowdStrike. Windows is an innocent bystander here
English
0
0
0
19
Dave as a Service
Dave as a Service@thePipester·
So, as I understand it, Microsoft updated Windows, then CrowdStrike updated their agent, then Microsoft updated Windows again and then world broke. Who takes the blame here?
English
1
0
0
54
cpm
cpm@cpm·
I've been using vim key-binds for over 20 years and I still don't really know them. I move lines around with `dd (move) P` all the time. Somehow I managed to lowercase the entire line while I was doing that. Never did that before!
English
0
0
2
408
ThePrimeagen
ThePrimeagen@ThePrimeagen·
@cpm don't think i don't see that hoodie in the photo
English
1
0
8
3.2K
cpm
cpm@cpm·
I don't know what happened to my YouTube algo a few weeks ago that makes it now feed me 30% @ThePrimeagen react videos, but I'm here for it.
English
1
0
13
3.8K
cpm
cpm@cpm·
@JasonSwett @solnic29a There's 2 pieces here. 1) Should we use cmd/form objs? Maybe. Depends how complex CreateUser is. 2) Is PM more readable for success/fail processing? Maybe. I like non-recoverable failures (like DB failure) to be exceptions. If you only have 2 states left, PM is noisier.
English
0
0
0
42
Jason Swett
Jason Swett@JasonSwett·
@solnic29a Relative to a Rails controller I feel like there's too much noise and machinery. (To be fair I think your example and my example don't do the exact same thing.)
Jason Swett tweet media
English
6
0
3
1.6K
cpm
cpm@cpm·
@schwad_rb There was a published version of _why's guide?? How am I only learning about this now?
English
0
0
1
23
schwad
schwad@schwad_rb·
Lucas is two weeks old today. It’s also the day he first learned about Ruby.
schwad tweet media
English
13
2
139
6.2K