Better HN
topnewbestaskshowjobs
Log inSign up

mrinterweb

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

Submissions

comment 2y ago · link · parent

( * ^ *) ノシ , dejur. No doubt it a nice and rare luxury to start a new rails project. I wonder if the rubocop defaults will be included in rails upgrades or just new rails projects. Like when people upgrade to rails 7.2, maybe rubocop will come along for the ride.

comment 2y ago · link · parent

I mean if someone has a particular style that others disagree on, the repo ends up with inconsistently styled code. There are benefits to consistently styled code especially when there are a lot of hands in the repo. I think teams should strive to have a mostly homogeneous code style for consistency sake. It makes reading code easier and ultimately maintaining code easier. Having a linter enforce style rules is really helpful so code reviews don't need to be consumed with tedious style discussions.

I like rubocop because it can be configured to be as flexible or strict as the team wants. Let the team establish what the level of consistency they want is.

comment 2y ago · link · parent

Don't knock it. That's a good flavor

comment 2y ago · link · parent

When you can look at some code in a repo and immediately know who wrote it, that is usually a problem. I've worked in code bases where the devs could not agree on style and they each did their own thing. It quickly became an unmaintainable mess. Having a homogeneous code style is a good step towards long term maintainability. It has been many years since I've worked on a rails repo that didn't have rubocop. Glad to hear rails will ship with rubocop.

comment 2y ago · link · parent

I forgot about that. iMessage is the only option for iPhone users receiving SMS. Even more reason to play nice with other non-apple messaging systems. I am an Android user so I forget Apple doesn't allow the same level of customization and changing of system defaults.

comment 2y ago · link · parent

There isn't much special about iMessage you can't find on other messaging platforms. Since iMessage is the default messaging app, few iPhone users bother installing anything else. Apple doesn't want good messaging compatibility with Android devices because they want to retain iPhone users. For the last couple years, Apple's iPhone innovation has stagnated, and one of the ways they can maintain their market share is by keeping customers in the walled garden.

comment 2y ago · link · parent

Proprietary and sensitive information. Personally, I use a self-hosted LLM because I don't trust how my conversations with hosted generative AI services will be used.

comment 3y ago · link · parent

There was some recent concern that Youtube may be slowing down FF https://www.reddit.com/r/youtube/comments/17z8hsz/youtube_ha...

comment 3y ago · link · parent

How does this product handle sensitive data? I'm guessing this is not a HIPAA compliant service.

comment 3y ago · link · parent

Anyone could see what cert signed it though. Sure anyone could sign video, just as anyone can have a site with SSL, but it would be easy to verify that the signing cert isn't the same. For example, if some news org shot footage with some of their cameras or produced some video, the video player could show which certs were used in editing and to capture the video. If another party tampered with the video, the signed frames could reflect that, as the other party would not have the signing certs.

This is all hypothetical vaporware of course. Just saying I wonder if a video encoding solution like this could help people have faith in the video content they see.

comment 3y ago · link · parent

I am waiting for the equivalent of web SSL certificates for video. Each N frames could be signed with a cert. This way a content producer could publish a video and video clients could verify the source of the video frame-by-frame to verify if a video has been manipulated. It could go as low level as the cameras signing frames as they record. Perhaps having videos with a verifiable source could help people verify non-AI videos. Sure content creators could publish their own AI video and sign it, but perhaps the technique could make manipulating existing video more obvious.

comment 3y ago · link · parent

A bit over a decade ago, I was sold on the concept of microservices. After implementing, maintaining, and integrating many microservices; I have realized how incredibly exhausting it is. Sure microservices have their place, but understanding the often higher costs associated with microservices should be considered when developing a new service. Focus on the costs that are less tangible: siloed knowledge, integration costs, devops costs, coordinating releases, cross-team communication, testing, contract versioning, shared tooling. I could go on, but that's just a sample of some of the less obvious costs.

I feel that the collective opinion of microservices has shifted towards being trepidatious of microservices as many have experienced the pains associated with microservcies.

comment 3y ago · link · parent

As an avid neovim user, I must say helix felt right at home. There are differences, but most of the basics are the same. I felt immediately productive. Great job. (Neo)vim compatibility, makes this much more approachable for those familiar with vim-style modal editing.

comment 3y ago · link · parent

I cringe a little every time I click a Twitter/X (identity crisis) link. Ars is a solid resource.

comment 3y ago · link · parent

Elixir does a great job with pattern matching. When I first heard that ruby was introducing pattern matching, I was super excited and hoped it might be a subset of what elixir can do. I was disappointed with what ruby shipped.

comment 3y ago · link · parent

I've been working with rails for a long time, so it doesn't feel like magic to me, but I can understand that concern. I highly discourage metaprogramming unless there is an obvious win. Rails/Ruby, especially in the beginning really leaned in hard on metaprogramming, but I've seen that be less of a trend with ruby. From my perspective, the metaprogramming trend has been going down. Ruby makes writing DSLs easy, and that can appear as magical too. In general, if a rails project follows convention it is easy to find what you're looking for.

