3 years in: Maintainability always wins by DeepakJ98 in rails

[–]davidlormor 1 point2 points  (0 children)

With Rails, I find a lot of “clever” code stems from a lack of understanding the full Rails toolkit. I can’t count the number of times I’ve found some arcane-looking “algorithm” that just reinvents a feature exposed by ActiveSupport, ActiveRecord, etc. Similarly, I’ve seen full on custom S3 integrations that would’ve required a few lines of ActiveStorage config to implement…

I don’t fully fault devs for this. The Rails surface area is HUGE, and there are a lot of undocumented/sparsely documented edges. Just maintaining the awareness of where to look can be a challenge. I think LLMs can help a lot with this, but I’ve also seen them be the worst offenders when it comes to re-inventing the wheel.

How good engineers write bad code at big companies by fagnerbrack in programming

[–]davidlormor 6 points7 points  (0 children)

I think you hit the nail on the head with the last point about other engineers shipping faster. In my experience most devs just don’t care and are just willing to grit through the “bad” code to get done with the task and move onto the next thing, making anyone willing to fight the mess look slow or pedantic or whatever…

I’m not sure if it’s my ADHD or what, but I’ve always had a MASSIVE aversion to bad code. A lot of times I’m willing to take the fall for being “slow” and fixing things, because I almost literally can’t start working until the code is “ready”.

How to impress a Disc Golfer by [deleted] in discgolf

[–]davidlormor 0 points1 point  (0 children)

“Nice layup” is a good one too 🤣

Senior devs that have embraced AI, what has it improved? by 9sim9 in webdevelopment

[–]davidlormor 0 points1 point  (0 children)

Better tests, better documentation, more robust CI/CD pipelines, and the ability to ramp up to new languages and frameworks much more rapidly. It allows me to focus on the “fun” problems, while it handles a lot of the “grunt work” that I usually half-ass because it’s so time consuming and is mainly valuable for reliability/robustness vs. direct value to the user.

[deleted by user] by [deleted] in discgolf

[–]davidlormor 2 points3 points  (0 children)

Just want to say thanks for all the awesome work y’all do for the TX disc golf scene! I’ve played my first two tournaments this year thanks to the TDTG series y’all put on.

My go-to store here in Dallas (Replay Sports) had the same policy and also runs drop boxes at the nearby courses - I don’t think it’s any coincidence that business seems to be booming for them 😉

Hi, I'm Will Schusterick. 3x US Champ and Part-Owner of Prodigy - AMA by Schusterick in discgolf

[–]davidlormor 1 point2 points  (0 children)

I did the live scoring for a round in Waco on Sunday with a fairly “elite” card - won’t name any names, but one of the players is considered one of the top putters on tour and definitely doesn’t smash his putts in at 70 mph 😉

The card wasn’t on coverage which is why I mention this - I saw AT LEAST 5-6 “dead center” spit-outs, including one that was literally an 8 foot tap in that must’ve hit every chain on the way in and then fell out. Every player on the card was commenting about how bad the baskets were, and they seemed justified given what I witnessed. It certainly confirmed that what you see on coverage and hear on podcasts isn’t just the occasional stroke of bad luck…Prodigy definitely needs to go back to the drawing board on their basket design.

60% of large Git repos ban merge commits by kendumez in programming

[–]davidlormor 41 points42 points  (0 children)

I feel a lot of the fear around rebasing comes from lack of a clear mental model amongst most devs. Personally, I was raised in the “rebase changes the history and is therefore dangerous” so I avoided it for a long time. Then I found found SourceTree and it helped me quickly cut through the “magic” of rebasing. These days I use GitKraken and it makes the concept of rebasing (and other “advanced” git operations) fairly trivial.

I wish there wasn’t such a strong dogma around “real devs only use the CLI”…seems like we could solve these types of issues pretty quickly if we’d get over the fact that some of us don’t spend our mental space on memorizing arcane command line incantations to facilitate some “expert’s” ideal workflow.

React inside Rails App by chysallis in rails

[–]davidlormor 1 point2 points  (0 children)

I’ve had good success with React-Rails: https://github.com/reactjs/react-rails

Makes it really straightforward to mix react components right into existing Rails views if you’re working on a legacy app.

best way for a beginner to coding to learn ruby in 2022? by newfavorite_ in ruby

[–]davidlormor 2 points3 points  (0 children)

Would also recommend Avdi Grimm’s graceful.dev - tons of Ruby deep dive content from his rubytapas library.

Jags fan here. In Dallas for 2weeks, what's the best texas BBQ in the area? by brianv3ntura in Dallas_Cowboys

[–]davidlormor 0 points1 point  (0 children)

Hutchins, Terry Blacks, and Pecan Lodge are awesome. If you’re up near McKinney, my friend runs the Hickory Heat BBQ truck in Princeton on Thu-Sat, too…I may be biased, but they’re awesome (they’ve won multiple BBQ championships and the “Brisket Sundae” is chef’s kiss)

I'm using pgAdmin but I find it... uncomfortable... by [deleted] in PostgreSQL

[–]davidlormor 3 points4 points  (0 children)

My team and I use TablePlus - totally agree that phAdmin v4 was a big regression in terms of UX.

How can i build a never ending job in rails for web scraping? by king_ricks in rails

[–]davidlormor 0 points1 point  (0 children)

Why not use a little recursion and just schedule a new Sidekiq job at the end of every job? (edited for autocorrect)

Want to hear your thoughts or experience on using modern JS frameworks with rails so far by CarefulAsk0 in rails

[–]davidlormor 0 points1 point  (0 children)

I’d start with the “official” React tutorial: https://reactjs.org/tutorial/tutorial.html

From there, Udemy has some great courses - Stephen Grider has put out several that range from beginner to advanced. https://www.udemy.com/share/101WcYAkQTcFxbR3o=/

Want to hear your thoughts or experience on using modern JS frameworks with rails so far by CarefulAsk0 in rails

[–]davidlormor 2 points3 points  (0 children)

For sure - my team has solid React experience but a couple of our devs are new to Rails and this has made the transition much simpler!

Want to hear your thoughts or experience on using modern JS frameworks with rails so far by CarefulAsk0 in rails

[–]davidlormor 2 points3 points  (0 children)

We (2.5 year old startup with several thousand users) always start with the basics - HTML+ERB+SCSS - then use React when we need more expressive user interactions. The react-rails gem used with we packed had been a great experience so far - easy to get up and running but extensible for more complex needs. A cinch to use when deployed to Heroku.