HNHacker News
TopNewBestAskShowJobs

MarkMarine

2,980 karma · joined June 2, 2015

submissionscomments
MarkMarine··on Rahm Emanuel says U.S. should follow Australia's youth social media ban
Regulating is already being done by the “private” companies that own them, heck it’s the plot of a bond movie (sub in newspapers for social media) with a real life Larry, Elon or Mark as the villain.

As a society we choose what to allow or not allow together, collectively, through politics (ideally) and when things damage our collective health we regulate or ban them. All regulations probably seem impossible before they happen. Australia regulated guns, China regulated social media, plenty of countries regulate alcohol, drugs, gambling. It’s all possible, just have to weigh the positives and negatives and find a balance, but the status quo is broken.

MarkMarine··on Rahm Emanuel says U.S. should follow Australia's youth social media ban
I lucked out in when I was born, I developed before social media existed and my college was a later addition to Facebook. I think it just doesn’t affect me in the same way… like someone who has never won a dollar gambling looks at a gambling addict. I’ve got tremendous empathy for the people that are addicted to it and I can’t imagine how corrosive it would have been to my teen years, so much as I revile the politics behind Rahm who believes nothing and will stick his finger in the wind every few minutes and go where it takes him, I’m glad this is the way the winds are blowing. Social Media should be regulated like alcohol and cigarettes and drugs. All addictive, all tuned to hit dopamine centers, all bad for our health in different ways.
MarkMarine··on Autism's confusing cousins
I will Tom. That comment was touching the third rail for me and I reacted where I shouldn’t have.
MarkMarine··on Autism's confusing cousins
Didn’t call anyone stupid. I said the comment was stupid. I maintain it was.
MarkMarine··on Autism's confusing cousins
[flagged]
MarkMarine··on Netflix to Acquire Warner Bros
as a positive, maybe this will make fast forward work on HBO streaming. One of the little UX pebbles in my shoe that Netflix has figured out.

Jokes aside, HBO is a prestige TV brand. Netflix had a deep desire to create and run premium content previously, but the cost and volume they could put out was clearly a problem for the business. Maybe HBO becomes the premium, prestige TV brand and we get 1-2 series at a time from that + movies, and Netflix remains as it is. This consumer would be quite happy with that.

MarkMarine··on Accepting US car standards would risk European lives
That is not the only reason for a big car. You have to find special forward facing child seats to put 3 wide in a Tesla model 3 rear row, then do yoga to try to insert the children into them. To run the child seats facing backwards as long as possible, you need to be something like 5’4” or less to be comfortable with 2 seats in the back. That’s pretty standard in the “normal” sized car market, having a SUV or a minivan makes sense considering that.

I know. Sold my Tesla, now drive a Land Cruiser. A small car is just an exercise in pain when you have kids and need a car to get everywhere. If I had safe bike lanes to get the kids to school and practice and the grocery store, I’d just have an urban arrow… but I’m not contending with the aforementioned kindercrushers that aren’t looking for cyclists and risking my kids with the way our streets are designed. I would happily support changes that fix this, but this is the world we’re in as parents.

MarkMarine··on Writing a good Claude.md
Setting hooks has been super helpful for me, you can reject certain uses of tools (don’t touch my tests for this session) with just simple scripting code.
MarkMarine··on Gemini CLI tips and tricks for agentic coding
I love the model, hate the tool. I’ve taken complex stuff and given it to Gemini 3 and been impressed, but Anthropic has the killer app with Claude Code. The interplay of sonnet (a decent model) and the tools and workflow they’ve got with Claude code around it supercharge the outcome. I tried Gemini cli for about 5 seconds and was so frustrated, it’s so stupid at navigation in the codebase it takes 10x as long to do anything or I have to guide it there. I have to supervise it rather than doing something important while Claude works in the background
MarkMarine··on Migrating the main Zig repository from GitHub to Codeberg
I’m sure this isn’t directed at everyone that works at GH, but it would have been more tactful to fault the people making decisions. Those frustrations are real though.
MarkMarine··on Migrating the main Zig repository from GitHub to Codeberg
Reading the infra part of the post made me smile, I spent part of my week putting workloads on spot but this is the real spot market. Chaos monkey is running in prod if you are ready for it or not.

Jokes aside, the technical depth it takes to make that one server run is impressive. That makes me more interested in codeberg, not less, though I’m going to keep my own mirror of the zig repo until they get some better hardware.

MarkMarine··on Homeschooling hits record numbers
There is no such thing as “the neighborhood kids” anymore. Having any kind of social circle for your children is going to require your facilitation and effort… a lot of it. It’ll be extra hard without the common bond of shared activity.

Not knocking what sounds like your choice to homeschool, just sharing something that has changed from my youth.

MarkMarine··on Revisiting Interface Segregation in Go
I’m not a Java dev, my preferred languages are Clojure, scala, rust, and python. I think you assumed ignorance, tried to explain something your colleagues probably don’t get to someone who understands it, and then haven’t put the effort into reading the link I sent earlier, and I’ve failed miserably at explaining my point.

