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

But you didn't need arrow functions at the time because createClass autobind this and you used methods. Now with extends and hooks, it would be a pain.

Besides, it's alright to learn es6 and 7 with react if you have time, but if your company pays a $10k react training in a 3 days session, you better have the pre-requisites right.

And at the very least, don't pretend to be "an expert" in 2019 if you don't know es6. Every tutorials for beginers include them now. Every docs of every libs use them.

You don't have to be an expert. It's legitimate. I don't advertise myself as a JS expert despite being pretty good at it.

But it looks better on the resume, and once you are hired on that assumption, you can't go back. Next time the company asks, you say expert again.

comment 6y ago · link · parent

It's not just the people, some topics leads to that. E.g you can get far with just a few git commands, but one day, you will encounter a situation that is like a brick wall because you have no idea what's going on inside.

Today, most JS devs don't know how "this" works, most python devs never used pdb, most git users picture a branch like a diverging chain of commits and not a moving label, etc.

Again it's not the people's fault: they are required to be productive very quickly. There is competitive pressure. So they aim for what's good enough to make things that looks right. Can you blame them ?

Few jobs pay devs to update their skill on company time, and not everyone will spend an hour a day learning new things instead of playing with the kids, doing exercice or going out with friends.

comment 6y ago · link · parent

Everything is a matter of compromise. What's important is to make them consciously, which I believe Google did in that case.

comment 6y ago · link · parent

Performances and money. You don't want to make the db, cache and network operations to get the comments for every users, only those who really want to read them which are not most of them. At the size of google, you save millions or dollars with such trick.

comment 6y ago · link · parent

Spot on. Maybe the author didn't notice most users don't interract with a computer with a keyboard. They use a mouse, a touchpad or a touch screen.

I use the keyboars a lot, but I keep my mouse. Why ? Cognitive load, that's why. I can remember all the shortcuts for all the apps. But I don't want to. Remembering things has a cost. Switching context has a cost. I have a limited brain budget and want to balance it between execution efficienty and solving the problem I'm working on.

comment 6y ago · link · parent

Half of my income is from training people in JS and Python. I have 50% of those missions that are requested to be "advanced" courses.

The vast majority of the participants are not up to the task. They are paid professionnals, but they consistently overestimate they level, skills and needs. They often are not very good, and of course, they don't know what they don't know.

So I always check for that first, and rewrite my course on the fly to include the untold pre-requisites I identify. I don't tell them I do this to avoid making them feel bad. Nobody wants to hear "dude, you wanna learn react and you never used an arrow function, wtf ?" even if being comfy with JS is a listed requirement on the site.

Bottom line: most devs are not experts, and don't have the ability to assess that. But more importantly, it's enough for them to be productive and most industries don't need more.

comment 6y ago · link · parent

I don't have any kind of smart speakers or camera at home.

The problem is that many other people I visit do.

It's the same issue with Google products in general: I don't have a gmail address. My phone don't even have an email tied to it and I don't use the official store. But because my contacts mostly do those things, google still has a log of all my conversations, my face in pictures, my positions, etc.

But even then it's not just about me: people take bad decisions all the time, companies as well. We don't let people own a radioactive materials, we have laws for that. We don't allow companies to sell radioactive materials to the public, we have laws for that.

comment 6y ago · link · parent

I don't know. I'm very comfortable in JS, valilla, jquery, react and vue. And apparently my customers think I do a decent freelancer work since they keep hiring me back.

And yet, an entire SPA in vanilla JS in 50 minutes seems a lot to me.

I guess it depends of the size of the SPA, but user input + rendering + routing + whatever logic they ask you for the app is a lot of work.

I guess it depends a lot of the requirements: you could skip the routing, make a dirty innerHTML rendering, deal with one browser only for the input events, etc. Still...

Besides, I hate being rushed when I code. I never speed code IRL, the deadlines are in days/months, hours for crisis, never minutes.

comment 6y ago · link · parent

What we really need is a legislation for those devices, that force all manufacturer to:

- have a hardware switch for everything

- have 2 microphones. One is always on, and only listens to the keyword, and is not linked to the rest of the device. If it detects the keyword, it triggers a hardware switch that activate the second microphone.

- text recognition is done from a local unit, not a remote server. This local unit analyse the voice then send proper commands to the rest of the device, but never share the words, and cannot receive data from the rest of the hardware except during signed updates.

- all devices share a stanadrd color code for a mandatory indicator light giving the state of it and a standard activation/confirmation sound

