Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 2y ago · link · parent

Skin in the game is important.

I have a terrible programmer friend.

He is better at creating actual products than most people I met because his livelihood is on the line: he makes money only from websites.

So he is not living in the abstract idea of best practices, he had to make it profitable for the last two decades, with little resources to go by on top of that.

And he does.

After 10 years, he is still asking me how to write git commands. And I'm still learning from him to shed a lot of BS from my practices.

comment 2y ago · link · parent

Show me a hospital, and I'll show you overworked, under slept young doctors that have to deal with paper work, and are swimming in a field with heavy lobbying.

But even without this, the thing is, when you don't know, you will make mistakes.

And when your job is to take care of people, mistakes hurt them.

It's the nature of things.

Last year I had 3 medical errors, one that almost got me killed, by very well-meaning professionals.

Closing your eyes and pretending it doesn't happen is naive at best.

But people have to start somewhere. They can't stay in theory forever. And no amount of preparation will save you from making terrible mistakes.

Since we can't put an experienced doctor behind every intern 24/7, there is no real solution to this for now.

Same for programming.

comment 2y ago · link · parent

Indeed it's not general advice, it's to me specifically, who used to procrastinate a lot under the guise of learning.

comment 2y ago · link · parent

I agree, and would say is equivalent to:

> - There is no substitute for doing. Less tutorials, more coding.

comment 2y ago · link · parent

Those are way too abstract advice when you start programming.

You can only understand them because you lived those situations, which implies experience you don't have.

I would say (specifically to my young self):

- There is no substitute for doing. Less tutorials, more coding.

- Stop being obsessed with quality: you are not at the level where you can provide it yet. Do dirty. Do badly. But ship. Some people will be mad at you, and they are right. But do it anyway. Yes, reboot the servers with users on it. Yes, commit the spaghetti. You'll reach the level you want to avoid doing all this.

- The users don't care about the tech. They care about the result.

- Doing something for the hell of it is worth it. Just make it separate from the point above so they don't conflict.

- Programming is a battle against complexity. Again and again. Put that on a post-it. Make your decisions based on it. You will suck at it, but try.

- You have imposter syndrome because you are an imposter. You are really bad. It's ok, doctors hurt people for years while learning to save them. Don't sweat it. It will come.

- You need faith it will work out. On the long run, you'll get better at this. But in the short term also. You'll find the bug. You'll figure out the solution. It will happen if you keep at it even if it can be frustratingly long and unfair. Even if it doesn't feel like that right now.

- The right team is way more important than the right tech. If you are alone, get in touch with people who will lift you up from time to time.

comment 2y ago · link · parent

Plus, they can delete all your informations, because GDPR mandates it in Europe.

comment 2y ago · link · parent

I actually was the one telling them not to rewrite, lol.

But the original code was a mess of matlab spaghetti, they couldn't find a way to hire for that. Not to mention turning it into a web service was already a big hack of java parsing a raw dump of matlab datastructures that nobody dared to touch.

I had to read the matlab code, and it tooks hours to decypher a few lines. Plus the language doesn't have great debugging and error handling capabilities and the tooling is quite terrible.

So rewriting to python won, and for once, I must say it was a good call.

comment 2y ago · link · parent

Last year I worked for a client that gave me a lot of time, money and autonomy to lead dev on a critical software rewrite.

We got a small team of competent people, with domain experts to peer code with the devs.

It was wonderful. We could test, document and clean up. Having people who knew the trade and users at hand removed second guessing.

The result was so good we found bugs even in competitors' implementations.

We also got x5 in perfs compared to the system it was replacing and more features.

comment 2y ago · link · parent

Depends who is providing it.

Django and pydantic meta programming usually make the code easier to deal with.

In shop written meta programming usually sucks.

comment 2y ago · link · parent

Yep.

Also, the new screen looks nice.

Might upgrade in a year or two if I feel I need more brightness.

The fact you can change it slowly, piece by piece, is fantastic. It spreads the cost of upgrading the machines over the years instead of having to pull the entire cash at once. No need to reinstall everything every time.

You can upgrade the battery when you need to. Then maybe the RAM 3 years later once electron app with embedded AI model takes over the world and a hello world eats 4go.

This is, to me, the killer feature.

Young me would have hated it.

I wanted a new poney regularly.

comment 2y ago · link · parent

True, I forgot to mention it because I almost never use them. Laptop cams and mics are never up to my standard, even on mac, and since I remote work 90% of the time, I always travel with a full mic stand and external cam.

This is too important for good communication for me.

But indeed, it's not on the higher end for sound and image quality.

It's not the worse either. Just meh.

comment 2y ago · link · parent

True, but the prices you list are the price of the board + the CPU.

On this main board ($340):

https://frame.work/products/cooler-master-mainboard-case-and...

The CPU is worth $250 already.

You pay a $100 to get a swapable CPU on a laptop which is guaranteed to be compatible.

You might value or not this feature, and that's fair.

But I do value it a lot.

Even on a tower, matching a board and a CPU is not a given. On a laptop, forget about it.

comment 2y ago · link · parent

You will not get mac level finish or integration, nor battery life.

But you will get a lot of ram and disk for this price, a robust and fast laptop.

And something you can repair.

If you are a mac person, there is no substitute for the mac, by definition.

If you don't care about mac, then the framework is a good machine.

I rocked dell for a long time, I switched to framework, and so far, it's been great. The keyboard is comfy, the touchpad is good (for a non mac), the mate screen is productive and I enjoy its format.

