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

I did that recently and was astonished that it got accepted so easily. I merely got a "hum..." from some of my clients.

I wish people would have told me that years ago.

comment 6y ago · link · parent

Sure, but we are passed the stage of "idea that won't work". The whole system runs in degraded mode at this point.

The best one can do is be patient, and help them do with what they got.

comment 6y ago · link · parent

I see it the other way around:

- to them, I'm helpful. So I feel useful, because I got actual humans that are thankful that I'm here. I need that to live, to be happy.

- the money allows me to have a very good life style, so I can enjoy many things I couldn't otherwise in what you call my "very limited lifetime"

- high rates mean less hours, which mean I get to spend time with people I love, have fun and contribute to open source projects.

It's not perfect, sure. But it's pretty sweat.

comment 6y ago · link · parent

Thanks for this honest answer.

comment 6y ago · link · parent

There is a HUGE difference:

- not all sites use CDN, even if using the same font

- not all sites use the same CDN

- users clear the cache (clearing history does that on firefox)

- incognito mode is a thing

- first load matters a lot

- browser have a limit of the disk space they use for cache, and they evict older entries when they reach it. Given sites are now bloated, this fills up fast.

- this repeats for each browser. I have 5 on my laptop, 3 on my mobile, 2 on my tablet.

comment 6y ago · link · parent

Do you think it's still used for the latter rather than the former now?

comment 6y ago · link · parent

True. And I'm sure most devs that I mention in my comment actually get the job done. In their own way.

I have paired up with some terrible programmers, with bad coding habits, weak knowledge of their ecosystem and no capacity for any kind of architecture design, but that eventually did better than me because they worked way more, and were more persistent.

This idea that bad code will waste productivity is not that important if one person accepts to work 30 hours more than you every week, including to fix the mistakes they introduced by writing said code in the first place.

comment 6y ago · link · parent

It took me by surprise too, but now when I give a training, I make sure I include how to:

- read a stack trace

- find things in the doc

- use the debugger

Most people, professional devs, signing up for my __advanced__, yes, specifically requested to be advanced, Python trainings, don't know how to do this.

Again, I try to be extremely nice about this, because nobody likes to feel inadequate and I'd rather have people learning happily this and improve their life and work.

It takes a lot of courage, if you are 40 and being in the field for 2 decades to admit you need to go back to this.

But it's not what I was expecting from the industry.

Hey, it makes me feel useful :)

comment 6y ago · link · parent

I work with a F500 oil company from time to time.

Half of the devs from there that I was in contact with were not capable of:

- googling a solution to a problem efficiently. When they hit a wall, they turned to me with an empty look like they were lost.

- read an error message to troubleshoot. A stack trace is utter mystery.

- use effectively the UI of their laptop. Some can't even Ctrl + S to save, they look up the "save" entry in the menu.

We are talking about people writing code every day, in several programming languages: fortran, c, c++, java, Python...

Because I'm a freelancer, I don't care. I'm paid extremely well to be very nice to them and solve all their problems.

But I'm very glad I don't have to be held responsible for anything those people end up putting in production. And I have no reason to believe it's different in their security department.

However, and this is a good lesson to all of the geeks like me that think work is about doing the right thing: the output they produce is good enough in our society. Its cost/value hits the sweat spot. Business is not about doing things right, it's about being profitable.

If you have one scandal a year, but it costs you less than making sure you have a secure system, and you are not legally challenged, then you are golden.

In fact, the chances to have even one scandal are very low. Actual risks of failure or attack are low. And consequences in case of crisis are low too. People don't care that much about privacy, cyber-security, etc. And policy makers won't enforce their laws anyway, at least not to any extent that will endanger the company.

So if the software allows people to do their job IRL at a reasonable price, under an acceptable deadline, good enough.

In fact, David Goodenough is a very funny French meme: https://www.youtube.com/watch?v=ho4W5LnFl6s

comment 6y ago · link · parent

I was one of those techies.

I was wrong.

It was one of the things that completly changed my perspective of computing.

That, and teaching, and working on a streaming website.

I suddenly saw apple products differently. Linux differently. I started to design things from the UI instead of the data model.

And eventually, it lead to accepting many of my limitations in other area, because I took in consideration users limitarions in my area of expertise.

Funny how being wrong can be good for you.

comment 6y ago · link · parent

Correct, but it's the same with alternatives.

E.g: redux uses a react provider to inject the data into the component tree because of this. Vuex does the same for vue.

comment 6y ago · link · parent

I believe backward compat is a goal of vue 3.

In all honesty, the pitfalls are not that many, easy to understand, learn and avoid or get out from.

I spent way more time trying to figure out doing even basic things in react than debugging reactivity in vue. Espacially since the later has a fantastic doc and a small api.

comment 6y ago · link · parent

You can use other frameworks the way you use vue but it's not advertised much.

E.G: I teach reactjs by first starting with a simple script tag like you can do with vue. No webpack. No JSX. Suddenly students get it. No magic. It just makes sense.

But this approach is not common nor first class citizen.

What I like with vue is that the authors understand the value of scaling up, as well as scaling __down__. You can feel it in the doc, the API, the community...

So yes, all in all, vuejs will be lighter to use, not because the others can't be, but because it doesn't judge you for wanting to.

comment 6y ago · link · parent

