Recent submissions

Comment · 1 year ago
"Most ambitions are either achieved or abandoned; either way, they belong to the past. The future, instead of the ladder toward the goals of life, flattens out into a perpetual present. Money, status, all the vanities the preacher of Ecclesiastes described, hold so little interest: a chasing after wind, indeed." - Paul Kalanithi
Comment · 1 year ago
this.
Comment · 1 year ago
a lot of good points but i feel like one of the biggest i've learned is missing...

leaning toward functional techniques has probably had the biggest impact on my productivity in the last 10 years. some of the highest cognitive load in code comes from storing the current state of objects in ones limited memory. removing state and working with transparent functions completely changes the game. once i write a function that i trust does its job i can replace its implementation with its name in my memory and move on to the next one.

Comment · 1 year ago
thats like the entire jamband scene which been around since the 60s... the grateful dead, phish, kind gizzard and the lizard wizard...

one could also mention the electronic scene in there. aphex twin released ventolin in 1995 which was the same track remixed multiples times with different edits.

Comment · 2 years ago
i've worn my 13oz raw denim everyday for 2 years and they still look new and are incredibly soft. the only tares are along the cuff where i folded them and where my buckle corner rubs against the jeans. conversely most levis or similar will fall apart within 6 months for me.
Comment · 2 years ago
just let it go and move on... don't let the negative energy eat you up, it's just not worth it.

i was screwed out of over 6 months of pay north of $50k. i wasn't keep tabs on the payments and i wasn't keeping detailed records of my work. both things i no longer let slide in any way. i spoke to many people and lawyers, but decided to move on and let it go.

in the end how much money and time and energy do you want to spend on another lousy human being or entity? it only hurts you emotionally and takes up valuable time to focus on more productive things. ten years later it's a blip in my life that forced me to learn and be better about picking clients and billing, etc. don't let the 10% ruin your work with the other 90%.

Comment · 3 years ago
to prove you are elite, what do these mean: f00, BAR, SLOW, ABS, NB, TF, SLM

;P

Comment · 3 years ago
most functional techniques wrap walking a loop into a few functions, like fold. writing loop constructs can be error prone. one is much less liable to make a mistake passing in an array into a function and have it processed using another function. idea being separation of logic. why care about loops when one only thinks in arrays and streams being processed? i don't think i've written a for loop in js in a couple years at this point with the help of libraries like ramda.

oh and loops constructs are not composable...

Comment · 3 years ago
the difference is using tools vs building your own tools when you need to. the idea of these algorithms is not to memorize them but to understand how they are build and what goals they are trying to accomplish. understanding of the basic building blocks allows approaching and solving problems in a different light.
Comment · 3 years ago
seems weird to me that one would want to do any of these things inside vim... though it should be possible with the right plugins... but why? just use a window manager like screen or tmux to multi-task.
Comment · 3 years ago
would definitely agree. i find tmux + vim does almost everything i need. granted i don't try to script anything myself. generally there are command line tools or vim plugins that do most i want. adding to much gravy to vim also just slows vim down which can be incredibly frustrating when one is used to typing very fast.

i would say just a couple of years of vim isn't enough to really become one with the software. think it took me around 5 years to really understand why vim is amazing. took me at least one year just to get the hang of it properly and be highly productive. i can't even type in a normal editor anymore as my brain is wired to vim commands. and i still to this day learn new commands which make my life easier.

that being said i totally understand why people love emacs. but i get a decent amount of the window management stuff just using the tmux.

and vi is installed almost everywhere as an editor which makes editing in 90% of environments a breeze. even when in windows gvim does pretty good.

Comment · 3 years ago
if you enjoy functional programming and are looking for a utility library, ramda has been a joy. very very well thought out. being able to compose functions together and treat data as a stream of information being transformed is incredibly easy. it is also compatible with libraries which implement algebraic structures like fantasy land. coupled with the other r libs its quite fun to program with. just be careful as it gets hairy to read pretty fast if one doesn't understand all the functions that come into play...

  // pull traits dictionary out of tokens
  const extractTraits = R.pipe(
    R.map(R.pipe(
      R.last,
      R.prop('attributes'))),
    R.reject(R.isNil),
    R.reduce(R.mergeWith(concatValues), {}),
    R.map(R.pipe(
      R.unless(R.is(Array), R.of),
      R.groupBy(R.identity),
      R.map(R.count(R.identity)),
      R.toPairs,
      R.sortBy(R.prop(0)),
      R.map(R.zipObj(['name', 'count'])))));
Comment · 3 years ago
let them cheat. every assignment let them know that in the end they are only hurting themselves. the ones that want to learn, won't cheat. simple as that. and that ones that cheat and leverage it, great. hope that works out in the future at your next destination. all you can ever do is present the facts. there is no point wasting time trying to catch this.
Comment · 4 years ago
yes, hiccup. small stuff is fine but when working with real apps and 100s of lines of html that make up pages... no thanks.
Comment · 4 years ago
absolutely love clojure and all that it's taught me. i even ported many of the core functions to python so i could continue using them.

but not a fan at all of writing html in clojurescript. it's extremely ugly to look at vs raw html/jsx. and became cumbersome really fast for me as my app grew in size... maybe there are better alternatives now, this was around 5 years ago.

using react with libraries like ramda/redux/rxjs in affect achieve the same thing but with 10x more libraries and references online.

the philosophy behind clojure will completely change how you code and visualize problems if you embrace it. honestly can't remember the last time i wrote a for loop...

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton