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

Why do we need a study for something that obvious ?

The answer is simple...

They make good music.

Edit: forgot you are not supposed to joke on HN

comment 4y ago · link · parent

Unfortunatly you have one try for the domain.

I already use spamgourmet (a old great free service in the same features) and despite the fact it has several very different domains, it's rejected sometimes.

Something as high profile as ddg will be flagged very quickly.

The only one that can get away with it is gmail with the "+" aliases, because nobody can afford to reject it.

comment 4y ago · link · parent

It's a great idea, but unless they start by making it a real and popular email service first, it will be blocked by most websites very soon.

comment 4y ago · link · parent

Incidently, there is a wave of popular python projects in dev python spheres that use types to define validation and serialization: fastapi, typer, etc.

Granted, the python typing system is very limited, and to get complete validation, you'll need more than types as python type hints can't express complex rules.

Also, as the articles mentions, the validation will occur at runtime, it can't in any way make sure the program is valid from mypy checks alone.

Still, it's really nice to define your input data types and contraints in one go.

comment 4y ago · link · parent

I don't trust the "new nice microsoft this time it's true we love FOSS and users I swear" enough to tie my stack to any of their products.

Things like VSCode, github or azur pipelines are ok because the cost of a potential migration away from them is tiny compared to the benefits they bring.

However, basing your entire code base (e.g: with .Net), dev env (e.g: codespaces) or infra (e.g: azur cloud) on their tech is betting that a company with a terrible track record will never, ever, go back to its previous bad practices.

I'm not making that bet.

comment 4y ago · link · parent

Mypy is very useful on big projects, and does catch bugs regularly in my code.

The ergonomics improved a lot and it's now usable, so the cost ratio/benefit is worth it today.

But barely.

