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 3y ago · link · parent

Most newsletter servives provide rss.

E.g: you can read https://bitecode.dev from email or rss because substack supports both.

comment 3y ago · link · parent

It's absolutely ok to have alpine handle a big form, you don't have to never use js with htmx.

comment 3y ago · link · parent

Also the filtering, grouping, caching, pre-fetching and ordering contraints are unlikely to be the same.

Even worse if the json api is public, as it may need to restrict capabilities.

comment 3y ago · link · parent

Numpy and pandas are their own little island. It's not just dates and time, it's everything.

If you use numpy and pandas, you should also not use Python datetime, generators, most stdlib mathematical functions, the itertools module, random, etc.

It's the first thing you learn if you read any good pandas book, and the first thing I teach in my numpy/pandas trainings.

It has pretty much nothing to do with pendulum.

Basically, half the Python ecosystem is "well, except with numpy/pandas of course".

comment 3y ago · link · parent

Most of us pay for a lot of services like netflix, spotify, etc.

We are ok with paying, but not:

- giving money to a user hostile company with a terrible moral track record

- giving money to keep being tracked anyway

- having to log in with a google account that can be locked down any time with no given reason, and will take over your entire android phone even from a single app

- being served ads from other unrelated services using data collected from google service we paid for

comment 3y ago · link · parent

The snippets the article give are good to get an UTC datetime or timestamp now.

I'd like to add that if you have any fancy datetime manipulation to do in Python, pendulum (https://pendulum.eustace.io/) is probably your best bet.

comment 3y ago · link · parent

BS, you can still make a deal with microsoft as a non profit, where the deal gives them an exclusive licence to use the result in exchange for financing.

MS doesn't care about how money it cost, they care about the fact it's their ticket back into the fight with google and apple.

comment 3y ago · link · parent

Honestly, I'm pretty picky about the food at buy at the store, and even I can't tell anymore if something is safe appart from raw fruits and vegetables I buy from a local old man I've known for years. And I live in France, with very protective laws, and parents that educated me to choose wisely.

How the average American, with the worst consumer protection laws and a terrible food culture, is supposed to find a way?

comment 3y ago · link · parent

I think it speak mlre aboub Gabe's ethics than whatever model of technical causality we want to impose on this.

comment 3y ago · link · parent

That's the same thing as scab, reframing an attidude that is a sane disagreement and need as a crime.

You don't have to agree with any political movement out there.

And the strike is a right. A job is not. You already can't be fired for striking which is huge.

Wanting other people that have no dog in this fight to accomodate you doesn't seem reasonable.

And framing that the way you do is more virtue signaling and pandering than debating.

comment 3y ago · link · parent

Not insulting people that disagree with you and need the work is a good reason.

Even as a frenchmen, I don't think strikes are sacred.

comment 3y ago · link · parent

Sure, let me use that excuse with the IRS and this how it works.

comment 3y ago · link · parent

Both can be true, espacially since the implementation has been the same for 20 years.

comment 3y ago · link · parent

The gil is a feature. Not using a feature that makes sense in our context is counter productive.

comment 3y ago · link · parent

Sem ver is pretty standard imo.

comment 3y ago · link · parent

If you don't want to read the whole article, it starts with this summary:

Django, not Flask, is the better choice for beginners' first serious web development projects.

While Flask's simplicity and clear API make it great for learning and suitable for experienced developers, it can mislead beginners about the complexities of web development. Django, with its opinionated nature and sensible defaults, offers a structured approach that helps novices avoid common pitfalls. Its comprehensive, integrated ecosystem is more conducive to growth and productivity for those new to the field.

1337.

Beginners should use Django, not Flask(bitecode.dev ↗)

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

comment 3y ago · link · parent

IT is getting more and more industrialized and I expect those moves will happen again and again.

1339.

PEP 733 – An Evaluation of Python's Public C API(peps.python.org ↗)

1 points · by BiteCode_dev · 3y ago · discuss

comment 3y ago · link · parent

I go to high end restaurants, the Michelin being the only north star I rely on in the day and age of fake reviews and terrible average consumer taste.

Sure, I want the restaurant to control the initial offer, and at this price I expect it to be amazing.

But I guarantee that at this price range, they will let me do what I want with my food.

I can bring my own bottle of ketchup and put it on it. They will look disgusted, but I can.

In fact, as a vegetarian, it's not rare I ask them to adapt their ENTIRE menu just for little me. And they do it.

So the comparison does not hold.

But I get your point, a lot of people do want Apple to tell them how they should use their device.

That's something that is hard to swallow when you like FOSS, but it's a reality.

1341.

A little taste of Htmx (part 5/5)(bitecode.dev ↗)

4 points · by BiteCode_dev · 3y ago · discuss

comment 3y ago · link · parent

A cheap VPS could output much more, for 5 dollars a month.

comment 3y ago · link · parent

Indeed. Even as a Frenchman a lot of it doesn't click for me.

comment 3y ago · link · parent

I thought about it, but it's not that entertaining nowadays.

We have been spoiled by decades of mind blowing SF.

We know all the twists, all the tropes. And the style hasn't aged well.

Foundational stuff deserve respect because we built on them, but sometimes you can feel the age.

comment 3y ago · link · parent

The modern answer to that are probably books like "the three body problems". Also old French science fiction can be excellent, e.g: anything Barjavel. Not to mention there are always UK outliers, like Douglas Adams.

But personally, I'd say Bande dessinée, the European cousin of comic books, is where you will find the most untapped underrated wonders.

Anything Moebius or Jodoroski, like "L'Incal" or "La caste des Meta-barons" is truly special. The aesthetics have a lot of personality, the writing is messed up, and the world building is all kind of twisted and provoking.

The main problem is that they sometimes take you for a whole run then end up nowhere. But the ride is awesome, and some of it has left scars inside me, I'm not kidding. And it has been translated to English.

Even without aiming for extremes, you'll find all kind of fun stuff.

Like "Aldébaran" that really sells this sense of discovery of new exotic places with a rag tag expedition, like African jungles in the past, but on new planets. It's a big saga too.

"Sillage" that packs your read with a futuristic black window amidst a galactic political turmoil.

Bilal's immortal trilogy giving the Egyptian alien concept some wind.

Or "Le gipsy" for a no brain adventure with a truck driver coasting on a road that wraps around the entire world.

It's crazy to me that given the lack of creativity of Hollywood they scrap everything they can from books and even mangas or video games, but they rarely attack this treasure.

Plus those SF master pieces have equally good fantasy sisters.

comment 3y ago · link · parent

You regularly do those AMA.

My question is: what motivates you to do them?

Is it to promote your services? Is it to find talents for YC? Something else?

comment 3y ago · link · parent

Netflix drm wants a word.

comment 3y ago · link · parent

And even the die-hards will lose convenience, reverse engineering a custom WASM VM every time it's updated is massive work.

And TPM checks are really hard to bypass.

All that to watch a few videos without a 20 second ads?

Not sure it's event worth it.

comment 3y ago · link · parent

They will win.

They will setup DRM, or render the full site in canvas, or with wasm, or something, or requires a TPM trusted signatured in an approved web browser or some shit.

The new generation will accept a limited client, because they know mostly locked down phones. So only a few will not accept it, and they will not have to care about it a single bit.

comment 3y ago · link · parent

The follow up book is very much worth a read. It deconstruct so much BS in so called "great thinkers" works.
1
444546
184