- all devices must be able to be controlled from a provided remote with a button instead of a keyword, which can be deactivated

- all devices must have a BT kill switch, if a phone send a signal saying "I don't want to be listened to", the device will no activate.

- any data sent to server must be encrypted from the client with a key the server doesn't have

And once it's done, do something similar for phones, e-health devices, etc.

We can't expect big companies to act decently, and technology is not going to save us.

comment 6y ago · link · parent

> But I don't see how security cameras, or at least the video doorbells, are more dangerous than all of the other things we've just already accepted, like constant tracking of our positions via smartphones and our online browsing habits.

Things add up, that's all.

Before, you had the danger to personally be tracked in an area around you and listened to.

Now you add a device that can get sound, image and movement of anybody in a zone, and possibly extrapolate their position and potentially face recognition.

The phone story is bad, very bad. But at least we can switch it off, not take it with us, etc. When you walk in the street in front of those camera, you have no choice but to be spied on.

The sum of all the phones + smart speakers + e-health devices + Ring-like products has a deadly potential for democracy. Their coverage is monumental.

Right now we feel like the benefits are huge, and the cost minimal: most people are not affected in their daily life by the surveillance, or at least not in a way that is annoying enough. So we accept it.

But the issue is not about what it does right no. Just like climate change, it's about what it can do in the future.

comment 6y ago · link · parent

Good cause the industry is treating 3D artists very badly, and I'm hoping competition will force them to become decent.

comment 6y ago · link · parent

And check lists. Check lists completely remove the stress of traveling, providing a training, or putting a site in production.

GTD is great, but "the checklist manifesto" should be merged into it IMO.

It funny, I used to thing those boring tools were going to turn me into a mindless drone. But in fact, it's the opposite. Removing the need to involve brain power for useless things frees my mind to be creative and get involved with people more.

I wish I did that 15 years ago.

comment 6y ago · link · parent

On my calendar today:

- Lunch with some friends.

- A call with a client this afternoon.

The first one is not "a sacrifice". The second is potentially going to make me earn one month of salary in a day of work.

So yeah, I want that to be reminded to me.

But even if you don't want a schedule (you are rich or don't work much, don't plan things with your friends, etc), well, a calendar is not just for what you do.

E.G: I'm visiting my mother this week. Tomorrow though, I have an entry saying she is out of town. She told me that 2 days ago, and that's useful information for many reasons, but not something I want to keep in my head. Tomorrow morning, I will read it, and just integrate the information into my day.

Now you might argue: friends and family or a big clients are important enough, you should not need a calendar to remember that. Or, you should not plan things with your friends, it's spontaneous. Or you should communicate with your mother.

But that's not the point. I don't have a calendar because I have to. Nobody cares that I have one.

I have one because it frees my mind of all those informations. This way I can focus in the now. When I'm having lunch with my friends, I'm not thinking about the client call, and yet, there is no chance for me to miss it.

It's fantastic, given the price is a few seconds to add entries, and a few more to review them.

comment 6y ago · link · parent

Lisp languages give every programmer the power to be a language designer.

Unfortunately most people are not meant to be. Most devs are not even very good at coding, and hence PR reviews, style guidelines, design recommendations, linters, etc.

Humans are very flawed creatures.

Now add to that:

- if a feature exists, it will be used.

- at work, you don't have unlimited resources, you have constraints, and you will take shortcuts.

And now you have a good picture of why, yes, lack of expressiveness is a something that you might want.

comment 6y ago · link · parent

I kinda like it, although here it's clearly an marketing attempt and probably also an SEO move of some sort.

Still, it's "python xmas!" all year long would be a nice theme for a blog :)

comment 6y ago · link · parent

To me a calendar is not a constraint. It's a god send. I don't feel trapped with all the things on my calendar: I chose to put them in there so I want to do them.

The reason I have a calendar is not to structure my life at all. It's just so I can forget all that stuff while I have no reason to think about it. Set it in the calendar, forget it. It will pop up in the morning, when I need it.

It's so relaxing.

comment 6y ago · link · parent

> Try a custom keyboard at home and treat it like a hobby, only using it when you feel like it.

Probably the best idea so far, yes.

comment 6y ago · link · parent

Every case is different, that's my point. The keyboard match a very specific profile: geeky user typing a lot, with few occasions to be forced to switch.

For me, as a trainer, I'm constantly on other's people machine. Thanks god they are all the same layout.

As a freelancer dev I also can't be less productive for 3 months.

