Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

It seems you haven't read the article.


It's one thing knowing the language, it's another being productive with the ecosystem.

One takes between a few days and a few months. The other is a few years, unless you get pro training.

I guarantee most people starting with Python from another language will be productive quickly. But they will curse the packaging ecosystem because they will follow a lot of tutorials that don't follow this:

https://bitecode.substack.com/p/why-not-tell-people-to-simpl...

And they'll get screwed.

They will have a hard time learning this:

https://www.bitecode.dev/p/relieving-your-python-packaging-p...

It will take a long time of trials and errors, suffering all the way.

And this is true for many other aspects: good editor config, good web deployment story, good app sharing system, good tooling setup, etc

A runtime or a stlib is quite small and stable. But an ecosystem is gigantic and moving.


Yeah I learned Ruby on Rails very quickly a long time ago, it's probably one of the most accessible frameworks to learn, but it took me years to master all the weird quirks, dev environment stuff, debugging, production deployment etc. Plus from all the years doing it I'm familiar with all the old libraries so when you join a company with a large legacy code base, which at this point is very common for rails, I don't have to spend forever learning the details of some 7yr old implentation no one uses anymore.

Working with senior devs who have only been doing it for 1-2yrs is where you see the small productivity differences that aren't simply being a newbie programmer.


You're seriously arguing that someone with general knowledge of programming is going to get hard-stuck not knowing specifics of a language you and thousands of others have blogposted about for years, while linking your own posts?

Let's be real here. What percentage of companies are in dire need of 'experienced [language] programmers' who know these specifics that haven't already been set by previous devs or have another developer present to make the decisions? That's a tiny, tiny percentage of the entire job market, with much of the demand coming from companies with incredibly shaky foundations.

Almost the entirety of this is a luxury problem put on the individual. The moment the job market says they can't demand it anymore, they won't.


Yes.

Last week I talked with a guy who was pitching to rewrite their entire product in another language because he never heard of python GIS ecoshst and was doing spatial calculations by hand. Would cost hundred of thousand euros.

The HN bubble strikes again.


I don’t agree at all. I was productive within a month in a completely new language and stack at my current job for example. Once you know a few inside out, it’s just pattern matching with some Googling of “what’s X in Y language”.

Extremely deep knowledge of a language is very rarely needed, even when it is as long as you can somewhat vocalize the problem it’s just debugging


Indeed, I talk about lots of stuff, as an old dev that has been through lot of stuff.

However if I need to do quiz, or coding exercise, closed book style, only Java and C#, to a lesser extent C++, would be a viable option for me.


This is why I always start with a tl;dr for all articles on https://bitecode.dev.

There is too much BS out there. Let's save everybody's time.


> No surprises here. Come what may, Amazon has always strived to lower costs

I have a hard time reading "amazon" and "lower costs" in the same sentence.

The cloud is consistently an order of magnitude more expensive than self hosting, even when including people cost, unless you need every single bit of load balancing/high availability/normalization they provide.

The vast majority of projects don't.


I've yet to notice any event where firefox "screw users over" that was not vastly overblown, especially compared to the competitors.

People tend to just judge Mozilla way more harshly.

It's very unfair: they do good, and we ask even more of them.


I know that its against the rules to imply this, but seriously, there is always so much vitriol that I just don't understand thrown towards Firefox every update that it really gets the old noggin get going.

Can we seriously not even contemplate the idea that there might be a certain corporate entity out there with a vested interest in ensuring that Firefox usage is kept deliberately low while at the same ensuring they _just_ enough funding to keep going so they can point to it and say "look, we're not a monopoly!"


How many members of this very forum are straight up google employees, complete with regular internal propaganda efforts to reassure employees that aktually, google is the good guys protecting you from the evil, politically driven mozilla?


Honestly in my original comment I almost tried to make a joke about how this website calls conspiracy on far less. But I didn't know how to properly do it and so removed it. But yeah, you're not alone in thinking this looks like astroturfing. But I'm not entirely convinced it is not-natural. FF did fuck up in the past, but I think people are still angry about the browser 10 years ago and not updating their beliefs. I think there is also a bias because Mozilla is 501c and so their fuck-ups and everything is out in the open. It's like comparing a democracy to an autocracy, and thinking the autocracy is better because you hear that the people are doing well and never hear about things going wrong.


I'm seeing a lot of "boo Mozilla" in this thread, but honestly I'm seeing pretty much zero "yay Chrome"/"yay Google". I think it's more like saying "this democracy has a lot of issues that make me angry" and getting the reply "so you prefer the autocracy? Damn fascist."


