HNHacker News
TopNewBestAskShowJobs

sodapopcan

3,244 karma · joined March 19, 2014

submissionscomments
sodapopcan··on Friendly attributes pattern in Ruby
`1 + 1` in Ruby is syntactic sugar for `1.+(1)`. Nothing wrong about it at all, it's just different from what you're apparently used to. This type of thing isn't even unique to Ruby or even OOP.
sodapopcan··on Gmail AI gets more intrusive
Stop using Google products.
sodapopcan··on Ask HN: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?
The last time I went to Steve's Music Store (Toronto, Canada) they were still using the green on black terminals. This was pre-pandemic. Maybe someone can confirm if they still are.
sodapopcan··on Minecraft removing obfuscation in Java Edition
Ah, thank you! Never knew what that was called. Guess I could asked Chat Jippity but there's no fun in that.
sodapopcan··on Minecraft removing obfuscation in Java Edition
"Generic"? Ouch, lol.
sodapopcan··on Minecraft removing obfuscation in Java Edition
Interesting, I love Minecraft's music. I do listen to it intentionally outside of the game, but it's not quite the same as having it suddenly start up during gameplay. The first I heard of someone "obviously turning off the music" was, I kid you not, yesterday, and now I'm hearing it for a second time today. Would woulda thunk!
sodapopcan··on Casey Muratori: I can always tell a good programmer in an interview
I like this approach. The only problem (or at least one of the problems) is that many people do not have suitable personal projects, as in they might be 10 years old. If one of the goals is to filter out people that don't work on projects in their free time, then this works, but I know many good programmers who don't, or at least they don't anymore due to having kids and other responsibilities outside of work.

As this article touches on, I'm big into pair programming interviews. I was part of the pair programming step at a past company and we'd always use StringCalc [0]. It's starts out super easy and gets gently progressively harder. The goal isn't to finish but to just to see how people think. We would do pretty legit pairing where we'd help if they got stuck on anything or thought we had a better solution. This shows so much about how someone thinks, collaborates, and responds to feedback. Often within 10 mins I could tell how it was going to go. We always had to finish, though, just in case.

Of course it depends on what type of app you have and how your company works and so on and so forth.

[0] https://github.com/MokshankSoni/StringCalc_TDD

sodapopcan··on How Senior Engineers Lose Trust
Yes.

What is it is with one sentence paragraphs?

This drives me nuts.

It also feels like hubris that the writer believes each sentence is so important that it deserves its own paragraph.

At the same time it makes me question the writer's confidence that they may be doing this to trick the reader.

Whatever it is...

It drives me nuts.

Annoys me.

Gets on my nerves.

But alas...

That's the internet for you, and in the end...

There are bigger things to stress about.

I guess.

It still get to me.