I think you’d have to have seen the problem, and maybe it only pops up in a large go monorepo that uses DI the IDE can’t see through, while simultaneously having to work with interfaces like “Get” where some of the implementation was written by devs who think Get is a mutation.

You’re right though. We’re talking past each other and both think the other one is a moron. Leave it to the reader to figure out which one is I suppose.

MarkMarine··on Revisiting Interface Segregation in Go
Look, I understand duck typing. Go doesn’t have it, the fact you keep calling go’s dynamic dispatch duck typing is a bit of a red flag, but I can see why you would think that. It’s not my point though, you’re missing what I’m saying.

You’re saying, essentially, that you just use the objects method and you don’t need to read its implementation to understand what it does, if something has a “Update” method and it takes a new copy of the object and it’s a pointer method, as a caller we can assume that we give the new data to that update method and it’ll just take that data and patch it into the object at that pointer address. You don’t have to read the method and go on with your day, the interface proves it works and you don’t need “implements”

The problem with this is there are bad programmers who do crazy things with “Update”. Some people will kick off go routines that do things later and mutate things you don’t expect. So when you fetch 500 things then update them in a loop and suddenly nuke your database with 50,000 writes simultaneously that are all contending for the same key, you will go back to Update and see… oh fuck this update method uses some clever Postgres queue and keeps a lot of metrics that are also in Postgres, that’s why my system locked when it shouldn’t have. I should have read this Update method.

So that is crux of my point. Having the method name and function parameters only is not enough to understand your program, and using single interface definitions all over the place hurts readability and understanding.

MarkMarine··on Revisiting Interface Segregation in Go
Your two paragraphs give example to the exact problem. “It doesn’t matter what the name is, interfaces aren’t precious”, and “you don’t need to see the implementation to know what it does, just read the method name and type signature” right?

Not sure how you hold those two things in your head at the same time, but they are anathema to each other. Different implementations of the same function name and type signature can have drastically different effects in go because side effects are everywhere in go, so you must read the implementation to understand what it does.

If this was Haskell and I could read the type signature and trust that I know what the system did with that (ignoring Rich Hickey’s point about the type signature not describing what “reverse” does) then fine, but in every function call there are unconstrained numbers of side effects, go functions which persist after the function goes out of scope and can modify any pointed to memory at any arbitrary time later… go is the Wild West in this regard. The interface method name + weak go type system function definition is not enough to tell a developer what the implementation of that interface actually does. Finally: Java’s “implements” plus excellent IDE support for Java DI allows a developer to jump to the implementation in one keyboard press, this does not exist in go. You’ll probably never know what method is actually called unless it’s runtime with the actual config on the server.

I’m not going to explain the whole reasoned argument about why it’s important for a programmer to understand program execution flow in their head clearly, Dijkstra did a much better job than I ever could with GOTO considered harmful, but check out a modern descendant of this article specifically talking about go functions, and try to internalize the point about being able to understand program execution flow:

https://vorpus.org/blog/notes-on-structured-concurrency-or-g...

MarkMarine··on Revisiting Interface Segregation in Go
I revile this pattern. Look at the examples and imagine these are real and everything in the system is abstracted like this, and your coworkers ran out of concise names for their interfaces. Now you have to hop to 7 other files, through abstractions (and then read the DI code to understand which code actually implements this and what it specifically does) and keep all that context in your head… all in service of the I in some stupid acronym, just to build a mental model of what a piece of code does.

Go used to specifically warn against the overuse of this pattern in its teaching documentation, but let me offer an alternative so I’m not just complaining: Just write functions where the logic is clear to the reader. You’ll thank yourself in 6 months when you’re chasing down a bug

MarkMarine··on Twilio to Acquire Stytch
Congrats to the whole stytch team, I was a customer and evangelist for stytch at a previous company, and I really liked what they offered and dealing with the team. Interesting they were bought by twilio, as abstracting over two sms providers for SMS OTP was one of the main things I wanted from them.
MarkMarine··on John Carmack on mutable variables
I have dreams of being at a “Clojure shop” but I fear daily professional use might dull my love for the language. Having to realize that not everyone on my team wants to learn lisp (or FP) just to work with my code (something I find amazing and would love to be paid to do) was hard.

On a positive note I have taken those lessons from clojure (using values, just use maps, Rich’s simplicity, functional programming without excessive type system abstraction, etc) and applied them to the rest of my programming when I can and I think it makes my code much better.

MarkMarine··on Simplify your code: Functional core, imperative shell
I use Clojure all the time and I haven’t noticed the gripe you’ve got, but these are built in features of (somewhat) popular programming languages. Might not be for you but functional programming isn’t for everyone.
MarkMarine··on Simplify your code: Functional core, imperative shell
nit picking on the example code while missing the example the code was trying to demonstrate. I see why TAOCP used pseudocode
MarkMarine··on Simplify your code: Functional core, imperative shell
These chains become easy to read and understand with a small language feature like the pipe operator (elixir) or threading macro (clojure) that takes the output of one line and injects it into the left or rightmost function parameter. For example: (Elixir) "go " |> String.duplicate(3) # "go go go " |> String.upcase() # "GO GO GO " |> String.replace_suffix(" ", "!") # "GO GO GO!"

