Hacker Newsnew | past | comments | ask | show | jobs | submit | antholeole's commentslogin

I went from Python to Rust to Go. Python I won’t spend long on, it’s problems are well documented. Rust, which I use wherever possible, just is not the right language for apis for me. Adding dependency injection through Boxed traits feels like you’re taking a performance hit just so you can test code. Also, I spent a couple hours on trying to get async traits to work with a mocking lib and gave up. Switched to Golang. It’s not without issues but for now I’m productive.


Why would it not make you smarter? Having a hard time following this logic. Perhaps not significantly, but if they say something you don’t know, then by definition you just got a little smarter, if only by one fact about one topic.

Also, I think a lot of ideas are presented black and white but podcasts like these show the intricacies of the gray area


Hack because?


Basically, all the front-end code on the server side is written in Hack, because it was originally written in PHP. My understanding is that general application logic, like permissions, is handled by libraries written in Hack. Also stuff like templates (for HTML or other UIs, including CSS), etc.

Hack is recognizable as a PHP derivative but the experience of writing Hack is very different from the experience of writing PHP.


There's a LOT of infrastructure that already exists in the Hack ecosystem at Meta. Especially around things like data access control, privacy, auditing, data deletion, etc.

When I left earlier this year, pretty much all of the internal storage systems (from MySQL to blob storage) were moving to requiring all access to be via a common Entity framework that encoded the above-mentioned things in a common way. That framework exists on the non-Hack side of the house, but it's much, much easier and in some ways more robust on the Hack side.


So all the things they are especially bad at?

Only a semi troll comment, IRL Facebook recently said they were genuinely unable to audit where personal information was ending up across their systems which is a terrifying thing to think about and another reason I genuinely hope their pivot to VR kills them as a company.


Hack is a facebook project. Hack was born out of need to improve speed of PHP performance and add a typing discipline.


Legacy.


Because the entire website is written in hack?


I can’t help but think OP was being sarcastic


This is the correct answer


lol. Fair point. I totally failed to see that possibility


Do you have examples? Of things that are faster in vim?


Generally all movement and bulk edits.

One thing I learned recently is !! and how to use it to inject any program output at the current line. You can also use the current selection as input to that command. Write some code in vim, run !!bash or !! python and the output is replaced the code. Really helpful for doc writing and showing output


Why must you keep track of changes? No one is forcing you to figure out how to use things.

It’s nice for power users. I know many people who essentially use vsc as notepad++, and that’s okay. I also know people that drool over change logs and excitedly talk about new features over lunch.

Both are okay, and it’s a spectrum. Use what you think is helpful.


Either he prevents VSC from upgrading itself somehow (I wouldn't know how) in which case I would worry a little about security vulnerabilities or he is forced to deal with changes in his experience of the app -- or at least that is what happened to me when I was a VSC user.

Maybe you are the kind of user who tends not to notice a change in your experience unless the change prevents you from doing what you want to do. I would like to become more like that, at least for a trial period, so I can compare that way of existing in the world to my current way of existing, but it is not clear to me how to change myself in that way (with the result that I stop noticing details that are irrelevant to the immediate task).


Clarification.

The way I prefer to relate to software is to be constantly running a prediction of what is going to happen on the screen in response to my inputs. If anything unpredictable or surprising happens while I'm using software that is usually predictable (and I'm not on a tight deadline) I usually stop what I'm doing and try to understand the source of the unpredictability enough that it won't surprise me the next time.

Although I do not have that kind of relationship with most of the web sites I visit, I do have that kind of relationship with Emacs (and have for 30 years).

Early last year vscode was my only text editor for a few months, and I don't recall getting significantly annoyed at vscode's unnecessarily invoking my "what just happened?" response, but I haven't used vscode in over a year and the OP makes me very-slightly less likely to use it in the future.


You must use VSC wildly different than me, as I can't think of a single update in the 2-3 years I've been on VSC that has substantially changed my user experience


When the release notes are shown after each update, I obviously get curious about the numerous changes that have been made.


Just...turn off release notes:

Settings JSON - update.showReleaseNote = false

Settings GUI - Uncheck "Update: Show Release Notes"


First time I’ve heard about the 6 connection limit.

I’m not fully understanding the response - are you saying that the limit is not imposed if you use https? Or am I reading wrong?


Go's default `net/http` package will serve HTTP2 when a https configuration is provided (also most web browsers don't support h2c, aka. HTTP2 without tls).

