Better HN
topnewbestaskshowjobs
Log inSign up

mrinterweb

2,175 karma · joined Jan 21, 2009 (17y ago) · 789 submissions

Submissions

comment 1y ago · link · parent

Been using this for a couple hours, and this is really nice. It is a great alternative to something like Github Copilot. Appreciate how simple and fast this is.

comment 1y ago · link · parent

Agreed, but we have all seen the numerous articles about "rails is dead" over the last 5ish years. Devs were really buying that idea and wouldn't touch rails, because the whole dead thing.

I tried hard to find an alternative that could sway me away from rails, but I could not find anything I felt nearly as productive with or enjoyed more. I'm kind of relieved rails is having a comeback. All of the good stuff of rails never really left. People just got too pulled into SPAs and microservices, and rails 8 just showed many who are paying attention how much better things can be.

The group think of SPAs and microservices has been crazy to me. I don't think devs took the time to fully consider how much complexity they were accepting with SPAs and microservices. Certainly SPAs and microservices have their place, but not for everything.

comment 1y ago · link · parent

One thing that may be worth mentioning is the rails default use of jbuilder. I know jbuilder isn't JSON serialization bit, but if we're talking about things that make rendering JSON in ruby/rails slow, jbuilder would be top of my list. If you are rendering many partials with jbuilder, things really slow down.

comment 2y ago · link · parent

I haven't found a way to get this template to work with `yard server --gems`. The yard server is such a powerful local development tool. I find having local documentation for the version of the gems in your Gemfile.lock is so useful.

comment 2y ago · link · parent

Love it. Rdoc's styles have felt quite dated for years. Compared with other languages, rdoc hasn't really been keeping up with style. Really appreciate the effort to improve rdoc's styling.

comment 2y ago · link · parent

On a UK keyboard, you use the Brexit key

comment 2y ago · link · parent

The name "OpenAI" is a contraction since they don't seem "open" in any way. The only way I see "open" applying is "open for business."

comment 2y ago · link · parent

OpenAI isn't going to beat Google at the search game any time soon, and yeah Google's AI results have mixed popularity now. Doesn't seem like the best use of OpenAI's focus to me.

comment 2y ago · link · parent

If all the ropes the company sold got an update that caused all the ropes to break around the same time, and people were injured and property was damaged, I would think the rope company would be liable.

Is the position that CrowdStrike should not be used on anything important because their software can not be trusted? I mean, that's where I'm at now, and I bet many others feel the same.

comment 2y ago · link · parent

Can't wait for the class action lawsuit. The total impact is likely greater than $5.4B. A significant number of people must have died due to the impact this had on hospitals and emergency services.

comment 2y ago · link · parent

How did you make that connection? I didn't get that info from this study, but I have seen other studies that suggest sleep deprivation causes neuroinflammation, and I have seen studies that say coffee can reduce neuroinflammation. I have seen that the neuroinflammation described as a defense mechanism to assist with the removal of toxins. Possible connection being that if coffee reduces neuroinflammation when there are toxins present that may be a cause for more damage? I have zero qualifications, just trying to understand.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9658704/

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5476750/

comment 2y ago · link · parent

Ideally we would live in that utopia, but the vast majority of us live in the reality of needing a wage.

comment 2y ago · link · parent

Zscaler is awful. It installs a root cert to act as a man-in-the-middle TCP traffic snooper. Probably does some other stuff, but all you TLS traffic is snooped with zscaler. It is creepy software, IMO.

comment 2y ago · link · parent

Classic SNL reference: "Do not taunt happy fun ball"

https://www.youtube.com/watch?v=GmqeZl8OI2M

comment 2y ago · link · parent

I bet one problem with supporting repos is that the 200K context can fill up quick. Need to be selective with what files are in the context. If the repo was integrated, and you could select which files are in the current context, that could be good.

comment 2y ago · link · parent

Git has great tools. It sounds like you'd want to see everything associated with a merge commit. If what you're looking for is a certain way to view changes, git's built in tooling usually has you covered regardless of commit strategy.

So if you know a commit sha and you'd like to see all of the merged branch changes associated with that commit as a single patch, I cooked up a script that takes a commit sha and finds the merge commit and show all the changes in a consolidated patch.

#!/bin/sh

merge_commit=$(git log -n1 --merges --pretty=format:"%H" $(git rev-list --ancestry-path $1..HEAD --merges -n1))

git show -m -p --stat --format="" $merge_commit

comment 2y ago · link · parent

I create "WIP" commits, and then I squash those. I squash intentionally to clean up commits that should be together.

comment 2y ago · link · parent

> How many years have you worked in the software industry?

Professionally, 21 years. Seems like you're implying that someone with an opinion that is different than your own is not experienced.

comment 2y ago · link · parent