(Clojure) ;; Nested function calls (map double (filter even? '(1 2 3 4)))

;; Using the thread-last macro (->> '(1 2 3 4) (filter even?) ; The list is passed as the last argument (map double)) ; The result of filter is passed as the last argument ;=> (4.0 8.0)

Things like this have been added to python via a library (Pipe) [1] and there is a proposal to add this to JavaScript [2]

1: https://pypi.org/project/pipe/ 2: https://github.com/tc39/proposal-pipeline-operator

MarkMarine··on 10M people watched a YouTuber shim a lock; the lock company sued him – bad idea
I've watched LPL videos and practiced on regular locks, I can pick something that is about 10$ or less, but these expensive locks with good tolerances (Abus) or disc detainer cores (kryptonite locks,) no amount of practice and fiddling with the correct tools has ever opened one of these. I lack the skill or touch.

I can hold a 18v grinder with a cutoff wheel just fine though, I lost the keys to one of those kryptonite locks on my bike and I was riding my bike again 30 seconds later.

MarkMarine··on Rating 26 years of Java changes
I’m sure there are better ways to do streams on the JVM, scala being a great example, but however imperfect the implementation is streams are such a net positive I can’t imagine the language without them. I pine for the streams API when I write go.
MarkMarine··on A mechanic offered a reason why no one wants to work in the industry
The fact that you need to take the cab off to do an oil pan gasket should set off some alarm bells for how maintainable these vehicles are.
MarkMarine··on How I influence tech company politics as a staff software engineer
I’m dumb about it. I don’t have a scheme, I don’t have a hidden agenda, I don’t have ulterior motives… I’ve got what I think is great engineering (divorced from what the customer or business wants in the short term) and I just diligently try to make that happen. I’ve been doing this a long time and I’ve always got the long term health of the system (and fairness to the workers next to me ) in mind. I say the same thing to everyone, I’m open and honest, and I get wrecked every time I try to execute any strategy that doesn’t accidentally align with something a VP wants.

Ya’ll are so much better at this it’s scary. I can’t really read when I’m being lied to in the moment, I usually naively believe that support I’m getting is because my ideas are good, or that management has the same view of the collective good that I do.

I spent a while in the marines as an enlisted man, lower NCO. There is no politics and people next to you have to trust each other with their lives. I never really made the turn to what the world is outside of that, I’ve always struggled with it.

I learned not to try. Ya’ll can do politics. I’ll write one pagers and wait for my chances to make things better.

MarkMarine··on How I influence tech company politics as a staff software engineer
I didn’t get a manual, just sharing what works for me so the next (new) staff and principals have one more data point.
MarkMarine··on How I influence tech company politics as a staff software engineer
They helped my ideas be “lying around” and picked from when the crisis happened.

In the source, the author says that when there is a crisis (an outage or similar) management will come to you and ask for help solving the problem and you should already have a solution ready to go. What I’ve found is that you should pre-seed your solutions with 1 pagers. Identify things that need to be improved, changes to solve tomorrow’s problems and just take the extra step of writing a 1 pager about it and circulate it. Then when the problem happens that your solution fixes, your fix is already there ready to be fully fleshed out.

MarkMarine··on How I influence tech company politics as a staff software engineer
One of my favorite quotes: “ Only a crisis—actual or perceived—produces real change. When that crisis occurs, the actions that are taken depend on the ideas that are lying around. That, I believe, is our basic function: to develop alternatives to existing policies, to keep them alive and available until the politically impossible becomes politically inevitable.” - Milton Friedman

I’ve found writing 1 pagers and technical documents that I can circulate, and then re-reference when there is a crisis is the way to have my ideas floating around at the time. I’ve had some success driving the architecture I want iteratively, slowly progressing towards my goals by building consensus but I’ve also been owned by VPs and directors that are much better at politics than I am. Having the library of 1 pagers, sending them around so they are latently in the air, and waiting for the impetus to execute on that idea has been much more successful.

MarkMarine··on Claude Sonnet 4.5
Clean code is over abstraction, spaghetti code. The people who are part of this cult just point to the source material and title, never critically think about why it might be bad (it’s super slow, check YouTube “clean code performance” for why) or entertain alternatives.
MarkMarine··on Why Marriage Is Increasingly for the Affluent
I just got done paying for my wedding. It was 3 years ago. Was the second one, first one was during Covid and we just went to a beach in pt. Reyes and did it for free. Having done the two, one for free w/ close friends, one w/ catering and a hotel and everything that I paid 60k for… don’t waste your money. Unless this is literally so disposable you think of the money like pocket change, it’s not worth it. My favorite photos are the beach wedding, my memories are the beach wedding. We had more fun, it was unscripted and spontaneous, I had more time with my favorite people, and I had more time with my wife to enjoy it.

If I could go back, I would save the 60k and just invest it in our home, our retirement, our savings. You don’t need a lavish party to show off, your friends don’t care. You won’t care. Skip it

← PreviousPage 3 of 27Next →