HackerTrans
TopNewTrendsCommentsPastAskShowJobs

antholeole

no profile record

Submissions

Can VSCode editing be as fast as Emacs/Vim?

1 points·by antholeole·4 anni fa·4 comments

Ask HN: What kind of tests do you write for your side projects?

4 points·by antholeole·4 anni fa·5 comments

comments

antholeole
·4 anni fa·discuss
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.
antholeole
·4 anni fa·discuss
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
antholeole
·4 anni fa·discuss
Hack because?
antholeole
·4 anni fa·discuss
I can’t help but think OP was being sarcastic
antholeole
·4 anni fa·discuss
Do you have examples? Of things that are faster in vim?
antholeole
·4 anni fa·discuss
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.
antholeole
·4 anni fa·discuss
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?
antholeole
·4 anni fa·discuss
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.
antholeole
·4 anni fa·discuss
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.
antholeole
·4 anni fa·discuss
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!
antholeole
·4 anni fa·discuss
What?
antholeole
·4 anni fa·discuss
I experience this and have this exact model, and it is a mostly software issue. I don’t get this problem when my computer isn’t doing much, but when I’m using a ton of CPU, the crackling begins.

It isn’t a problem when connected to my AirPods, so I just pop them in when I’m doing some heavy work.

Annoying, but not a deal breaker for me.
antholeole
·4 anni fa·discuss
I think this is forcing me to choose between two evils - do I want to look like I can only write half baked weekend projects, or do I want to look like I don’t write any code in my free time at all?
antholeole
·4 anni fa·discuss
I’ve seen these and got it to work this way. I’m not too fond of working inside the container as it’s just a little more friction, but I’ve been working this way for a little bit now. I was hoping to avoid working in the container.
antholeole
·4 anni fa·discuss
The trouble with this is that the python environment is in the container - In step 2, id need to type path to the interpreter that it inside the container.

Although, now you’ve got me thinking what would happen if I mounted the interpreter inside the container to something local that I can point to? Might try this later, thanks for the help!
antholeole
·4 anni fa·discuss
Hijacking this: does anyone know how to get vscode to use a python interpreter inside a docker container for linting? I’ve resorted to using the docker container, but also having a python env so that I can tell vscode to point to the python interpreter in the env to get linting. Otherwise, dependencies come up unresolved.

I did some googling, but I’m unfortunately not experienced enough to be able to describe the problem succinctly to google.

Using pylance, btw.

TIA!
antholeole
·4 anni fa·discuss
Not sure about this: everyone else screwed seems kind of a far reach. If you consider screwed “unable to buy luxuries” then maybe, but I consider screwed “unable to buy food” and Macro farms stand to make food substantially cheaper.

How will the four people get richer if the food they create is priced so high that no one can buy it?

I get this is deeply economic and philosophical, but it’s an interesting thought experiment.
antholeole
·4 anni fa·discuss
Desmos.com/scientific is my go to. Best calculator ever - understands some LaTeX but also has the buttons for scenarios where I don’t know the LaTeX
antholeole
·4 anni fa·discuss
This is why I think non-null assertion should be accepted by default. If you forget to set the DB connection string, my backend is essentially useless! I can’t persist anything. I do process.env.DB_CONN! - at runtime I’ll get an error that the string is undefined, but that’s actually what I want - I want my app to throw an error so I can quickly find the error, slap my forehead and put the variable in the .env file.
antholeole
·4 anni fa·discuss
Idea* that has been beaten to death :)

From a consumer perspective, a product has to be 10x better for me to pay for it. There’s simply no way to make a bookmarking app that’s 10x better - there’s just not that much room for improvement.