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

I never met one in person, but in email support, yes.

And it makes sense.

Statistically, an IQ of 100 is the population median, meaning, assuming a Gaussian repartition (which it usually is for human traits), that's about 10% of people scoring around 80 or lower.

To give an idea of what level of intelligence this means, we can wonder what that kind of people cannot do?

In the US, the military don't do a systematic IQ test for recruitment, but when they did one, it was deemed illegal to induct any one if they possessed an IQ less than or equal to 81.

That means 1 person out of 10 is not intelligent enough to be in the lowest rank in the army.

It's not far fetched to think of the possibility that some functioning members of society are not capable of solving mental problems most humanity think are trivial.

In fact, that are also trivial for AI, although we may all end up to fall into that basket one day or the other.

comment 4y ago · link · parent

Airbnb has been very human hostile since the beginning.

The first time I had to create an account, they required that I connect with a google account with access to all my contacts. Then ask me to make a video of myself.

I didn't create the account and booked an hotel.

Now they are less aggressive with their new procedures, but still, you can see that the people behind it see technical solutions way before they perceive the human impact.

My grand-father was like that. A brilliant engineer from the most elite school of his generation in France. He once told me very seriously a solution for making more accommodations for the poorest people would be to remove individual bathrooms, and create common ones for the whole building instead.

Airbnb tech teams remind me of him.

3063.

Clickbait remover for YouTube: a FF addon to normalize video lists(addons.mozilla.org ↗)

22 points · by BiteCode_dev · 4y ago · 3 comments

comment 4y ago · link · parent

While it does solve the problem with functools.partial() forcing you to use keyword arguments in some cases, I don't think currying is a common enough operation to warrant a whole lib, or even a new syntax.

I'd rather see partial() promoted to a universal static method attached to any callable, so it's easier to discover, and use.

comment 4y ago · link · parent

My point exactly.

comment 4y ago · link · parent

It matters very much on mobile, decompression + parsing can really hinder loading page.

comment 4y ago · link · parent

Python type hints are becoming easier to use every day. They started really terrible, but now with "|" and list/set/dict[] most common use cases are covered.

Now I would love to iter[] replace typing.Iterable[], callable[] replace typing.Callable[], and a shortcut for Annotated (maybe & ?).

3068.

Ask HN: Thing that used to be easy, but are now hard

29 points · by BiteCode_dev · 4y ago · 41 comments

comment 4y ago · link · parent

"with" existed in python 2. In python 2.6 in fact, like comprehension lists, decorators, generators, descriptor protocol, exotic slicing assignation, advanced nested unpacking, infinite parameters...

Python was always chock-full of advanced features, people just usually don't notice because they get productive in 3 days with the basic features and don't need to go further. It's has the quality of a very smooth learning curve, but a very long one if you care.

comment 4y ago · link · parent

It's a real struggle for cuisine.

One example is french baking. Any good break or croissant is very hard to reproduce in some countries, like Thaïland or Australia, because of the climate. Temperature and humidity plays a huge role.

Also you can't source the same ingredients.

comment 4y ago · link · parent

When you start to need error handling.

comment 4y ago · link · parent

I was pleasantly surprised it loaded so fast.

So I wanted to check the size of it.

I opened the firefox debugger, and it went blank O_o

Chrome was ok with it: it's about 220kb, which is not bad at all for a whole runtime + stdlib. Python pyiodide (https://pyodide.org/en/stable/) is several Mb.

220kb is still too much to pay upfront, since I usually want my webpages to be under 1Mb, and I can't justify burning 1/4 of the size budget.

As for the Firefox story, maybe it's a good obfuscation trick :)

comment 4y ago · link · parent

Lua definitely does not have the power of something like Python.

That's usually what people like about Lua: it's barebone, yet high level and clean.

If one likes Python, then the chance of liking Lua are low.

E.G:

Both python and lua can open something (a file, a socket, a transaction...) in one line.

But only Python has the `with` construct that means it's easy to guaranty you close it in case of an error.

Lua is then easier to learn: one less concept to master. But the high level tool of Python, that you had to learn, make your life easier.

They have very different trade off.

comment 4y ago · link · parent

How do you use worktrees with an IDE ? Do you have one project per tree ?

comment 4y ago · link · parent

" It also means that you can always check out a different commit without first explicitly committing the working copy changes (you can even check out a different commit while resolving merge conflicts)."

That's really interesting. Having to manage stashes is annoying.

comment 4y ago · link · parent

More likely: our gov gag ordered us to keep up.

comment 4y ago · link · parent

It depends of the context, as usual. It's usually not a problem for me, but sometimes I ask some of my clients that they do something technical on their part so I can continue my mission. Then someone at their IT department says it can't be done, or say it will take <very long time>, cost <lot of money>, etc.

My client arm wrestle with them for a bit, then turn back to me and ask if I can do something anyway. So I charge them to do the task that can't be done, and it doesn't take that much time or money.

But I learned to do that with gloves, and tons of ass licking, because it does make the other party look bad.

comment 4y ago · link · parent

> it's increasingly common to lie with statistics.

I'm pretty sure it has always been the case: ""Lies, damned lies, and statistics" can be traced back at least as far as 188x.

Besides, the chain of lies is super long. Sample selection. Data collection. Data analysis. Reporting. Publishing. At each steps, so many things can go wrong: errors, agenda, corruption, bias...