The specs have not let me down perf wise, the extension system is fantastic, and the value proposition of being able to be repaired is unmatched. I assembled it, and you can see they care a lot.

Dual boot windows + linux on it is quick and easy. Support is perfect, including sleep, wifi, fingerprint reader, webcam, etc. The mechanical off switch for the mic and cam is a plus.

The battery life sucks, and I can hear the fans more than I want. It's not as stylish as other notebooks.

That's it.

Mostly, I forgot about the machine in a week and it's transparent to me: it's plugged on a USB dongle that powers it, hook me to ethernet and extends the screen. I used it on the go twice, nothing special to report.

It just works and I get things done.

Which is probably what a lot of people want.

comment 2y ago · link · parent

Yeah but you update the mainboard once every 10 years.

Usually what you upgrade are: ram, disk and cpu.

Comparing a tower with a laptop makes little sense. They don't have the same use cases and compromises at all.

It's like saying "I much rather stay on a framework, because all the part are upgradable, but I exchange the bigger price for portability and not having to by a battery to protect against power down".

It has little to do with the framework proposition, which is to be a laptop that happens to be easier and cheaper to repair than the competition.

I tried to repair my previous laptop. I killed it because the parts are so hard to manipulate.

Cost me $2000.

I think anything is cheaper than that.

comment 2y ago · link · parent

But we can't self host, right?

So it's locked in.

comment 2y ago · link · parent

> In most of the west, you can go to jail or be punished for speech. Most of the west doesn't have free speech that we do in america.

I'm going to assume you don't travel much cause on our side of the pound we can very much speak out loud of many things the US can't.

In fact, we don't have the absurd taboos that force the US to use alternative words. We can:

- Report "He disrespected his colleague, calling him a niger". No need to hide that behind "the n-word".

- We can call pedophilia what it is and debate about how to punish it, instead of using acronyms like CSAM for fear of being labeled in a certain way.

- We can show tits or talk about vagina and not get "porn" tagged all over.

comment 2y ago · link · parent

I love the readme:

"DO NOT USE IN PRODUCTION OR YOU WILL BE FIRED. UNLESS YOU WORK AT EDGEDB."

For context, this is a way to share data between the new subinterpretter feature in Python.

Given there is no doc, the tests give a glimpse of what it looks like:

https://github.com/edgedb/memhive/blob/main/tests/test_basic...

918.

MemHive: Experimental Python Subinterpreters Orchestrator(github.com ↗)

2 points · by BiteCode_dev · 2y ago · 1 comment

comment 2y ago · link · parent

There should be a site to remember all those:

- list the problems

- link to sources

- backup the source instead they happen

We forget too easily, and PR works wonders. I used to have such a list for Microsoft, but:

- I have to pull it of every time we talk about the new MS, because people think they are good guys now. They already forgot.

- People don't think it could have been that bad.

- I have to rewrite the list, I can't link to it. Or expand it. And I have to justify its existence and credibility because MS PR is so strong now.

- The links are disappearing from the web, so my previous proofs are fading away, slowly being replaced by references everywhere singing MS praises and stating how a saint Gates is.

The powerful are rewriting history, literally.

karmicarchive.com is available, just saying.

920.

Today Is RNG Day(rngday.com ↗)

1 points · by BiteCode_dev · 2y ago · 1 comment

comment 2y ago · link · parent

Or OS developers. Video codec developers. Network stack developer. Driver developers. Web browser developers. Web service developers. Office suite developers.

And if you are a developer and your software is used in any decent scale, you are unlikely to be the exception.

comment 2y ago · link · parent

I don't shift goal post, I'm answering to:

> is nightmare fuel I didn't need to have in my life :(

comment 2y ago · link · parent

I don't shift goal post, I'm answering to:

> is nightmare fuel I didn't need to have in my life :(

It's a weird reaction. All software have always been like that as far as I remember.

comment 2y ago · link · parent

I don't care that the russian spy on my messages, I care that my gov does.

Russian can't affect my life as much as my gov.

comment 2y ago · link · parent

I think we have vastly enough material to criticize Russia, we don't need more.

Our societies are already convinced those are dictatorships.

But it took Snowden and Assange to show us how deeply messed up our societies are.

It's very possible they are both Russian assets, but what they reported have been verified, and we needed to know it.

The way you are reacting is close to a religious interpretation of the world. It's not us VS them. It's not a football match.

We have a society to build, and it's been taken from us, one piece at a time. If we don't want to end up like Russia, we need all info we can get.

And given the huge price they paid for it, yes, I consider them heroes. And I think history will remember them as such.

comment 2y ago · link · parent

We just had the xz crisis and that surprises you?

IT is just a series of security breaches.

comment 2y ago · link · parent

Whatsapp is not open source and facebook was part of the PRISM program.

I don't think it's reasonable to expect them to actually be e2e encrypted.

Espacially since Zuckerberg has many years of poor track record for privacy, and made the famous quote "they trust me the dumb fucks"

comment 2y ago · link · parent

Also whatsapp: https://www.reddit.com/r/whatsapp/comments/18eikrz/whatsapp_...

Discord: https://www.reddit.com/r/discordapp/comments/18dfmiw/discord...

comment 2y ago · link · parent

Yes, but in that case, no single chat app ever conceived match your criteria. They all had some kind of similar major bug at some point. Even the big names.

comment 2y ago · link · parent

Chat apps are hard, this doesn't strike me as a proof of bad quality as many competitors had such bugs.

And Telegram has been so far the most reliable, feature full and easy to use chat app I have had to use.

1
303132
184