Principle #1 is too extreme.

While I confirm that writing is a powerful medium for thinking, anybody writer with a shower to take or a hike to walk will tell you that thinking takes place in many ways.

Parts like "If you want to learn and remember something long-term, you have to write it down" depends so much of context. Again, writing down does help me to commit things in memory, but for some information, audio is better. For others, repeating in my head is better.

Good advice all in all, but the definitive tone of the article is not needed IMO.

comment 6y ago · link · parent

Is it just me or the article has been taken down ?

comment 6y ago · link · parent

Such a line of thoughs lead to people attributing thunder to zeus thousands a year ago.

It's not bad to say "we don't know".

comment 6y ago · link · parent

Most unsollicited phone calls I receive are not from another country.

comment 6y ago · link · parent

While I'm excited by such news, let's not jump from "things we don't understand" to "god/magic/aliens".

For now, it's "cool event we don't know how to explain". Good enough. Life is full of that and if we try to force label on it, we miss the fun of figuring out what's going on seriously.

comment 6y ago · link · parent

You mean it's bad for users to be legally equiped to be able to request what data is collected from them ?

comment 6y ago · link · parent

I don't think I make a wild statement by saying that most android users don't share the same definition of "easy".

comment 6y ago · link · parent

I dislike a lot of black decisions and still use it for everything.

My aesthetic taste is less important than getting things done.

If you are not using it, stop arguing and nit picking about your preferences, we, as a community, have more important things to do. It will hurt only a little, I promise.

comment 6y ago · link · parent

Dict ordering started from the need to have class attributes, args and kwargs ordered if I recall.

comment 6y ago · link · parent

First, cPython is 99% of Python deployments. So much that if a script works on it but not on another implementation, people often consider the later broken.

As this post proves that most people don't even know about this feature, you can be pretty sure the vast majority of people don't know about pypy, micropython, etc.

Secondly, even if you want to nit pick, Python 3.7 made it official more than one year ago. We are currently in the 3.9 alpha.

In fact, 3.7 didn't touch the implementation, just merely declared "yep, good idea, let's keep it that way".

comment 6y ago · link · parent

I live in the Python bubble, so I haven't realized until this post that so few people knew about that.

This post is massively popular despite talking about a feature we had since Python 3.6, in 2016, that was posted on HN at the time and that is featured in most popular tutorials.

A good reminder that most of the world doesn't revolve about my favorite language. And that information is not that fast to spread.

comment 6y ago · link · parent

If there are no security problems affecting your project, and you don't benefit from new features, there is no urge to update. And even then, it's a cost/benefit ratio.

Updating is a constraint, one you follow either because it solves a problem or avoid a pitfall, not a goal.

I migrated most of my stuff to Python 3 years ago, but for some of my clients, despite that 2.7 is not supported anymore, I advice to just download a copy of everything they need offline as a safety measure and keep the system running as-is forever.

Raw HTML + jQuery + Django 1.x + VPS still deliver fine. Just because I can do react + microservices does not mean it should be a default response.

There are servers running barely touched from one or two decades ago and they do their job perfectly.

So yes, some client side libs are going to be there for years and years. If the UI works, it's alright.

Software is not an end, it's a tool. Being passionate about it, it's easy to forget that, but we use software to help the real world, not the other way around.

Not saying of course you should never update nor use modern technology when appropriate: technical debt must be paid. But it's important to recognize when you need to do it, and when you just want a shiny toy or to look good.

comment 6y ago · link · parent

Did that in Mali. It did give me perspective after 2 years, but it didn't fix my narcissism. Just made me more tolerant to incomfort, and made me enjoy civilization more.

comment 6y ago · link · parent

But no jitter, and no timeout.

comment 6y ago · link · parent

At least a good readme, which is always a good sign.

comment 6y ago · link · parent

While there are a few DSL that won the war, like CSS or SQL, it is very unlikely that your DSL will prove worth it. 99% of the time, what you need is a good high level library/API to deal with the problem with your current technology.

Here is why:

First, you need to design it properly, and most devs are not good language designers. The chances your DSL is going to be good is very low.

Second, unless you are incredibly talented and have little constraints, you will not even remotely provide 1% of the tooling existing languages already have for free. I've seen so many DSL without basic syntax highlighting nor linter it's not even funny, but you need much more to be productive with a new language. Even if you are using macros and claim to be able to use the tooling for the main language you come from, stop a second and think about the last time you had fun debugging a complicated macro magic.

Third you need to test it and document it. Do you even do it properly for your regular code? It takes time and resources. A lot of it. Which could be better spend on the project, or on the library/API you should be writing about.

Fourth, what about training? Because you can hire somebody for language X. But for your DSL, you'll need to train them.

Then of course, you plan to support it for as long as it's used. Right? Right?

comment 6y ago · link · parent

I don't think it should be "exception vs returned value".

First, if you are using a dynamic language, then exceptions make sense. You want to get there quickly, not handle every corner cases.

At the opposite spectrum, if you are writing rust, of course you want something very explicit and extremely aggressive to deal with errors.

They just serve different needs.

Also, exceptions don't have to be implicit, difficulties arise when the code you are using do not or cannot declare what can of exception can happen when you call it.

But if the language let you declare all the stuff you can raise, then there is not much difference.

1
177178179
184