they're the best game in town, but they've also gone against long term user-base wishes again and again to either 1) try to create wider popularity with feature parity (didn't work) and 2) to capitalize in inappropriate ways that are against the ideals first set forward.

It doesn't take a lot of mental effort to realize that the userbase left doesn't want telemetry and third party partnerships; Mozilla knew this, they tried to get away with it and lost goodwill.

It's not the thing, it's the attempt to get away with it that irks me. No one except The Paid wanted pocket integration and Mr Robot promotions.


Oh you were definitely harmed by the company using their money to buy a semi-popular bookmarking alternative for their users, that someone probably thought their users would like to use, with zero requirement to ever use pocket. My firefox install hasn't even had the pocket icon in however long, I can't remember.

Meanwhile google is pushing an attempt to strangle the open internet to death, in the open, for all eyes to see.

But no, lets keep pretending that mozilla doing a poorly executed ad is comparable to THAT


This opinion might differ from others but my main complaint is with their useless and sometimes hostile UI changes rather than the occasional ad for other Mozilla services. For example recently the change to tabs floating disconnected from the pages, which I had to use userchrome to override. Next problem I am trying to tackle right now is favicon being hidden when the audio playing icon is on a tab that seems to have been done in a recent update.


>the change to tabs floating disconnected from the pages

What does this mean? My experience using tabs in firefox has not changed in like twenty years!


The "user hostile" tab design change was the addition of a space of a few pixels between the tabs and address bar: https://www.theverge.com/2021/6/1/22463321/firefox-design-re...


If they had just thickened the continuous bar connected to the tab a few pixels I probably wont even have noticed. Instead introducing a gap between the tab and its page completely changes its look making it seem like its floating separately and the tabs are independent buttons. But the point is either of these makes no sense at all. What even was the point of this weird change from the perfectly functional and normal looking tabs before?


https://support.mozilla.org/en-US/questions/1339535 https://support.mozilla.org/en-US/questions/1386107

Look what an unholy mess the new change to audio playing status has caused.

To summarize, in compact mode you will get the audio playing icon on a tab but it will hide the favicon in that case.

In normal mode, and only if you have a small number of tabs, you will find a tiny 'PLAYING' text instead. If you hover over it, you will find the playing icon...which will have hidden the favicon then.

UX geniuses with too much time on their hands.


> People tend to just judge Mozilla way more harshly.

It's a self-inflicted problem though. Mozilla uses every opportunity to claim they're on your side and want to protect you from the evil guys.

The nagging itself is annoying to begin with (and incomprehensible - at least ads make sense from a business point of view - but why interrupt my workflow to let me know about Colorways?), but it's made even worse with all their self-righteous BS about privacy while the browser actually being pretty poor (and not GDPR compliant due to default-on telemetry) in its default configuration.


The point is, it never became cool.

It was a good tool, and it still is. There is no marketing, no fluff, no buzz world.

It gets the job done.

That's what's good about it.


With a little jitter to make sure the fining system don't get overloaded by all those criminal companies.


Summary:

The tenacity library comes with an intriguing mix of iterators and context managers to allow the users to retry blocks with this syntax:

    from tenacity import Retrying, stop_after_attempt

    for attempt in Retrying(stop=stop_after_attempt(3)):
        with attempt:
            1 / 0
You can use the same mechanism yourself, by creating and linking a custom context manager and iterator:

    class YouAndIhaveUnfinishedBusiness:
        def __init__(self, notify_success, attempt_number):
            self.notify_success = notify_success
            self.attempt = attempt_number

        def __enter__(self):
            pass

        def __exit__(self, exc_type, exc_value, traceback):
            if exc_value:
                print(f"You have disappointed me {self.attempt} time(s).")
            else:
                self.notify_success()
            return True

    class DoOrDoNotThereIsNoTry:
        def __init__(self, max_attempts):
            self.max_attempts = max_attempts
            self.success = False

        def __iter__(self):
            for i in range(self.max_attempts):
                yield YouAndIhaveUnfinishedBusiness(self.succeed, i+1)
                if self.success:
                    print("You are ready for the Kumite.")
                    break
            else:
                print("We trained him wrong on purpose, as a joke.")

        def succeed(self):
            self.success = True


Really funny, but a lot of those contain more carbs than fiber, so they cannot be used every day.


Just to be shockingly pedantic -- Dietary fiber are carbs so containing more fibre than carbs is technically impossible.

Ok, but I think your point means like refined starchy foods, and not fibrous vegetables and grains?


Indeed.

Just like when people say "sugar", they usually mean the white stuff, or fructose syrup, not carbs in general nor fructose in fruits.


It helps with accessibility, not with the problem that cashless is dangerous for democracy.

Everytime you pay anything with something else than cash, it is recorded: the amount, the time, the place, and the nature of the thing you buy.

There is no way to go to a gay bar (or another place loaded with consequences) without a trace. And this is needed for human dignity.

There is way to support a controversial political movement without a trace. And this is necessary for new idea to come up.

There is not way for kids to do dumb things without a trace. And this is necessary for growing.

There is no way to pay for something when electricity or network goes down. And this is necessary to deal with crisis.

Basically, cash buys humanity margin of maneuver, and a fallback against any decaying societal or technical system.


Credit cards actually don't need electricity or the network to be up. That was kind of the original point. The business that you're paying trusts the card issuer to pay them on your behalf, so they can communicate the payment details to the bank asynchronously, and after supplying the paid for goods or services.

But the rest of your point stands. Cash grants a lot more flexibility.


That hasn't been true for years.

CC processing today 100% requires power and network.


I don't know of any business in my country that has the manual machine anymore.

But even if it did, how would visa process the recipe without power ? Their money is all bits.

Cash is cash, even when there is no accounting.


> There is no way to go to a gay bar (or another place loaded with consequences) without a trace. And this is needed for human dignity.

We should remember that this is also true about phones.


You can leave your phone at home and go to a bar no problem. If you can't pay for drinks, that's a problem.


Op has a point since one phone is enough to ruin the privacy of a place. It doesn't need to be yours to cause some trouble.


Yes but some points have priorities:

-- "Every exchange will leave a full track - where, when, what" already should raise a "you'd better be joking".

-- Failsafe fallback: a system depending on running infrastructure (electricity, internet, servers etc.) is badly conceived.


There is no way to pay for something when electricity or network goes down. And this is necessary to deal with crisis.

I've noticed that the loudest voices in favor of getting rid of cash usually seem to live in places that have few, if any, natural disasters.


> natural disasters

Infrastructure does not fail only because of natural disasters.


Indeed. Or war. Or just bad engineering.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: