Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sametmax
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
331.
▲
by
sametmax
7y ago
I've use the src folder a lot in the past, but realized I only had one dir in it in all my projects. Since it's confusing to beginers, I removed it and never missed it. Nevertheless, if you want to have one, just add this to setup
332.
▲
by
sametmax
7y ago
I have only a french blog, and those informations are already on it. I will have to open an english on I guess.
333.
▲
by
sametmax
7y ago
Uncool, given that Google only exist thanks to free software. Google started as a C, Java and Python shops. Android is born out of a Linux Kernel. If I remember well, long ago, the initial database they used was actually an in-shop fork of
334.
▲
by
sametmax
7y ago
Oh, almost forget. 6 - If you want to compile Python to an exe, use nuitka ( http://nuitka.net/ ), not p2exe, cx_freeze and co.
335.
▲
by
sametmax
7y ago
From the click user point of view, yeah. From the dev user or packager point of view, no. First, there is no namespace in JS. Secondly, the import instruction standard is not implemented everywhere, so we need a bundler. First, the network
336.
▲
by
sametmax
7y ago
Python packaging is not hard really. It's just that there is way to much of obsolete or incomplete information on the web. Here is what you need to know: https://news.ycombinator.com/item?id=20132303 Honestly, it'
337.
▲
by
sametmax
7y ago
I woudln't trust PyPA, Kenneth or not. They have been taking very dubious is decisions in the past just for the sake of it. The way forced a half baked pyproject.toml format to be a standard and refused to hear any complaint, all that
338.
▲
by
sametmax
7y ago
Also with travis. And requires some manual fiddling with tox. Not to mention IDE support.
339.
▲
by
sametmax
7y ago
To be less blunt, I made a better comment on how to package things in the modern python world: https://news.ycombinator.com/item?id=20132303 No poetry necessary, but I point to when I use it anyway.
340.
▲
by
sametmax
7y ago
> When I asked one of the seniors, he said yea, I have to check every single part of the website and make sure it doesn't break. That's what unit/integration/e2e tests are for.
341.
▲
by
sametmax
7y ago
Yes, it's still very valid. It's simple. It's baked in. However, the benefit of moving to setup.cfg (not setup.py anymore, which should be almost empty) is more than making a lib. It makes deployment easier, and dev as well.
342.
▲
by
sametmax
7y ago
I added a detailed comment on packaging here: https://news.ycombinator.com/item?id=20132303
343.
▲
by
sametmax
7y ago
Here we go :) Packaging, the easy way Because I'm not on a blog, I can't go too much into details, and I'm sorry about that. It would be better to take more time on each point, but use them as starting point. I'll assume
344.
▲
by
sametmax
7y ago
No you don't. It's actually very to package and publish a library with setup.cfg.
345.
▲
by
sametmax
7y ago
The same way you get the other ones, but you have to contact american companies.
346.
▲
by
sametmax
7y ago
It's the same as hiring an immigrant on US soil. Something companies in the Bay are happy to do, since their hiring can't keep up with their needs. But for other companies, you can make it easier: just frame it as a freelancer gig
347.
▲
by
sametmax
7y ago
The recommanded way to upload a package on pypi is to use twine: Https://pypi.org/project/twine/ Which does the signing as well. But I don't know if pip checks it.
348.
▲
by
sametmax
7y ago
Not to mention remote work for the US. You get 5 time the french pay in the bay, 3 times if you remove health insurances, taxes and retirement savings.
349.
▲
by
sametmax
7y ago
The problem with this is that it could take decades to become dangerous. Maybe accumulation is a factor. Maybe interaction with other things is. It's hard to assess, and I'd find it saner to assume ingesting regularly inorganic sy
350.
▲
by
sametmax
7y ago
The lock file doesn't just specify the version of the packages, but of all dependancies as well, in a nested manner. This let poetry detects incompatibilites you can't with a flat requirement file. Poetry also updates the files pr
351.
▲
by
sametmax
7y ago
Kudos
352.
▲
by
sametmax
7y ago
Not on my phone from the subway, but maybe when I'm back at home I'll take the time.
353.
▲
by
sametmax
7y ago
You can say that about any land, in any time in history. Humans kept moving and killing each others for 1000 of years. There is not a single place that haven't been taken from somebody else at some point in the last 10k y. Not to menti
354.
▲
by
sametmax
7y ago
Yet another state of python packaging that: - skip the explanation on the py command on windows, the version suffixes on unix, -m and why you need to install pip on linux but not on the other OSes. - doen't address the various sys path
355.
▲
by
sametmax
7y ago
In deployment you'll still need to use the command line. Poetry is IDE and OS agnostic. It manages also the lock file, and resolve deps better than pip. At last, it lets you put all meta data in one file, including dev deps, then build
356.
▲
by
sametmax
7y ago
I like poetry but it comes with 2 problems: - it uses only pyproject.toml. Despite the current com on this format, it's not stable, it's an incomplete standard and it's not well supported by the ecosystem. Setup.cfg is a much
357.
▲
by
sametmax
7y ago
Rich is a relative term. You can't have everybody that is rich. You are only rich to relative to somebody who is not. I've lived in West Africa for 2 years, and here you have plenty of "rich man of the village". But you
358.
▲
by
sametmax
7y ago
Not only Python is not installed (the command is a stub), but linux distributions have been shipping Python forever, and it never froze anybody. It's a matter of how you support upgrading, now what you provide out of the box.
359.
▲
by
sametmax
7y ago
That's why any good tutorial on Python for Windows recommend using the "py -x.y" command, and not the "python" command.
360.
▲
by
sametmax
7y ago
Not the same. Marx assumes you should have no rich people. Separating powers does not imply that. It just implies rich people should be isolated the other powers.
More ›