HNHacker News
TopNewBestAskShowJobs

sorcercode

306 karma · joined July 26, 2011

https://kau.sh
submissionscomments
sorcercode··on A macOS terminal command that tells you if your USB-C cable is bad
nice! thanks for sharing this. as always, Simon seems to be multiple steps ahead on this game.
sorcercode··on A macOS terminal command that tells you if your USB-C cable is bad
internally uses the same root command btw. in fact this recently changed for Tahoe (as the article mentions).

started out as a shell script but switched to a go binary (which is what is linked).

sorcercode··on Not only am I losing my livelihood to AI – now it's stealing my em dashes too
i have started to reclaim my em dashes by adding spaces around them. if you notice most AI text tacks them on right next to the sentence fragment.

add surrounding spaces to the dash !

it's grammatically correct (but typically uncommon). visually looks more balanced to boot!

sorcercode··on Comprehension debt: A ticking time bomb of LLM-generated code
fair point.

but i'm not proficient != i don't know (i.e. i have worked on javascript many moons ago, but i wouldn't consider myself an expert at it today).

i like to think i can still spot unmaintainable vs maintainable code but i understand your point that maybe the thinking is to have an expert state that opinion.

the code is [oss](https://github.com/kaushikgopal/ff-container-traffic-control) btw so would love to get other takes.

sorcercode··on Comprehension debt: A ticking time bomb of LLM-generated code
There's truth to a lot of what's said in this post and I see many people complain but these opinions feel short sighted (not meant derogatorily - just that these are shorter term problems).

> Teams that care about quality will take the time to review and understand (and more often than not, rework) LLM-generated code before it makes it into the repo. This slows things down, to the extent that any time saved using the LLM coding assistant is often canceled out by the downstream effort.

I recently tried a mini experiment for myself to (dis)prove similar notions. I feel more convinced we'll figure out a way to use LLMs and keep maintainable repositories.

i intentionally tried to use a language I'm not as proficient in (but obv have a lot of bg in programming) to see if I could keep steering the LLM effectively

https://kau.sh/blog/container-traffic-control/

and I saved a *lot* of time.

sorcercode··on I’ve removed Disqus. It was making my blog worse
here's a similar implementation for Bluesky that I whipped up sometime back.

https://kau.sh/blog/bluesky-comments-for-hugo/

I like my implementation cause it blends really well with the blog making it looks almost native.

transferring the burden of maintenance - curation to a social media platform (and a slightly more open one to boot) has been a complete win.

sorcercode··on I miss using em dashes
I recently wrote a post on a way we can [reclaim em dashes back](https://kau.sh/blog/reclaim-dash-lowercase-from-ai/).

The key to do it without the LLM stigma is surrounding it with spaces which still doesn't violate typical writing rules.

sorcercode··on CSS's problems are Tailwind's problems
i appreciate the OP's take and insight but couldn't agree more with this comment.

> yet here I am more productive than ever thanks to it. i have first hand experience with most of the css frameworks. heck, even wrote a custom scss one at one point, but eventually there's a simplicity (admittedly to a fault at times) to tailwind that just makes you more productive.

> Plus people sticking to increments of 0.25rem ins this is another really good point that doesn't come through as much. Tailwind also does a fantastic job of picking the right defaults which 90% of the internet won't do.

from the OP's original piece

>> it demands the developer who installs it set up a config file that lays out all codebase-wide style constants: colors, margin sizes, fonts, border radii, etc.

... or importantly, it sets up a solid set of defaults.

sorcercode··on How to Firefox
Mozilla has had missteps for sure (like almost every other browser company). but the MVP is uBO (which Firefox still allows). Even if Firefox adds that in by default (which suck), uBO allows you to block outgoing traffic to these 3rd party sites.
sorcercode··on How to Firefox
> I also wish there were more keyboard shortcuts for opening links in specific containers, or re-opening a current tab in a different one.

fwiw, there are add-ons that allow you to do this - in one way or the other (Container Hotkeys https://addons.mozilla.org/en-US/firefox/addon/container-hot... for example).

but out of curiosity,

> I know you can set certain domains to always open in certain containers - fine for Facebook, when I occasionally have to use it - but annoying when I'm trying to do things in different (e.g.) Bluesky accounts.

on this one btw, the Containerise extension i talk about (if it wasn't clear) allows you to also map "portions" of the url in specific containers. so /u/0 in one /u/1 in another; ofc, this requires the service/website to distinguish the accounts via the url. i do this for github a lot (work repos in specific containers)

sorcercode··on How to Firefox
sorry I'm not necessarily seeing this. could I ask for more details ?
sorcercode··on How to Firefox
honestly I've just left the extension on. Firefox does natively have this feature now.
sorcercode··on How to Firefox
yep that's something I learned later.

fwiw though: Zen does have other challenges at the moment with the Widevine licence. so you effectively can't use it to watch most video services today.

But point taken, from a technical accuracy perspective.

sorcercode··on How to Firefox
appreciate it. funnily enough I thought I implied it with the Arc mention. but rereading it, you're right, that fact doesn't come through at all.

will make an edit

sorcercode··on Writing Code Was Never the Bottleneck
gladly. i haven't written about this aspect yet but happy to do that.

and fwiw, i'm also not alone in this observation. I can at least remember 2 times in the last month that, other colleagues have cited this exact same benefit.

e.g - a complicated algo that someone wrote 3 years ago, that's working well enough but has always had subtle bugs. over a 2 day workshop, we start first by writing a bunch of (meaningful) tests with an LLM. then ask the LLM about portions of the code and piecing together why a certain bit of logic existed or was written a certain way, add more tests to confirm working behavior, then start refactoring and changing the algo (also with an LLM).

much of this is similar to how we'd do it without LLMs. but no one has bothered to improve/change it cause the time investment & ROI didn't make sense (let alone the cognitive burden in gathering context from git logs or old timers who have nuggets of context that could be pieced together). with LLMs a lot of that friction can be reduced.

sorcercode··on Writing Code Was Never the Bottleneck
_about 2 years back. I pushed back hard with a similar argument but I have since come around._

I think the premise is true that writing code was never the "main" bottleneck but like any power tool, when wielded by the right person, it can blow past bottlenecks.

many of these arguments,only assume the case of an inexperienced engineer blindly pumping out and merging code. I concede the problems in this case.

but put this to test with more experienced engineers. how has/does it change their workflows? the results (I've personally observed) are exponentially different.

---

> LLMs reduce the time it takes to produce code, but they haven’t changed the amount of effort required to reason about behavior, identify subtle bugs, or ensure long-term maintainability.

I have to strongly disagree here. this argument doesn't apply universally. I've actually found LLMs to make it easier to understand large swaths of code, faster. especially in larger codebases that have legacy code that no one has worked on or dared to touch. LLMs bring an element of fearlessness, which makes it easier to effect change.

sorcercode··on Kotlin-Lsp: Kotlin Language Server and Plugin for Visual Studio Code
what job do you currently take?
sorcercode··on Apple needs a Snow Sequoia
the myth has indeed become everyone's reality
sorcercode··on My Life in Weeks
Terrifyingly inspiring.
sorcercode··on [dead]
With Apple intelligence floundering to find its foothold, I believe Google (& || Samsung) have a real shot at capturing some* of that iPhone market share.

My linked blog post (just a summary the above thought with aside details) points to this [youtube video](https://www.youtube.com/watch?v=JmxqOX0RN1w) doing the rounds which shows one of these AI features (magic erase) -- an example of a feature that i suspect customers will soon come to expect.

* - yes, yes Android holds a larger global market share, but the iPhone still dominates in terms of cultural influence.

sorcercode··on Build a link blog like Simon Willison
Love this approach. For the Hugo blog users, my theme https://github.com/kaushikgopal/henry-hugo makes this style of blogging easy. Just add external link in the yaml header and it'll be marked up as a "link" style post
sorcercode··on [dead]
Here's a reliable way to use the Option key on macOS for keyboard shortcuts instead of special characters.
sorcercode··on [dead]
A shell script that pings your blog json feed and auto-posts to Mastodon.
sorcercode··on Solarized
I moved from Solarized to Monokai Pro. And it’s hard been to switch out to any other theme.

Monokai was Sublime’s default but I urge folks to specifically look at the Pro version here. https://monokai.pro/

sorcercode··on What does $0=$2 in awk do?
I understand the sentiment. As a software engineer I refrain from clever code especially if somebody else has to come and maintain it.

In this case, once you realize how the defaults stack, whoever came up with the one liner indeed has come up with something clever. Also the exercise in understanding the defaults cements the understanding of awk and as others have pointed out enables you to write much cleaner awk.

sorcercode··on Mcmaster.com is the best e-commerce site I've ever used
Mark Rober - the popular YouTuber (ex NASA/Apple engineer) also recommends this site in his Studio course.

https://studio.com/mark-rober-engineering

sorcercode··on What does $0=$2 in awk do?
for the kind words and noticing .

I enable the sidenotes based on how “wide” your current viewport is. I’ve just personally found they don’t work as well on smaller screens.

I wrote it with simple jQuery. Happy to share if anyone is interested and don’t want to have to write it from scratch.

sorcercode··on What does $0=$2 in awk do?
Nice! I think your solution is definitely more legible.

The key to legible awk I’ve found is to not rely on the defaults that awk assumes.

(but it’s quite the mental exercise to decipher it). Feels like regex but less painful

sorcercode··on Hacking Your Keyboard
Misleading is a tad bit extreme :).

FWIW: I did mention it in a first draft but removed it cause it seemed like fluff.

> You can do this pretty easily with Karabiner but it barely scratches the surface of Karabiner’s true power.

Karabiner is far far more powerful than just basic key mappings.

Also the linked blog post at the bottom mentions the exact point you make (viz if all you need is a caps lock to escape mapping, use the built in features on the Mac)

sorcercode··on Hacking Your Keyboard
This reminds me: I need to port my yuio keys to home/pg down/pg up/end + caps lock.
← PreviousPage 2 of 3Next →