chan is on vacay ✌️
42.7K posts
Image
user avatar
chan is on vacay ✌️
@chantastic
the universe experiencing life as a piece of shit
this glorious body
youtube.com/@chantastic
Joined January 2008
934
Following
17.1K
Followers
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Jun 10, 2018
    i told a friend, in photography, what the tech teams considers "soft skills." he laughed and said "your industry is so fucked. you're saying that being human is a 'nice to have'."
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Mar 10, 2021
    My 85 year old grandmother passed today This is the woman who taught me how to program BASIC on an ATARI She helped us got our first computer (Intel 386) and told me to "break it". I did and she was the first human to debug my mistakes I am because she was
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Sep 30, 2022
    I’m not a good developer I just have one surprising skill that makes me incredibly effective My secret? I read docs
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Nov 21, 2020
    Is it a React developer prerequisite to forget all the cool, free shit the browser does for you?
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Jul 19, 2019
    In 12 years of fullstack development, nothing has been harder to master than CSS
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Feb 11, 2024
    crap, someone on stack overflow is convincing me that SQL column prefixes are actually good. i hate that i’m coming around
    All columns should be named with a prefix that is unique to the table they are defined in.

E.g. Given tables "customer" and "address", let's go with prefixes of "cust" and "addr", respectively. "customer" would have "cust_id", "cust_name", etc. in it. "address" would have "addr_id", "addr_cust_id" (FK back to customer), "addr_street", etc. in it.

When I was first presented with this standard, I was dead-set against it; I hated the idea. I couldn't stand the idea of all that extra typing and redundancy. Now I've had enough experience with it that I'd never go back.

The result of doing this is that all of the columns in your database schema are unique. There is one major benefit to this, which trumps all arguments against it (in my opinion, of course):

You can search your entire code base and reliably find every line of code that touches a particular column.

The benefit from #1 is incredibly huge. I can deprecate a column and know exactly what files need to be updated before…
    200K
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Sep 22, 2021
    "best practice" is just someone else's preference
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Sep 8, 2023
    A rare update to my zsh package manager function
    # zsh/functions/p
# determine package manager and run command with it
p() {
  if [[ -f bun.lockb ]]; then
    command bun "$@"
  elif [[ -f pnpm-lock.yaml ]]; then
    command pnpm "$@"
  elif [[ -f yarn.lock ]]; then
    command yarn "$@"
  elif [[ -f package-lock.json ]]; then
    command npm "$@"
  else
    command pnpm "$@"
  fi
}
    173K
  • user avatar
    chan is on vacay ✌️
    @chantastic
    May 1, 2020
    your chosen framework is not a personality
  • user avatar
    chan is on vacay ✌️
    @chantastic
    Sep 7, 2021
    I've been seeing UI Engineer all over the place this week This term is so much better than "Frontend Developer." It feels real demeaning to describe your work as half of something

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms of Service|Privacy Policy|Cookie Policy|Accessibility|Ads info|© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up