HN user

sawmurai

263 karma

Webdev, Rust, Weightlifting

Posts1
Comments150
View on HN

Today I tried to use Copilot to go through a code base and export unexported types, interfaces and unions (typescript). It had to also rename them to make sure they are unique in context of the package. Otherwise I would have used search&replace :)

It started out promising, renaming the symbols according to my instructions. Slower than if I had done it myself, but not horrible slow. It skipped over a few renames so I did them manually. I had to tell it to continue every 2 minutes so I could not really do anything else in the meantime.

I figured it’s quicker if I find the files in question (simple ripgrep search) and feed them to copilot. So I don’t have to wait for it to search all files.

Cool, now it started to rename random other things and ignored the naming scheme I taught it before. It took quite some time to manually fix its mess.

Maybe I should have just asked it to write a quick script to do the rename in an automated way instead :)

One of the great secrets to life is that happiness is found primarily through changing your mindset, not through changing your circumstances.

Not at all in relation to dating (rather to something related to age) that was exactly what I needed to read today :)

Agreed, it’s like doing static HTML instead of an SPA for a simple website. It’s not glamorous, it’s not exciting but it’s incredibly efficient.

I have been lifting for 18 years now and it’s become like brushing my teeth: I just do it without thinking much about it. Just basic stuff - squats, bench, deadlift, few vanity additions. The older I get the more I see how much my peers physically suffer without it.

I get the frustration but that frustration itself can discourage newbies that look up to more senior peers. I am not saying that learning all these tools is necessary to be a productive developer, but at the same time we should also not easily be discouraged by their mere existence and reject any acquisition of new skills because there is just so much noise to filter through.

One can learn about (or ignore) them one after another, relaxed and with an open mind.

HTML First 3 years ago

I was about to comment that but luckily stopped to search if someone else already did. In our company this is taken pretty seriously and would trigger some raised eyebrows from the security department :)

I build https://amazing-gains.app where you can manage your workouts and some nutritional metrics. One focus is on data protection, so you should be able to easily download your data whenever you feel like it. It is also supposed to work offline (PWA) as I personally have very poor connectivity in my basement gym :)

Currently it is completely free but I would need to assign certain permissions to new user accounts so they can create exercises and workouts. I would do that for everyone who signs up today.

It seems like any time I put more load on my body than it experiences through normal day to day life, it just slowly accumulates damage quicker than it can heal.

That is the case if you don't give your body enough resources (food, rest) to recover from training. Your tendon problem reminds me of my own tendons :) They just need more time to recover and adapt and are the first thing to "break". For my wife its the opposite. Never ever has she had any problems with her tendons, but other things in her legs give her regular trouble. The muscle is really the most forgiving part of the machinery.

And it does not matter if others have no problems with the same stuff that you do. People are horribly different and the majority of the result is predetermined by genetics. You can't even out-PED genetics.

Source: We have both been competing in powerlifting on the national level (ok, Switzerland is small and everyone competes on the national level) for a couple of years now

It reminds of the typical “let’s take a complex thing and blow a tiny detail’s importance completely out of proportion”. In this case the complex thing is “happiness” and the tiny detail is “the fraction of time you spend watching porn”. So yeah, no reason to quit, unless you are a diagnosed addict. But to each their own :)

Yes I do the same. Paying for news (NZZ in Switzerland) and avoiding sources that are incentivized to clickbait has made following the world something with a net positive for me again. It also had the strange effect of getting from being mildly offended by a clickbaity headline to feeling pity for those who had to go through the trouble of studying journalism and then being forced to write clickbaity garbage. What a waste. Still better than starving I guess.

My advice would be to add more pillars to your life (for a lack of a better term):

If you only have work in your life (I am non-judgementally assuming that is the case, sorry if I am wrong), your life will be awesome if work is going great, and hell if it is not. By adding more pillars in the form of hobbies, sports, romance, friendships, side projects, you increase the chance of turning a “my work sucks” into “my work sucks but my training for sport XYZ has been going pretty great recently”. And maybe later it is the opposite way around.

I call those things pillars because they help you bear the weight of your life. The more and the stronger, the easier the load.

That is completely normal. For example, I lose about 0.5-1kg of weight after a week of not training, and I look pretty flat. That will mostly be water tho.

After two weeks without training and while eating a shit (but oh so tasty) diet and drinking wine everyday for one of those two weeks, I lost about 20% of strength on the main lifts. And it felt way worse than that. But it’s just a temporary loss, and I was back up after a couple of weeks.

My unsolicited advice is to not worry about it and just start from what you end up being capable of after a break. It probably is not your first, and it definitely won’t be your last because life happens.