I don't understand what you mean the global namespacing. Ruby has namespacing, and adding to the global namespace should be avoided except for adding new class definitions. Maybe you're referring to inheritance, and how much stuff can sneak into the current scope from class inheritance.

comment 3y ago · link · parent

Ruby is a great language. It is very expressive and often quite readable. Ruby has a strong standard library, and the ruby gem ecosystem is great. Ruby is a highly productive language for devs to use as it makes prototyping easy. In terms of benchmark performance, I would say it is probably closest to python. One thing I stress when comparing CPU performance of languages is to not get hung up on that too much. Most web apps I work on get hung up on IO and database interactions and not CPU. I've been working with ruby for 17 years and the number of times ruby's performance has got in my way are too few for me to mention.

Finding a job with ruby isn't too bad. Keep in mind that just because there aren't as many ruby jobs that also means competition may be less because fewer people know ruby. 9/10 (probably higher) jobs will be rails jobs. Rails is an outstanding web framework. There is a reason rails is still one of the most popular web frameworks after 20 years.

For learning to program, choose something you enjoy. If you pick a tech that doesn't agree with you, learning is going to be an uphill battle. I don't love JS, and I don't find python enjoyable either. Pick something that clicks for you. Once you learn one, other languages will be easier to pick up. Disclaimer, ruby is my favorite language.

comment 3y ago · link · parent

I was confused because I know Redis already offers persistence. https://redis.io/docs/management/persistence/ The main difference here is how its runtime will shift from runtime data only in RAM to not storing as much data in RAM and looking up on disk. Current Redis persistence looks like the runtime is stored in RAM and changes are periodically or append only persisted to disk. I hope I got that right.

comment 3y ago · link · parent

I agree that the boundaries are not naturally enforced and need to be put in place by the developers. It is a team culture thing to enforce these types of boundaries in code review.

comment 3y ago · link · parent

I think people forget that code in monoliths can be written in a way to set boundaries with namespaces and thinking through class-level API design. Most of the time you can accomplish the same outcome of what a microfrontend might provide inside a monolith. Same is often the case for the backend.

comment 3y ago · link · parent

> "One day instead of looking into an iFrame, you might be looking at an entirely different kind of portal."

LOL

comment 3y ago · link · parent

That's the impression I was getting from reading the article and other articles related to histotripsy. Still, it sounds too good to be true, so I'm wondering the same thing.

comment 3y ago · link · parent

The unlimited potential for creativity and collaborative story telling is what sets TTRPGs apart from video games. The mechanical side of D&D combat is fun, but I don't think going all in on encounters is what makes D&D shine. A good combo of game mechanics and creativity is the sweet spot in my opinion.

I often prefer "theater of the mind" over maps as that can be much more open-ended and encourage creativity. Many of the D&D podcasts use "theater of the mind", and they are great (special shout out to naddpod.com)

comment 3y ago · link · parent

I hear what you're saying, but I feel this release is less boring than other recent smart phones. It seems that they are really at an inflection point where they are able to start really utilizing their AI chips for deeper integration. From a hardware perspective, I agree this release might be boring. I don't think the Tensor3 is a far faster chip than the Tensor2 (for general purpose CPU tasks), but the AI processing capacity of this chip seem like the focus of this model. The new display seems pretty great, but I have been pleased with my Pixel 7 display.

comment 3y ago · link · parent

Obviously, companies that sell phones want to sell more phones as frequently as possible. I'm just glad that Google is aware that people value having longer term feature and security support for their products. The new 7 years of feature and security support is pretty fantastic.

comment 3y ago · link · parent

One thing I could see where this could be useful would be unit test suites where you want different sets of seed data, but you want to be sure that each test doesn't accidentally mutate and leak state to other tests. There are other ways to do this, but this seems like it might be a natural fit for isolating persistence changes.

comment 3y ago · link · parent

I see APFS (MacOS default file system) supports copy-on-write. I wonder if there are plans for pg_branch to support apfs.

comment 3y ago · link · parent

I feel that institutional knowledge is incredibly important, especially in tech, and probably undervalued with the decision to layoff. On boarding costs for new engineers is very high. Layoff and rehire cycles don't make sense in tech for those reasons.

comment 3y ago · link · parent

I would love to see more analysis on result quality. Probably a good deal of it is subjective. I do miss Google's Bard AI results. Bard AI is fine, and it generally adds some value to the search results. I don't know how I feel about the ethics of AI in search results, mainly AI summarizing results and people not visiting the actual content. Also, I don't like how Bard is only available in Chrome, as Bing's AI is only available in Edge. I really doubt there is a technical reason AI results can't be in other browser search results. I'm sure it is just a ecosystem lockin play. I usually use Firefox so I don't get AI in results anyway.

comment 3y ago · link · parent

There was a FUD theme with some of the "zig isn't stable (>=1.0) so how can I trust bun" threads. So long as bun is stable, does it matter that zig is not 1.0 for the developer using bun? So long as zig is reliable enough for the developers of bun, I don't see the concern.
1
8910
27