In the case of Covid, we already have plenty of terrible communication from the entities at play, so at this point, it's kinda hard to have an informed opinion.

comment 4y ago · link · parent

Indeed, and yet a lot of users still use the webmail, because everything in IT is a compromise.

comment 4y ago · link · parent

Also, we don't know yet if the hallucinations are part of the therapeutic value of of the psychedelic compounds.

comment 4y ago · link · parent

If you want a webmail, which most people do, their archi makes sense.

How else are you going to do it ?

Balance between security and usability, as usual. If you want more, use pgp, but loose most users.

comment 4y ago · link · parent

From the article:

> Inbox Zero might be impractical every day, but Inbox Organized happens without breaking a sweat.

My experience is the absolute opposite. Organising mails is a strange game, and the only winning move is not to play.

I get the information out of the emails as soon as I can, and put it into a system that is actually manageable.

GTD had it right from the start. Thank you David Allen.

You want harsh feedback ? I'll never pay for your system, because it would lead to more work for me on the long run, not less. Emails are not todo list: todo list are mostly signal, while emails are mostly noise. Your system organize noise, and automatically. This has no value to me.

But you could build a system that I actually need. An inbox that I would enjoy.

Indeed, I don't need a system that help me organise my various sources of informations and tasks. I have so many of them that would be terrible even if it worked, anyway. Managing 20 organized systems in parallel is hell.

I need systems that make it easy to extract the relevant informations from them, and put the result in one central organized place for action, and another one for archive. A system that filters noise, and get me in control. That's it.

Eventually, my life is just that: being, doing and knowing. I don't need a system for the first. I don't want more than 2 systems for the 2 last.

comment 4y ago · link · parent

You already have that right. At least in my country, by law.

The TOS is a layer on top of that right that corporations abuse to make that right conditional to their own laws.

EDIT: Arf, just looked at your comment history and now I understand I'm loosing my touch. One person answered:

"Could you please stop posting unsubstantive and/or flamebait comments to HN? You've been doing it repeatedly, and we ban that sort of account because it's not what this site is for."

I missed the troll :)

Ok, you win. Have a nice day.

comment 4y ago · link · parent

Before, you had to go to the store.

comment 4y ago · link · parent

So you are ok with a system that is created to legally bind you to something you don't know and can be used against you later unless you take tremendous efforts to not be?

In that case, ok.

Most people are not, and it's reasonable.

In fact, it's terrible that we have to rely on lawyers because the law is so complicated you can't know or understand it all, just to live you regular life.

But TOS are even worst. Because they are asymmetrical. You don't get some right and some duty. Only duty for you, and rights for the other party, which is already economically and socially in a position of strength compared to you.

And no, it's not acceptable to tell people to accept that or live in a cave.

I don't have a google account attached to my android phone. This makes my life more difficult in all sort of ways, because society assumes more and more than I do.

So I'm just being punished because I don't want to give my life to a big corporation.

I understand people think it's BS. You should not have to do that.

comment 4y ago · link · parent

So, don't use the internet, a smartphone or a laptop.

Because there is a TOS or CLUE coming with Android, iOS, Windows, MacOS, Firefox, Chrome, Edge...

I'm assuming you didn't even read the TOS/CLUE required for you to post this comment.

Don't shop online, at all.

And I'm assuming you do, and didn't spend hours reading the TOS of all the sites you shop from.

Don't send messages.

Are you self hosting your email server ? Have you read your email provider TOS ? Each chat service TOS ? I doubt it.

Don't what videos on youtube. Don't search on google search. Don't use GPS.

You do that right ? Or have you actually read TOS for each service ?

If you said yes to all of this, either you are lying, living in a cave, or you are Richard Stallman. In which case, nice to meet you.

comment 4y ago · link · parent

Amazon kindle TOS take 9 hours to read: https://inshorts.com/en/news/man-takes-9-hours-to-read-amazo....

That's if you understand it entirely, including the legalese, on the first read. That's for the kindle only, not for amazon the website, nor alexa or prime.

I accepted 3 TOS last week, as a dev, it's almost part of my job description, but let's focus on normal people and say they don't accept TOS for Github, FIGMA or AWS, but only for stuff like youtube, gmail, msoffice, whatsapp, instagram, etc.

Let's be _very_ optimistic and say you have 20 TOS (excluding IRL contracts such as the bank, insurance, etc) forced on you every year by services: Apple, Google, Microsoft, Mozilla, Telegram, Facebook all have different TOS for difference services.

Then you have the TOS updates, that don't come as a diff of the previous one, but as a haystack with the changes as needles. So let's say 10 more to read, again.

Let's average reading time to 5 hours (I'm being very generous), and assume you understand the implications (at this point, it's not generosity, it's abnegation). That's 30 * 5, or 150 hours, that you are supposed to spend each year on reading those ? What do you do, take 3 weeks of vacation just for that ? Also don't forget to sleep, eat healthy, exercise, educate yourself, and socialize.

I hope you don't have a full time job or kids.

comment 4y ago · link · parent

They will take the fine, deduct it from their huge profit, and carry on. The EU will be happy to pocket the fine, they need the money. It worked in the past, what new thing could make it go wrong for Apple?

comment 4y ago · link · parent

So... they recycle matters into stars?

Can we say black holes are in fact... green?

1
102103104
184