As someone that travels a lot, I don't want to package a keyboard in my bag back. Planes make you pay extra for to check luggages in now a day. Beside for the space, I'd rather have a portable secondary screen: the gain of productivity is way higher.

Again, not saying you should not buy the keyboard. It may be a very good choice for you. Just speaking of the other side of the coin.

comment 6y ago · link · parent

Yeah but WASM is an open standard that big names in the industry agreed on, including Foss advocates, with a design to accomodate many popular languages and the most popular plateform in the world: the web.

So it has actually a chance to not be limited to one ecosystem or one company.

In fact, the simple idea that it's going to have a monopoly in the browser pretty much guaranties a broad attempt of adoption.

JVM and main frames could have been it, but they never were.

Let's try if we can make it work with a different name this time.

comment 6y ago · link · parent

That's one consequence of the push for political correctness at all cost in our societies. We went too far in applying it, and yet the mindset of people haven't changed, only the surface for compliance. The result is that we have hyper hypocrisy instead of even a tiny amount of respect.

comment 6y ago · link · parent

Those are not solutions, those are workarounds, incomplete ones, and for only half the things I mentioned.

You may accept the price of those compromises depending of your context, what's important and the ROI or course. That's what our jobs are about after all.

I don't mean to say you should not buy those keyboards, I only want to provide another point of view.

comment 6y ago · link · parent

And yet, it will probably be used for that and become popular.

Tech doesn't need to be perfect, the best, or even very good to win. They need to have a killer feature and a low cost of adoption.

Wasm seems on the right tracker for that.

comment 6y ago · link · parent

So you don't share your computer with kids or the spouse (you have money or no spouse/kids), don't teach, don't do much on site user support, don't visit much clients, don't travel for pleasure or family much, don't use much virtual keyboards, are not at a university, etc.

It's not a good or a bad thing, but it would be a mistake to generalize it.

comment 6y ago · link · parent

I had it from mouses but never from keyboard. My guess is that it's very dependant on your general health.

comment 6y ago · link · parent

My experience from switching keyboards or layout is that there is a initial cost in productivity: you type way more slowly and it's harder to think, for a few days up to a few months depending of the importance of the change.

comment 6y ago · link · parent

My problem with such keyboard is that it assumes:

- you will mostly work on the same place (or you accept the burden of traveling with your keyboard and be "that guy" when you set it up. Personally for the same hurdle, I prefer a secondary screen on the go)

- you will mostly work on the same machine (or you have multiple keyboards, one for each machine, and if you are in a data center or tech support, you move with your keyboard).

- you will not be exposed to many different keyboards, or layouts (e.g: you don't need to go help users and customers on their machine that don't allow plugging in, you don't teach, you don't use your phone a lot, etc). Switching layouts all the time is a nightmare.

- you can afford the initial lower productivity (e.g: you are not a freelancer that needs a regular output).

- cables and taking space are ok. Taste is taste, after all.

- you have the money, and find it is better invested in this than say, a better screen, mouse, graphic card, battery, etc. And renewal. Or you have enough to have it all.

- you are certain of this model is what you need or you can afford trying many. There are many ergonomic keyboards. They are all special and expensive in their own way.

- your layout is available. I'm french, I use AZERTY. Or you are fine learning to type with the wrong letters, or using stickers. I often buy/user computers in/from the US, and just type from memory after setting the QWERTY to an AZERTY layout. One of my friend like Dvorak (actually Bepo, the fr version)...

- nobody else than you will use your computer. Or you have several setup and are ok to switch every time.

Now I understand that as it's my job, optimizing this key element of it makes sense.

But hell, that's a lot of per-requisites.

comment 6y ago · link · parent

They do it anyway. And it saves you the cost of the cat and mouse game. You cannot win this unless you create a dictature. There is Mickey porn and fascist Pepa pig anyway. So why not collect the benefit of having real fans making great content instead attacking them.

E.g: nintendo killed an incredible fan made metroid game. It seems so short sighted.

comment 6y ago · link · parent

I have very diverse reading sources and it took me a second as well. I don't think the harsh tone is necessary.

comment 6y ago · link · parent

I always wondered with big brands never did this. Seems like a win-win: let them do free work and the market select for the best to hire.

comment 6y ago · link · parent

We also have light receptors on the skin. And I'm assuming we have many others we don't know about.

The way we teach about the human condition is very limited, and I only started understanding a bit how my body works after I reached 30 thanks to a lot of self-experimentation.

1
180181182183184