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

HTMX is neutral to composability, since it's limited to connecting and orchestrating parts of a system that may or may not chose to provide components.

Does your backend has components? Does your scripting toolkit has components?

HTMX doesn't care either way, and will use whatever you give it.

You can pick reusable django forms, alpine js, some manually created boundaries, a jquery module... You can even drop react on a single page because there is a widget you like and it's not loaded often.

People may be tempted to talk about HTMX using irrelevant points of references.

It's not providing an SPA with a component architecture, that's the point.

The readers that are very used to modern JS stacks and never had to deal with the web before 2010 may want to read:

https://www.bitecode.dev/p/a-little-taste-of-htmx-part-1

This will give a better idea of how to think in HTMX, which is just a new trick for an old dog.

It's better to use this tool for what it is, with its limits and strengths rather than trying to make it into something it's not.

The reason HTMX can't do many things react is good at is because it's by nature the opposite of react.

comment 2y ago · link · parent

HTMX users just use existing JS components.

It's not an XOR proposition.

comment 2y ago · link · parent

Schools are only partially made to teach. They are also serving the interests of the people running them, and of course, they are filters.

What's more, many teachers actually don't produce anything with what they teach, and have a curiculum forced on them by people making it up on theorical basis.

The result is that half of the professional training I give have to cover those holes. Having to teach debuggers to pro devs is weird but a reality.

In fact, shameless plug, but this is why I have a articles dedicated to pdb, venv and pip on http://bitecode.dev.

Because the demand is very high.

comment 2y ago · link · parent

You have a product here.

comment 2y ago · link · parent

From a UX point of view, excluding calls, it's a superb achivements.

comment 2y ago · link · parent

As a Frenchman, when I worked in the valley, people told me to tone it down, that I could come off as rude.

On my side, I wanted to slap those people calling others they barely knew "friends", overselling their lunch as "amazing", assuring an outcome with certainty, virtue signaling or refusing to say when something was completely wrong. It's like they were always in a tiny marketing process.

Eventually, I learned to smooth communication, and to appreciate their enthusiasm.

But it did take time.

Also I must confess I have an American filter permanently on, now. If something comes from the US, I just assume most of it is BS until proven otherwise.

1207.

The splat operator, or *args and **kwargs in Python(bitecode.dev ↗)

2 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Then you should practice. The chances you never experience it are low, and better learn when you don't have to.

Besides, it will give you a better appreciation of human achivements once you don't take hot water for granted.

comment 2y ago · link · parent

Stalin and Mao were wealthy. That's why many people argue we never implemented communism, since our attempts ended up as oligarchies.

Just because you don't have a paper stating you own something doesn't mean you don't control it.

comment 2y ago · link · parent

It does, because power is bought with money and if you buy a vote, the richest win.

Also, resources are not infinite. Eg: There is a limit to the number of the best doctors and their time. Fresh air is locally finite, and jets do pollute more per person.

So despite the fact that in theory we are not playing a zero sum game, practically at the scale of one life, many things can be approximated as such.

comment 2y ago · link · parent

There is a case to be made to not install all updates as soon as they are available.

comment 2y ago · link · parent

How amazing it is to live in a world that has reached such level of quality that the deck is labelled as "good enough".

We are really swiming in astoninishing objects, even the simplest glass or a ball pen is a marvel.

So much it's now a baseline.

comment 2y ago · link · parent

Already seen in the wild from colleagues.

comment 2y ago · link · parent

In dev, this is handled mostly by the OS with things like inotify, so it has little perf impact.

In prod, you don't do it. Deployment implies sending a signal like HUP to your app, so that it reloads the code gracefully.

All in all, everybody is moving to thid, even php. This allows for persitent connexion, function memoization, delegation to threadpools, etc

comment 2y ago · link · parent

Eat less, meet people.

Eat less, meat people.

comment 2y ago · link · parent

That's the difference between theory and practice.

In theory, sure.

In practice, there are lany chrome forks and they all chrome with a few features on top.

In theory you can beat usain bolt by just running faster than him.

In practice nobody does.

comment 2y ago · link · parent

Then it's not much of a competition. It's just more chrome market share, with a different name.

comment 2y ago · link · parent

I mean, dying is kinda nature invalidating cache...

You key is evicted buddy, now go back to the big blob of matter.

1219.

SQLALchemy vs. Django ORM(st4lk.github.io ↗)

3 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

For the record, I find it achieves the editor's goal for me.

A bit of dark humor can be a nice touch.

The problem is rather if you are ok with the fact a part of your audience will be offended with it.

comment 2y ago · link · parent

You assume they do it manually.

Today we have machines that can batch processes using pipettes, and they can burn them at a fast rate.

comment 2y ago · link · parent

It's unreal to witness the fall of a country in real time.

comment 2y ago · link · parent

You use ssh to proxy x to 22 and connect stupid tool to that.

1224.

Xmas Decoration, Part 2(bitecode.dev ↗)

2 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

On the long run I believe it's a good thing.

I just hope the take on it will be to understand the watcher is also suffering a lot, and the people you hate as well.

Life is full of of suffering, for every body.

Yes, even the person you are thinking about right now.

And sure, we can always rank suffering by taking examples and saying a raped tortured 6 years old suffers more than your average tech billionaire.

But the main point is, suffering is universal. It's a common ground we all share. It's goes beyond context and morality, because we all agree we don't want to suffer, and we do anyway. That's one of the rare things we all get to experience again and again, and that shapes your life.

I really wish people looking at the internet window will get this as the message, as a way to get closer to the other humans, instead of classify suffering and divide us in categories. Maybe develop a deeper understanding of suffering, which is not just pain or other obvious manifestations.

And also be more kind, tolerant, wish others, and oneself.

comment 2y ago · link · parent

Given steam features the binding of isaac, hades and inscryption, I can't understand your comment.

1227.

What's up Python? Epic CPython commit, Django 5 and 2FA for PyPI(bitecode.dev ↗)

183 points · by BiteCode_dev · 2y ago · 113 comments

1
404142
184