The default limit of ~100 connections should be more than enough for most applications (additionally, the JS SDK client maintains a single SSE connection for a page no matter to how many things the user has subscribed, so that also helps).


HTTP/1.1 has a limit, set by each individual browser vendor, for the maximum number of connections between a client and a unique server domain. So, if you exceed 6 simultaneous connections to that server (across multiple tabs and windows), it will move the request to a stalled state (like a queue) until one request is completed.

Best solution today is to move to http2 on your server -- which has an SSL (TLS 1.2) requirement.

Looks like pocketbase implements this. If you use another server, like nginx, you have to enable this for each site.


First, to respond directly to the post: having a (stable, one you don’t tinker with every other day) k8 setup isn’t bad, its only bad when you have to pay the setup overhead. I built a boilerplate app with: - authentication (Google auth) - cloud run backend -CDK - CICD (GitHub actions) - full-boilerplate frontend - full boilerplate backend - Signal error reporting - Postgres - graphQL - all my other preferences like git hooks, linter rules, vscode workspace, local environment etc. Now, whenever I need to build an app, I just git clone this repo and its plug in credentials and play. My backend cluster doesn’t ever run more than one instance, so I guess having a scalable backend is pointless, but who cares? It’s free, time wise (and almost money wise since cloud run is pretty efficient). I built it a year ago and don’t touch most of the dev ops for any app, except to maybe rip out authentication when I don’t need it. Imo, I think this is a highly effective method of engineering. Everyone has their favorite stack, so it might be worth it you to take a weekend and fully build out your boilerplate app so that if you ever need to, you can get straight to building the actual features.


Does anyone who used to be a meat eater and switched to the plant based meat alternatives like impossible burger actually believe that they are similar?

I’m attempting to go vegetarian. Prior to my switch, I used to consume large amounts of meat (partially because I enjoy the taste, and partially because I lift weights often and the protein is easy) but man oh man those plant based alternatives are just nowhere near real meats. So much so that they’re not even worth it: I’d much rather opt for something like tofu or a protein shake because atleast they’re not trying to tell me that they’re meat.


I've been a vegetarian for almost twenty years now, so my memory is a bit faded and the vegetarian and vegan products have changed a lot in that time. My experience is that it greatly depends on the type of product.

I've never, ever eaten a vegetarian burger patty, steak or Schnitzel that tasted like what I remember. Many still taste good, but I think for things like steak the texture is as important as the taste, and I don't think there is anything that believably emulates the texture of steak.

Things are different for sausage and thin sausage slices that you can put on bread, like salami. Especially the vegetarian salami tastes and feels exactly like I remember, and there is a large selection of vegetarian or vegan sausage replacements. Those are great, though I don't understand why they're more expensive than the actual meat products.

What I really miss though is gyros. No vegan gyros has even come close, and I've tried a lot. Probably again because texture matters just as much as taste. I'll just have to live without it.


It was nearly a decade after I gave up meat that I first ate a Beyond or Impossible burger, but I felt they had the taste and texture of at least a cheap restaurant burger. Beyond has a more distinctive flavor than Impossible, though, which I would say doesn't really remind me of beef in any significant way.


I’m confused by this comment - what’s the problem here? The processes is slow and manual? While I get that that’s an issue in its own right, how does that connect to this post? What does “they basically have what you gave them” mean? Not trying to be mean, I seriously just want to understand this comment. Thanks!


https://www.greatitalianfoodtrade.it/en/consum-attori/la-app...

There are certain lines that the platforms can’t cross.

The information of open food facts, is pretty much useless(is open and known by anyone) when it gets interesting is when we analyze the formulations and effects of those. Same applies in cosmetics

If something has more or less sugar , more or less saturated fats is just a kids play. Nothing really interesting there, the brands and manufacturers , years ago were trying to prevent the exposure of the “is a bad product” message on those apps and platforms. Now they have learnt that is indeed nothing they have to be worried about. As the market of mindful consumers is literally tiny , it may look like gigantic from outside (data says the opposite)

So , An ingredient manufacturer , sells it to a Group , a group creates a formulation , goes to the market as safe (as of today) and becomes to be sold in your supermarket. Years later independent studies arise and show that ingredient N was harmful (cancer, breaks barrier of the skin, generates hormonal effects) and this platforms , aim to show that in their software. But this is proprietary to their platforms and like Yuka you may get sued


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: