HNHacker News
TopNewBestAskShowJobs

BiteCode_dev

24,628 karma · joined October 21, 2019

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

submissionscomments
BiteCode_dev··on Hypermedia Systems
Unfortunately no, the tab doesn't sit there and do nothing.

Mobile browsers will do all sorts of optimization, such as interrupting the network, slowing down the vm, putting it to sleep, caching and uncaching things without letting you know, and without a predictable pattern.

If you use raw JS, you can deal with all kinds of errors manually, put in place recovery strategies, bust caches, etc.

With HTMX, you just get sluggish behavior, or no behavior at all in your page, and you don't know why.

Also like another person said, you expect your state to be the same, like the scrolling placement, but chrome might decide that no, you get a page refresh there, or you are somewhere else in the page on next switch.

In this particular app, I have a raw JS counter, which is updated on the client to make it snappy, and by htmx to keep it up to date with other modifications. But the counter will be off randomly because Chrome messes with it. So I had to manually put many rules to know it's out of sync, and request the sync at the right moment. But the sync may not happen because Chromes decided so. So I should try several times, with exponential backoff, differentiates the different reasons of failures and update the DOM manually while handling various interactions with other components.

At this stage, you are basically coding a lot in JS instead of getting the state from the server in HTML, so having VueJS + VueRouter + Pinia is going to be easier to manage, and you'll get more interactivity and optimistic updates on top.

It's not worth it. Right tool for the right job and all that.

It's mostly on mobile though. On Desktop, the HTMX app behaves perfectly.

BiteCode_dev··on Hypermedia Systems
HTMX doc is good as a reference, but not as a tutorial.

This book is the missing tutorial, and it's been very useful to me. It even lead to the "A little taste of HTMX" series (https://www.bitecode.dev/p/a-little-taste-of-htmx-part-1).

After a year of using HTMX, I really like it and would encourage everybody to give it a try.

It's nice for:

- internal tools

- midly dynamic websites

It's not great for any web page you stay a long time on mobile on, though. I made a web app with it, and on my phone, you can't handle the fact the browser plays against you if you stay a long time with a tab open and goes in and out of the app. You really need a lot of control in JS for that.

Also: don't try to avoid JS using it. It's a mistake many people do, and that's not how you get the best out of it.

I regularly sparkle a little vanilla js or alpine in my htmx websites to make them nicer. And in some cases, I even have one lone page that loads a full vue/react because that particular section needs to be way more dynamic. It's not an XOR. You have now a whole spectrum of how dynamic and how much work you want to put in.

Sometimes, I don't write JS at all, but it's not a requirement.

BiteCode_dev··on What happens to our breath when we type, tap, scroll
The biggest hurdle is the preconceptions we have about meditation, and the cultural image we carry.

People will try to "be calm", "be zen", they will attempt to "empty their mind". They will look for something special. They will not understand the implications of frustration, impatience, discomfort...

It's very hard by yourself because you bring with you a lot of ideas from a world that doesn't meditate, but certainly has a lot of things they want to claim about meditation no matter how little experience with it they have.

And you won't know when you got in a direction that will not work for you

BiteCode_dev··on What happens to our breath when we type, tap, scroll
I would advise to not start on your own and seek a teacher. A book is not a great medium to learn it.
BiteCode_dev··on Why Dolphin Isn't Coming to the App Store
Yes, but you get more money out a single Apple customer than from 5 android users, and that's the problem of this alternative.

It's about money, not technical capabilities.

BiteCode_dev··on What Is ChatGPT Doing and Why Does It Work? (2023)
Just yesterday people downvoted me on HN for suggesting ChatGPT had the best ability to deduct things, because, according to down voters, it didn't have any.

But the "dumb parrot" narrative that was quite fitting on GPT2, and maybe still useful for understanding the foundation of the tech in GPT3, is now just a demonstration of ignorance.

We don't know what they are really doing. Nobody working outside of openai knows.

But if you use it long enough, it will be obvious we have passed the fancy completion phase, there is a little logic in there. Not a lot, but it makes all the results much better already.

And definitely much better than the competition.

BiteCode_dev··on London Underground hosts tests for 'quantum compass' that could replace GPS
A meter precision is fine for what most people use GPS for. If the device is as precise as they say, you won't add much imprecision to the original calibration, so you will be in the right tunnel at the right time.
BiteCode_dev··on London Underground hosts tests for 'quantum compass' that could replace GPS
Not to mention wireless networks like the ones for the airtag or the wifi endpoints mapping google has could be adapted to share positions of "right here, right now" anonymously.

Which means that if only one device knows where it is, you can calibrate, and if several know, you can even correct for mistakes.

If the system is precise enough, you only need to calibrate once in a while. Being at home/office, on the local wifi, once, could be enough.

Besides, nobody wants the GPS to go, but it's a nice alternative that can't be jammed by enemy forces and can be used for hiking, diving, etc.

BiteCode_dev··on How to get stuff repaired when the manufacturer don't wanna: take 'em to court
Indeed, I'm French.

The thing is, if you say something stupid, people forget about it. If you write it down, it stays.

But often I write like I speak, not thinking about the consequences.

BiteCode_dev··on How to get stuff repaired when the manufacturer don't wanna: take 'em to court
The difference of culture between different parts of the world fosters bigger legal variations.
BiteCode_dev··on How to get stuff repaired when the manufacturer don't wanna: take 'em to court
The US, the UE and China have wildly different approaches to many important topics, and the fact they are all affecting the entire world has the tendency to break political stale matches and balance things out.

It shows that diversity is a good thing, you end up having to compromise no matter how rightful you feel.

BiteCode_dev··on OpenAI and Microsoft Azure to deprecate GPT-4 32K
Probably a lot that we don't know about, because ChatGPT has better reasoning skills than most other systems out there, and we know reasoning is not really about the weights.
BiteCode_dev··on Sales happen when buyers fear missing out
The trick is to make it look like an amazing opportunity, not something to fear about. The FOMO will be here, but hidden below enthusiasm, and the person will feel like they are actually lucky to have the opportunity.
BiteCode_dev··on Show HN: Keydogger – Minimal keyboard macro for Linux (Wayland)
And it can wonderfully be programmed in Python. I miss it in wayland. It works sometimes, and sometimes not, which kinda defeat the purpose.
BiteCode_dev··on Start presentations on the second slide
I do that with all the blog articles I write: start with a summary, with full reusable code you can copy/paste when appropriate.

That's what I want from others, so that's what I do.

Let the ego aside, be useful.

BiteCode_dev··on The problem with OpenTelemetry
100% agree.

Every time I tried to use OT I was reading the doc and whispering "but, why? I only need...".

BiteCode_dev··on Ask HN: Is it just me, or does the job market for IT seem bad today?
Strangely I'm more comfortable with this kind of market.

I was fed up to see entitled wannabees be paid a lot of money to slow me down by forcing me to do some parody of scrum that they learn at one bootcamp, feeling they were in any way important as they drank they in-house latte during multiple remote meetings a day.

I much prefer a market where people I work with are actually paid according to their skill and ship code rather than power point or worse, an update to the code of conduct to include some inclusive edge case.

I would prefer a balance of all worlds, that would be fairer. But you can never quite reach it, because you pass it on the way up or down quickly as the pendulum swing.

So if I have to choose, I prefer a hard market.

I understand that people need to eat and that it's not everybody's preference, though.

BiteCode_dev··on Ask HN: Is it just me, or does the job market for IT seem bad today?
As Nassim Taleb said: "I've seen gluts not followed by shortages, but I've never seen a shortage not followed by a glut."
BiteCode_dev··on Author Clock: a novel way to tell time
She is not alone. Even antirez spends an incredible amount of time these days just to make the transition smoother on his displays: https://x.com/antirez/status/1768741226159730750
BiteCode_dev··on Author Clock: a novel way to tell time
Beautiful. I need a device like this, but with the famous memento mori calendar (https://memento-mori-calendar.netlify.app/), maybe with a bigger screen.

But the aesthetic and the e-ink screen is really nice.

Although, $200 for a clock is probably more than what I would spend. I understand e-ink are not cheap unfortunatly.

BiteCode_dev··on Silicon Valley's best kept secret: Founder liquidity
It's very influenced by what you do.

Today I'm giving a training to 3 people, each paying 2600 for this training. It means this week they get billed 7800 in total. If you do that for 30 weeks (not even a full year), you get to 234000.

15 years ago, my team leader was already doing $15K month as salary, and it was a startup in Sophia, not Google, and a long time ago.

So it's all possible, but indeed, not the average situation. The median dev is underpaid in France:

https://www.bitecode.dev/p/french-competitiveness-in-it

BiteCode_dev··on Japan enacts law to promote competition in smartphone app stores
No because Malware breaks the law.
BiteCode_dev··on Google Dataset Search Engine
For me, right now.

Not going to use it because your comment is too real.

BiteCode_dev··on Silicon Valley's best kept secret: Founder liquidity
It's not just a matter of place, but what you can have if you work for Google instead. I can make $200k as a freelancer in France, but much more as a Google employee.
BiteCode_dev··on Raspberry Pi is now a public company
Community, branding, hardware compat and software support.

Like nvidia.

BiteCode_dev··on How do you program for 8h in a row?
Yeah, of course, that goes with it: he doesn't have kids, and he has money.

But, again, I'm in the same boat, and 4 hours of coding is already plenty for me.

BiteCode_dev··on How do you program for 8h in a row?
I have a friend that still rocks 12 hours a day at 49. The only difference is that now he takes pain killer for his back or he can't focus.

But he does everything like this, not just coding.

He started playing LoL again last week. Well, 12 hours a day of gaming it is.

BiteCode_dev··on Python/Django devs: do you use Celery? And why does it suck for you?
Not anymore because it's been a burden.

But it doesn't bring more than rabbit MQ:

- it stores results

- it stores exceptions

- it gives them back to you in native form

- it has a UI admin for tasks

- it can use multiple backends, including redis and a db

Now I tend to use simpler things when the project allows it, like huey and rq. Most of the time, you don't need something super powerful for your tasks.

BiteCode_dev··on Back To Atoms: Why we can stop building SaaS and build the future instead.
Or maybe just delegate us the work. Maybe we are the assembly of AI and we don't know it yet.
BiteCode_dev··on Apple unveils 'Passwords' manager app at WWDC 2024
A password manager that doesn't have an open-source client cannot be truely checked. Therefore it cannot be trusted to encrypt them before being sent nor to not contain a backdoor.

Apple was part of the PRISM program, we know they gave access to our data for mass spying.

← PreviousPage 31 of 34Next →