Updating some Backbone.js code… What a blast from the past, over the year’s I believe I’ve worked on three Backbone projects. It’s fun to dig into legacy hotness from 10 or 15 years back it allows you to judge the code with more clarity. The code today was pretty clever, the Backbone stuff I worked on a year ago; not so much.
New script to kill the rails s: lsof -i:3000 | grep "ruby" | awk '{print $2}' | xargs kill -15
I’ve set that as a workflow in Alfred that runs when I hit command-control-r (⌘⌃R). I set this up last year because I find Rails gets hung up and control-c isn’t enough to kill it. However, prior to right now I was using lsof -i:3000 | xargs kill -15 which would also kill Firefox (Zen), grep for Ruby and then grabbing the specific processes fixed this.
Args and Params
I think I’ve always used args and params interchangeably; TIL parameters are what the function accepts and arguments are the values passed in. For example in Elixir:
def my_func(name, age) do
...
end
# above name, and age are parameters
# then at the call site:
my_func("Travis", 34)
# "Travis" and 34 are arguments
Just read the term “React Engineer”, I know it’s cliche but I need to scream into the void on this: there is no such thing as a “React Engineer”; engineers are licensed professionals and highly regulated, slapping components together to “make the graphql look pretty” is not an engineering job.
I get that these terms are conflated, but I never call myself a “software engineer” because I didn’t do an engineering program.
Whenever I get a spammy text my first move is to run:
loadtest -c 50 -n 1000000 --rps 10000 https://spammy_url.com
They generally don’t use beefy servers so it’s fairly easy to crash them at least for a few minutes. Thinking of creating background script to run this constantly for any spam texts I get, might be enough to spike a Lambda or Vercel bill a bit.
I’m a firm believer that 40-60% of jobs in the modern world do not need to exist. AI is driving those jobs out of existence, unfortunately it is not doing so by creating a simpler more utilitarian world, instead it serves as a multiplier for that waste and will likely create even more layers of pointless abstraction.
I’m a firm believer that 40-60% of jobs in the modern world do not need to exist. AI is driving those jobs out of existence, unfortunately it is not doing so by creating a simpler more utilitarian world, instead it serves as a multiplier for that waste and will likely create even more layers of pointless abstraction.
Last week I added internationalization to an large B2B app I’ve been working with for the past 6 years. It’s pretty gratifying to see this app that dozens of employees and hundreds of customers use every day now in Italian, Spanish, German, Polish and Dutch!
I was thinking of embedding Calendly directly on my website so people could schedule meetings with me but it drops 3 cookies and makes about 11 network requests on page load… That’s a hard pass.
We’ve moved on from the “Israel has a right to defend themselves” phase to the “Israel has a right to develop beach front real estate” phase and still most world leaders are silent about this.