Another benefit of not squashing is it encourages devs to think about their commits and is a great opportunity to document what you are doing when they are doing it. If you are squashing 10 commits with junk commit messages (because devs know there is little value in having meaningful commits in what will be a squashed branch), trying to summarize all the changes into a meaningful commit message is hard. It can be valuable to see the intention of atomic commits in git history. The squash branch on merge strategy is just lazy and is counterproductive to having meaningful git history.

comment 2y ago · link · parent

Atomic commits can be great. I really prefer to see intentional atomic commits with meaningful messages than 20+ files changed with a commit message: "Feature X".

I am 100% onboard with devs squashing their "lint fix", "test fix", "whatever minor fix to get CI working", "generally meaningless commit to cross the finish line". Also, if devs are working on something they check in a "WIP" commit. It is great if you smash your WIPs into a single meaningful commit. These manual squash strategies require some discipline to clean things up.

I think the "squash branch to a single commit" merge strategy defeats the purpose of atomic commits. Of course devs will be bad at atomic commits if the commits will inevitably smashed to a single commit. IMO squashing branches on merge is a bad version control strategy. I love it when commits are intentional.

One rule I have for any rebasing is, when there may be more than one person using the branch, no more rebasing that branch.

comment 2y ago · link · parent

> honestly I'd take this over an intern (even ignoring the speed difference)

I'm sure you're not the only one who will feel this way. I worry for the future prospects of people starting their careers. The impacts will affect everyone in one way or another, not just those with limited experience. No way to know what the future holds.

comment 2y ago · link · parent

Do the docs https://htmx.org/docs/ reflect 2.0 or 1.x?

comment 2y ago · link · parent

I was getting that sense too. It would not be difficult to build a desktop machine with a 4090 for around $2500. I run Llama-3 8b on my 4090, and it runs well. Plus side is I can play games with the machine too :)

comment 2y ago · link · parent

Unless Apple treats every major OS as a first class citizen for this password management app, this becomes another form of ecosystem/vendor lock-in. Have all your passwords securely stored in our app? Thinking about buying an Android phone? Think again.

Of the major tech companies, Apple probably has the worst track record of not playing nice with other platforms, walled gardens and all. Passwords are needed on all platforms. Apple would be the last company I would trust to ensure that I would be able to access my passwords anywhere I may need them.

comment 2y ago · link · parent

As mentioned in the article, this isn't limited to ruby. It just shows that the ruby timeout can be dangerous, which a great reminder to those who use it. It would be great if the danger was mentioned in ruby's Timeout class documentation.

The same type of danger can be encountered with the linux `kill` command, depending on which signal you send, losing power, operating system terminate, etc. If you have state in flux, hard killing a process can have unexpected outcomes.

I'd also like to say that just because something is dangerous, doesn't mean it should not be used. Just use it carefully. Think of it as dynamite. Dynamite is very useful in some cases, and always needs to be handled with care.

comment 2y ago · link · parent

Turbotax and other like companies lobby for more complex tax law and to restrict access to government services that would assist citizens with filing taxes. The more complex the tax code is, the more people need Turbotax. It is not a healthy dynamic. https://abcnews.go.com/Business/turbotax-lobbies-lawmakers-t...

comment 2y ago · link · parent

I love that Firefox continues to be been focused on performance. There was a while where FF perf was looking kind of bleak compared to Chrome. These days FF and Chrome have similar performance. FF might have the edge now.

comment 2y ago · link · parent

As a parent, my main value from watches like this are:

* GPS, I can see where my kid is at (not always super accurate)

* I can contact my child and my child can contact me (contacts are whitelisted)

* School time lock helps avoid distraction (locks most watch functions when at school)

* Knowing I can locate and contact my child helps me allow more personal freedom to my child. Within reason.

I hear you that spending that kind of cash is not for everyone. For me, those features make it worth it.

I am planning a prototype for an alternative to smart watches that will use LoRa Meshtastic as a platform. The main upside of this would lower upfront costs, and no recurring cellular provider bill. I think it would be cool to have a system where trusted contacts and kids friends could message each other. My goal is to build a management system parents could use to quickly set up a LoRa node for their child.

comment 2y ago · link · parent

$230 is a bit high up-front cost for a kids watch. Compare this to something like TickTalk and it seems that TickTalk has more features. https://www.myticktalk.com/. The design of the Google kids watch does look nicer though. TickTalk is pretty bulky and the UI is not great.

comment 2y ago · link · parent

I also grew up in a rural environment, and I had a great deal more freedom as a child than children in my urban environment have. I would bet it is not just rural vs urban/suburban but also general cultural changes.

When I was young, I too jumped off roofs, would leave on my bike for many hours to go fishing by myself, etc. I know some of that was freedom was because I was raised in a rural environment, but I have a harder time comparing the differences between environments and current cultural expectations in terms of acceptable childhood freedom. I would love to give my children the same freedoms, but I understand that is not acceptable now and where I live.

1
678
27