Even assuming you use the latest Python version (lots of project can't), you still have to import tons of things you use all the time like Iterable, Self, Callable and so on.

Then you have to deal with with the poor Protocol solution for duck typing, aggressive defaults, mypy slowness (before 9.13 it's terrible, after it's just bad and mypyd is quickly mandatory) and a surprisingly high number of bugs (such frustrating time wasters). Add on that false positives, low support from some popular libs and incompatible type checker implementations, and you get a very much meh experience. Very far from the awesomeness on Python.

If you are unlucky and have to use anaconda, mypy dependencies make it extra fun to include.

Still, I'm glad it exists. It's still very useful. But thank god hints are optional.

comment 4y ago · link · parent

If you only provide a desktop app yes.

If you also provide a web app, then the work needs to be done anyway.

comment 4y ago · link · parent

While it is true code pilot is quite amazing and can produce some very decent snippets, if the exercice you give is specific enought (using a special database schema, file format, or API), with objectives that are not common (ask the user specific questions, and draw conclusions out of it or react to events), then it cannot produce a fully working program. I use code pilot regularly now, and it does speed up my work, but I can't do anything with it without understanding the problem at hand.

There is nothing wrong with the student assemblings and fixing parts of code that exist. Doing that requires understanding those parts, how they interacts and what you can do with them. It's not killing tests. Plus as professionals, we all do that anyway. Heck, I learned doing that. I'm paid doing that.

However, there is something wrong with academic exercices that I see in the wild. Things that are very abstracts, requiring way more than programming knowledge, or stuff that are asked out of context completely. Students are both understimulated, and given too hard bites to chew. It's a terrible way to learn, and to be tested IMO.

Tests nowaday don't tests for knowledge, they test either for compliance, or act as a filter instead of a feedback loop. This is not education.

In fact, I've yet to see school IT course that I didn't find deeply flawed, and I completely understand the students for cheating at them to that they can suffer as little as possible. They are not given a chance to prove themself or progress, they are not respected. They are forced fed junk and asked to spit it back all shiny.

I remember when I was a student, and I went to 11 different schools because of my twisted life. They all sucked. And I say that as I spent half my student life at the top of my class grade ladder.

I regret having cheated so rarely now.

comment 4y ago · link · parent

Most of the products I like, I didn't discover through ads.

I'm ok with your business failing if it can't work without ads.

The problem here is that ads are not banned, but that they are now the exclusivity of Apple.

comment 4y ago · link · parent

There is this naive modern believe that killing people is something exceptional and difficult.

It's not.

1 out of 2 homicide is unsolved in the US: https://www.statista.com/statistics/194213/crime-clearance-r...

As for straight murder, it's the cause of death of 5 persons out of 100000 (https://ucr.fbi.gov/crime-in-the-u.s/2019/crime-in-the-u.s.-...). Diabetes is 20/100000 in comparison (https://www.cdc.gov/nchs/products/databriefs/db427.htm).

And that's mostly by people with no master plan for the killing in the first place.

If you die, NCIS will not come to your house to do a full tv show like murder solving. They will send an average joe cop, probably eating a sandwich on the murder site putting his print and crumbs everywhere, he will suspect your close ones, and ask a bunch of questions, because that statistically the only thing that works well. If the killer is obvious, it's solved. If not, nobody will ever know.

comment 4y ago · link · parent

Does this require a phone and an internet access?

comment 4y ago · link · parent

It's not just nostalgia:

- the buttons are big

- there is high contrasts

- sections are clearly delimited

I have the current Thunderbird open all day, and I'm constantly searching for things. It looks much better, much leaner and cleaner. But nothing stands out from the rest, everything is a shade of grey, buttons are flat, section are loosely separated or sometimes merged, labels don't have icons.

It's like the debate about cars with touch screen or buttons: the touch screen makes for a much better look, but its usability sucks.

It's not just thunderbird. Phone apps, web apps, they all follow trends that have nothing to do with usability. They copy each others in loop, bored designers go one more round (see ubuntu for an extreme example of this), A/B testing tells manager people downloaded your app more because of the pretty UI or screenshots on the short term.

But the current design is a usability disaster, and is only partially working because the UI are getting dumbed down more and more. Apps have less and less accessible buttons and menus. It makes you less productive, but it's easier for the average user, thanks to the paradox of choice. Because of this, having a lean UI is not as terrible, since you don't display much on the viewport anyway (e.g: youtube latest changes, or just tik tok). But of course, advanced users pay a price for that. Also, you can't do it for professional software unless you want to render it harder to use. Case in point: Thunderbird.

comment 4y ago · link · parent

But they will left me with a bad taste in the mouth.

Somebody is taking a dump of something I cherish, with no care for its beauty and with money as a priority. It feels like somebody broke my trust or some social contract and walked away with the benefits and little consequences.

It may sound stupid, and it's definitely irrational since it's just a movie, but sometimes after I see this kind of action, I experience it as a personal insult for some weird reasons.

comment 4y ago · link · parent

A bit unrelated, but one pet peeve of mine these days is the explosion of humble brag.

It used to be a little annoying, but it's now everywhere. Name dropping, inserting casually possessions, social status or achievements, using "I'm humbled by" all the time...

Doing your best to not sound pretentious is great. I wish I worked on that way sooner.

But faking humility, often badly, is such a mood killer for me.

I also think it comes with 2 trends that are rampant in social media, and runs especially deep in the US culture:

- adding virtue signaling to every interaction.

- using superlative for the most mondain things.

It's an instant credibility killer for me. But the problem is... for a lot of people, it seems to work.

comment 4y ago · link · parent

Trivial quantities at the scale of the global population today, not at the scale of local indigenous people for millenia.

If we want to know if insect consumption can be adopted, just looking at industrialized insect farms production given to city folks is going to give us a partial understanding of what's possible.

We need to know things like:

- are those parasites massively more presents in farms than in nature (it's the case for fishes) ?

- what's the probability of the parasites to infects the average consummer ? (We eat parasites all the time)

- if this probaility is high, can a population adapt over time so that this probability goes down ?

Etc

comment 4y ago · link · parent

Normal for who ? There are 11 official languages in SA, the population is very diverse, and indigenous people have different habits than city dwellers.

comment 4y ago · link · parent

Humans have been eating insects for a long time. In south africa they eat ants, china they eat scorpio, thailand they eat crickets...

The ants and the scorpio are quite tasty IMO.

On the other hand, I know of places where their casual vegetables are dangerous because their hold traces of animals feces with pathogens but you couldn't tell when buying them.

And finally, I remember eating the best eggs ever from my mother old neighbourg for years. One day friends from the city come, and eating them, get sick. So there is a strong habit component.

The study on insects is interesting but more informations is needed to draw conclusions.

comment 4y ago · link · parent

That's the right question. And other food sources from similar farmers.

comment 4y ago · link · parent

Because we eat the latter, so we like them.

But fear the former.

At some point there were giant rodent in Australia. But they were probably tasty because they disappeared after we arrived.

comment 4y ago · link · parent

It's just a come back of "Best Viewed With Internet Explorer"

comment 4y ago · link · parent

I remember when we used to say things like that about Google, circa 2000.

comment 4y ago · link · parent

So after node, the ion, then the merge, then deno, now bun.

JS started to get a bit sane, but I guess we are going back to fragmenting and madness pretty soon.

comment 4y ago · link · parent

So do more work for free to protect users because MS put them at risk for money.

comment 4y ago · link · parent

Indeed, which supports the idea that make is so popular because it was first, and is still installed by default on most unixes.

Like JS is so popular because it's the main language on the web clients, and by default on most of them.

Also, because doit assumes you have a python project, and make is language agnostic, the latter will have a broader potential user base.

However, doit is not that far from make in the sense it doesn't assume each language workflow. It just gives you a declarative syntax to setup tasks and optionally your dag of dependencies and targets: you then do whatever you want with it. This gives it simplicity and flexibility and power, which are similar qualities that I think make nails.

I do think it would gain from being a stand alone executable so at least you were not expected to have python installed on your machine to run it.

comment 4y ago · link · parent

My observation seems very close to yours then.

Nice to know it might be a repeating occurrence.

comment 4y ago · link · parent

Similar observation a few years ago in the sea sky: some ligh moving very high, with a strange flying pattern (like a very fast bee), for 20 minutes, above my head, then disapearing. No apparent light beam, support for light reflection, animal presence or mechanical vehicule. Clear weather conditions.

It was, to my eyes, an object that was flying and that I couldn't identify. So UFO applies.

The problem is not seing those.

The problem is making interpretations out of those.

Humans often prefer to create explanations than say they just don't know.

Centuries ago, somebody spot lightning and said it was Thor. We are mocking them now, but we are doing the same.

comment 4y ago · link · parent

Make dsl is terrible, it's the yaml of build systems.

If you are a python dev, give doit a try.

comment 4y ago · link · parent

Just got out of a python training session with one of my student running w11. Can confirm. So many problems.

Seems like one version out of 2 of windows being trouble stills stand.

comment 4y ago · link · parent

Everytime I read those kind of news from the UK, I think about the "finger" from V.

It seems we are more and more urging to build the society half of the books we read told us to avoid at all cost.

comment 4y ago · link · parent

Apparently PRISM has not been a wake up call.

What do people need ? Apple coming and killing their cat ?

1
909192
184