sodapopcan··on Why I Chose Elixir Phoenix over Rails, Laravel, and Next.js
Yep, that's the whole thing, these technologies have strengths and weaknesses for different application. But of course most people just want to learn only one (and I don't blame them).
sodapopcan··on Why I Chose Elixir Phoenix over Rails, Laravel, and Next.js
As a fan of both, the LiveView DX is simpler than Hotwire's (though of course there are trade-offs both ways). With Hotwire you have the think about frames whereas LiveView is more like React where you just change the state and the appropriate diff is patched in without having to think about much else. This is not to say that Hotwire's frames are complex, LiveView is just that much simpler in that regard.
sodapopcan··on Why I Chose Elixir Phoenix over Rails, Laravel, and Next.js
Oh also wanted to point out that while there has been an ongoing effort for LiveView Native, it is not there yet (I actually haven't heard anyone talking about it in quite a while). I'm not too in the Rails world so I don't know how good Hotwire Native is, but I assume it's much further along than LV Native, so that's a big thing if you need that. No idea about LiveWire as I've never even been in the Laravel world.
sodapopcan··on Why I Chose Elixir Phoenix over Rails, Laravel, and Next.js
The guides are the best place to learn about LiveView itself. Since guides are always included as part of the docs (reference docs) people always tend to shy away from them (not saying you are, it's just a thing with people it seems):

https://hexdocs.pm/phoenix_live_view/

sodapopcan··on Why I Chose Elixir Phoenix over Rails, Laravel, and Next.js
Ya, this was not worded well at all (and more likely just not well researched (in the article, I mean). The difference between hotwire/livewire and LiveView is that with LiveView you get a "live" connection to persistence BEAM process which comes with benefits like not having to rebuild things (like the current user) on each request and storing ephemeral state on the server (if you need it). Of course there are trade off like PWAs are not fun in LiveView (you likely just wouldn't do it, I never have).
sodapopcan··on Things I've learned in my 7 years implementing AI
Oh I didn't even see my video. I honestly thought it was a sick joke, lol. My speakers were turned way up.
sodapopcan··on Things I've learned in my 7 years implementing AI
It doesn't. It's a jump scare, and a stupid one at that.
sodapopcan··on Notes on switching to Helix from Vim
Also :s without a range is not going to work like multiple cursor as it only acts on the current line, unless neovim has changed this for some reason. But again, I was assuming //g was a given.
sodapopcan··on The <output> Tag
> It's also due to browser not doing anything useful with the additional tags,

It's clear that you are sighted and never use reader mode.

sodapopcan··on Notes on switching to Helix from Vim
Ya, yes sorry, well aware of what `%` is, I was leaving out a lot of context there. Of course, as it turns out I was thinking in terms of my own mappings and not even then, I'm not sure why I thought `` came into play because my mapping is `gysiw<space>` (`w` can be replaced with other text objects) which populates the commandline with `%s/\<'.expand('<cword>').'\>//g` (and moves the cursor left twice). I just press `` a lot, sometimes even before replacing because I have it remapped to not autojump to the next match and rather `set hlsearch`. So ya, I'm all kinds of wrong bitten by my own config, lol.
sodapopcan··on I switched from Htmx to Datastar
Ok I think I've been talking to a bot because looking back on this, I'm confused.
sodapopcan··on Notes on switching to Helix from Vim
Fair enough, I definitely made some assumptions there, but it sure sounds the same based on the description. I guess `%` selects more than just the token?

But ya, I'm way too invested in Vim to bother with Helix. I have years of scripts and plugins I've written. I can't even be bothered to switch to nvim (I tried once and was not fun).

sodapopcan··on I switched from Htmx to Datastar
Ohhhhh I thought you meant simpler than React, lol. Gotcha. I was going by what it does, not line of code of the implementation, which is what matters in this context (a skeptic looking to check something out quickly).
sodapopcan··on Notes on switching to Helix from Vim
Indeed, Vim has had ways to do this for years, before nvim. I suppose their point is that it comes out of the box? It is worded in a way that makes it seem like they think like there are no options.

There are other things too, like pressing `*` then using `:%s` is no different than the behaviour they describe. I use a plugin that shows you all the updates live as you type making it essentially the same as multiple cursors (for this example). The only difference is that you're typing on the command prompt as opposed to the current line.

sodapopcan··on I switched from Htmx to Datastar
Not sure what you mean by so much more code. Datastar seems to do more than htmx. Otherwise, there are less features because React and friends over-complicate things for the vast majority of use-cases.
sodapopcan··on I switched from Htmx to Datastar
These tools are absolutely nothing like React. Take a look at what htmx does, which is even simpler from a spec standpoint. There are actual on-going efforts to get it into the actual HTML spec. htmx and the like are basically built for us old-skool types (and thankfully many youngins are catching on).
sodapopcan··on I switched from Htmx to Datastar
:pointing-up-emoji:

> I'll still look a bit more

sodapopcan··on I switched from Htmx to Datastar
I'm really just starting with htmx but came across datastar yesterday. This is a great comparison and is confirming some of my impressions, so thanks! I'll still look a bit more but if the main thing is that it's naively adding Alpine or Stimulus then datastar is not for me.
sodapopcan··on Say Goodbye
I actually got an email like from an old co-worker after I was fired. It was done much in the vein of the advice in this post. It was short, friendly, and made no pretence about staying in touch. I gave a short, friendly response and that was that. I gotta say I actually really did appreciate it, and still do. Of course, I wasn’t exactly upset about being fired so I don’t know if this counts.
sodapopcan··on I only use Google Sheets
You shouldn't use anything by Google.
sodapopcan··on Not only am I losing my livelihood to AI – now it's stealing my em dashes too
i guess you are saying that writers cant take creative freedom in their writing bending the rules to prove a point i dont agree but i do hate it when people do it on forums eschewing punctuation and capital letters which can often cause confusion and worst of all are the people who write one sentence per paragraph though your parentheses save you from that one
sodapopcan··on The Theatre of Pull Requests and Code Review
To quote my least favourite HN response: "No."
← PreviousPage 16 of 34Next →