user avatar
chan
@chantastic
the universe experiencing life as a piece of shit
this glorious body
Joined January 2008
Posts
  • user avatar
    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
    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
    Iโ€™m not a good developer I just have one surprising skill that makes me incredibly effective My secret? I read docs
  • user avatar
    Is it a React developer prerequisite to forget all the cool, free shit the browser does for you?
  • user avatar
    In 12 years of fullstack development, nothing has been harder to master than CSS
  • user avatar
    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โ€ฆ
  • user avatar
    "best practice" is just someone else's preference
  • user avatar
    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
}
  • user avatar
    your chosen framework is not a personality
  • user avatar
    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
  • user avatar
    imagine writing this ternary and thinking "it's Prettier that's the problem"
    Prettier is thinking about improving the auto-formatting of ternaries. This would be MASSIVE for improving conditional types in TypeScript, as well as improving life for devs all over. Which of these do you prefer?
  • user avatar
    I write a lot of code onto paper Changing mediums changes your intentionality and it helps
    My notebook with a pen inside of it code written on the pages
  • user avatar
    I boarded a flight, masked. A woman next to me, unmasked, asked โ€œwould you like me to wear a mask as well? i brought one if it would make you more comfortableโ€ What an absolute gem ๐Ÿ’Ž
  • user avatar
    Let's be honest It's CSS-in-React