HNHacker News
TopNewBestAskShowJobs

_ZeD_

2,354 karma · joined August 12, 2012

submissionscomments
_ZeD_··on Spring Boot Done Right: Lessons from a 400-Module Codebase
dude, that is a configuration.

it is completely declarative and lives in the best place, near your code, not on some other inaccessible repository.

what have you preferred? a json file? a yaml one?

I had them, and I find the annotations are more readable than other solutions.

_ZeD_··on Astral to Join OpenAI
>>> ‘uv but written in Python’

you mean pdm?

_ZeD_··on Jolla on track to ship new phone with Sailfish OS, user-replaceable battery
Am I the only one who use plastic covers? who cares about anything on the back of the phone?
_ZeD_··on Beagle, a source code management system that stores AST trees
who is "we"? and "better" in what measure?
_ZeD_··on You can use newline characters in URLs
Yeah, they might be ignored by the html parser and might "work".

Still, not a bright idea.

_ZeD_··on Meta’s AI smart glasses and data privacy concerns
Sooo... I really should start keepin running this[1] all the time...

https://github.com/yjeanrenaud/yj_nearbyglasses/

_ZeD_··on RFC 3092 – Etymology of “Foo” (2001)
funny how in italian the "Metasyntactic variable"[1] are "pippo", "pluto" and "paperino"

[1] https://en.wikipedia.org/wiki/Metasyntactic_variable#Italian

_ZeD_··on IKEA for Software
Just to be sure... What is the interesting work you talk about?
_ZeD_··on Try to take my position: The best promotion advice I ever got
But but

I don't want a promotion. I don't want a new role.

I want more money to keep doing what I already do.

_ZeD_··on Imagine 130M Washing Machines
The whole idea is to make the rich people poorer, even if just a little.

The money taken from 1000 or 2000 rich people may be used for the rest of the 130000 ones

_ZeD_··on Python numbers every programmer should know
Yeah... No. I've 10+ years of python under my belt and I might have had need for this kind of micro optimizations in like 2 times most
_ZeD_··on Python 3.15’s interpreter for Windows x86-64 should hopefully be 15% faster
keep in mind that, apart from the money throw at js runtime interpreters by google and others, there is also the fact that python - as a language - is way more "dynamic" than javascript.

Even "simple" stuff like field access in python may refer to multiple dynamically-mapped method resolution.

Also, the ffi-bindings of python, while offering a way to extend it with libraries written in c/c++/fortran/... , limit how freely the internals can be changed (see the bug-by-bug compatibility work done for example by pypy, just to name an example, with some constraint that limit some optimizations)

_ZeD_··on Developing a food-safe finish for my wooden spoons
What's wrong with metal spoons?
_ZeD_··on Python is not a great language for data science
Sooo... Is this a post about python envy?
_ZeD_··on An overly aggressive mock can work fine, but break much later
Honestly I don't buy it. Worse, this is one of the reason I prefer to do "minimal integration tests" instead of unit tests. Take the example snippet of code

    def get_user_settings() -> str:
        with open(Path("~/settings.json").expanduser()) as f:
            return json.load(f)

    def add_two_settings() -> int:
        settings = get_user_settings()
        return settings["opt1"] + settings["opt2"]
and the very first comment just below

>>> The thing we want to avoid is opening a real file

and then the article goes and goes around patching stdlib stuff etc.

But instead I would suggest the real way to test it is to actually create the damn file, fill it with the "normal" (fixed) content and then run the damn test.

This is because after years of battling against mocks of various sort I find that creating the "real" resource is actually less finicky than monkeypatching stuff around.

Apart from that; yeah, sure the code should be refactored and the paths / resources moved out of the "pure logical" steps, but 1) this is an example and 2) this is the reality of most of the actual code, just 10x more complex and 100x more costly to refactor.

_ZeD_··on Result is all I need
gosh...

        try {
            val user = authService.register(registrationRequest.email, registrationRequest.password)

            return user
        } catch (exception: Exception) {
            // log exception
            throw exception
        }


no, no, no!

the whole point of the exceptions (and moreso of the unchecked ones) is to be transparent!

if you don't know what to do with an exception do NOT try to handle it

that snippet should just be

    return authService.register(registrationRequest.email, registrationRequest.password)
_ZeD_··on ICE and the Smartphone Panopticon
[flagged]
_ZeD_··on Canada Set to Side with China on EVs
> This is the wrong take. Economic dependence on China is a massive national security threat.

and instead dependence on the U.S.?

_ZeD_··on Google flags Immich sites as dangerous
How does it makes sense?
_ZeD_··on Most expensive laptops
and yet not one of them has a monitor of 17" or more...
_ZeD_··on Post office in France rolls out croissant-scented stamp
> artisan croissants [...] “emblem of French gastronomy,”

and yet italian cornetti are better grin

_ZeD_··on European.cloud: A Curated Directory of EU-Based Cloud Providers
why it should happen?
_ZeD_··on I am a programmer, not a rubber-stamp that approves Copilot generated code
what baffles me is how much more rage is coming from any other creative workers (painters, filmmakers, musicians) than from programmers.

Why are programs - the result of the ingenuity of people working in software field - not protected against AI slop stuff.

Why is there not any kind of narrative out there describing how fake and soulless is code written by any AI agent?

_ZeD_··on Why is everything so scalable?
Honestly, in my experience, the only good reason to have microservices in a "software solution" is to be able to match 1 service -> 1 mantainer/team and have a big (read "nested", with multiple level of middle-managers) group of teams, each that may have different goals. In this way it's very easy to "map" a manager/team to a "place" in the solution map, with very explicit and documented interactions between them
_ZeD_··on Modern Linux tools
everything.
_ZeD_··on A years-long Turkish alphabet bug in the Kotlin compiler
what do you propose to handle translation messages? how do you think they should map the compiler codes to human messages?
_ZeD_··on Modern Linux tools
the second item is

exa modern replacement for ls/tree, not maintained

"not maintained" doesn't smell "modern" to me...

_ZeD_··on Show HN: Baby's first international landline
uhmm...

>>> As a weekend project, I hacked together a physical phone, a Raspberry Pi running Asterisk and Twilio, to let toddlers safely make international calls.

how often do toddlers make international calls???

_ZeD_··on California enacts law enabling people to universally opt out of data sharing
but then the websites may offer a banner to ask the user to opt-in again and this information can be saved in a cookie, so it would not be asked again

maybe they can call it the "cookie banner"

oh, and also, if it would be annoying to keep saying "no, I don't want to opt-in again" the websites owners may say that it is government fault, as now they are required by law to show this banner

_ZeD_··on Meta launches Hyperscape, technology to turn real-world spaces into VR
The thing is... are we happyer now?
← PreviousPage 2 of 30Next →