JD Lien (@jdlien) header
JD Lien (@jdlien) profile picture

Tweets about PHP/JS/Laravel/Tailwind. I help web developers be awesome at their craft. Bluesky: @jdlien.com Mastodon: @jdlien@mastodon.social

🇨🇦 Edmonton, Alberta
Joined February 2009
Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)Photo by JD Lien (@jdlien)
I'm more active on Bluesky these days — it's a rapidly growing, fun platform, without a lot of the negative aspects of X, so it's well-worth checking out. Follow me there at bsky.app/profile/jdlien.com
465
That's my story in a nutshell. I left a job I was good at and enjoyed to go freelance. It was scary (maybe more so for my wife), but I've got plenty of work now—and when I work hard these days, I actually earn what I'm worth.
My coworker got promoted over me. He was worse at coding. Better at politics. I wrote better code. Fixed more bugs. Shipped faster. He talked in meetings. Took credit. Played the game. He got the promotion. I got "keep up the good work". That's when I realized: corporate rewards politics, not performance. Six months later I quit. Started freelancing. Now I make 3x his salary. No politics. No credit-stealing. Just solving problems and getting paid directly. The best developers rarely get promoted. They get used. Companies optimize for compliance and communication. Not competence. If you're technically great but politically terrible, you'll never win at corporations. Leave. Build your own thing. Get paid for your actual value.
1
99
Looking for work in the tech industry these days has gotten rough. I seriously underestimated this situation when I left my job with no plan last year. @theo made a pretty solid video talking about this that resonates with me. youtube.com/watch?v=2PiM2e4R…
1
1
103
I'm really lucky that the relationships I've gradually built through work, hobbies, family, and Twitter led to lots of interesting opportunities, so I'm doing okay, and I've got lots of interesting stuff to work on.
1
3
If you work with databases enough, you’ll eventually need to migrate a database from one RDBMS to another. This can be challenging, but it doesn’t have to be! My latest article for @aarondfrancis covers planning migration of a DB from SQLite to Postgres. masteringpostgres.com/articl…
1
19
2,661
It's that time of year when we look back at all the things we've done to remind us that maybe we've actually come further than we think we have. Here's my 2024 year in review going over a bunch of the crazy things I've done this year! webartisan.info/jds-2024-yea…
3
6
354
After three painful days of configuring AWS and a full-stack legacy web app to deploy it a cloud hosting environment, tell me again how AI is going to replace me so I can get back to playing video games all day. Can’t wait for it—but it ain’t this year, that’s for sure!
Every “Programming is dead” take I’ve seen so far is coming from people who have no clue about programming.
135
I’ve gotta say, the man makes a good point. All the other things are just tools, they aren’t taking software engineering jobs as much as they are augmenting them.
In 1994, people told me programming was for nerds and that I should become a doctor or a lawyer instead. 10 years later, they told me that someone from India would take my job for $5/hour. Then, no code was going to doom my career. In 2021, Codex, then Copilot, then ChatGPT, then Devin, then OpenAI o1... People keep yelling that "Programming is Dead," and yet the demand for good Software Engineers has never been higher. Stop listening to midwit people. Learn to build good software, and you'll be okay.
1
138
If you've wondered whether SQLite or PostgreSQL would be a better choice for you or want to understand the differences between these popular (but very different) RDBMSes, here's my latest article for @aarondfrancis' DB courses with a nice explainer: masteringpostgres.com/articl…
1
8
2,573
Hey, fellow database nerds! 👋🤓 I've got a fresh new article out for the blog at @aarondfrancis' Mastering Postgres course. Today's topic: PostgreSQL vs. MySQL. You've heard of both and wondered what the differences are. I go deep in the article, but here's a teaser: 🧵
1
3
14
4,612
MySQL emphasizes simplicity and speed. It's great for beginners, and it's more flexible and forgiving. Postgres emphasizes strict SQL compliance and advanced features for highly specialized applications, like JSONB, array, and range types.
1
1
218
I just finished narrating, recording, editing, encoding, and tagging the audiobook version of @AshAllenDesign's book, The Web Dev's Guide to Freelancing! Over 5.5 hours of finished audio for your educational listening enjoyment. I'm stoked for its release!
2
1
7
1,411
Videos on YouTube now: Title: "DON'T buy this! Worst product ever!" Thumbnail: "Guy with pained expression looking like he was shot in the stomach" Video Content: Blasé video where guy runs benchmarks and concludes "Yeah, everything is pretty good, it's alright" So annoying.
1
2
110
Also, don't forget about the three minute sponsor reads at the beginning, middle, and end. This is on YouTube Premium, by the way. Starting to rethink whether I'm getting enough value from that subscription. I should probably just read more books or something.
47
Awesome overview of a super common use case for the new property hooks feature in PHP from the inimitable Jeffrey Way.
Property hooks, one of the new features in PHP 8.4, can remove the need for traditional getter and setter methods entirely. Got 5 minutes for me to show you the essentials?
1
100
Neat post from @JoshWComeau (on bsky) about how he didn't use X, only Bluesky, to promote his course. He basically didn't get any fewer sales. What a dumpster fire X has become, it's almost ineffectual for normal creators posting useful stuff. 😢 bsky.app/profile/joshwcomeau…
1
72
Ever wondered how primary keys work in SQLite? If you want to make the most of your databases, you'll need to understand these, as they are different from most RDBMS systems. I wrote an article for @aarondfrancis' High-Performance SQLite course covering this. Here's a rundown:
1
1
5
2,760
In SQLite, every table gets a hidden rowid column by default, which is the primary key. It's an auto-incrementing integer to identify each row. It's also aliased to _rowid_ and oid for legacy compatibility.
1
1
82
I’m so stoked to see other devs out there playing with LEGO. There are so many amazing LEGO sets these days targeted at adults, some by the company and many by independent creators.
This if my office "hobby" when I have spare time. I took it slowly. A few pages in one sitting. It took a few months. But what a beauty. Masterpiece of both real-life and LEGO engineering.
1
106
Wow, for the years I've worked with PostgreSQL, I only now realized that I (and everyone else) pronounces it incorrectly! It was originally named "Postgres" because it came after "Ingres", and later tacked on "QL" after adding SQL support. It's "Post-GRES-cue-el" craigkerstiens.com/2018/10/3…
2
109
I have thought this for a long time. It’s getting to be a trickier problem over time. In my website I just built a simple captcha that asks you to type some variation of my name, then if your email doesn’t contain three common English words, it gets rejected. (Most of my spam was complete gibberish.)
Most of the "are you human" captcha tests look completely solvable by today's AI models... I think we are past the stage where we can differentiate human from AI without making the verification challenge impractically annoying.
1
1
123
It has a 100% spam prevention rate, and I’ve even received legitimate emails from humans, so it has less than a 100% human rejection rate!
34
There are so many fun things you have to know when you alternate between editing large quantities of prose in British, American, and Canadian English.
1
1
59
For instance, the Oxford University Press Style Guide and University of Oxford Style guide are not the same and have significant differences. But when editing a book on APIs, it's handy to go by OUP, because it allows spelling words like authorize the way it's written in code.
49
I'm on the homestretch editing @AshAllenDesign's book "Web Dev's Guide to Freelancing". I'm stoked for its release! After an all-nighter going through "Client and Project Management", Ash's sage advice gives me the confidence to go out and take on big new projects.
2
1
1
903
I sure wish I had a book like this when I was younger and started doing a bit of freelance work. This is so much better than learning things the hard way!
1
49