HNHacker News
TopNewBestAskShowJobs

BerislavLopac

32,006 karma · joined July 21, 2008

submissionscomments
BerislavLopac··on Linux Crosses 4% Market Share Worldwide
I prefer to look at it this way: every fifth desktop/laptop runs a Unix OS.
BerislavLopac··on Measuring GitHub Copilot's impact on productivity
It didn't "know what you wanted" - it simply did what has been done many times in the code it was trained on.
BerislavLopac··on Two trends help make millennials seem lazy to their elders
No, the logic is that milennials, and any other generation, are lazy (about work) when young.
BerislavLopac··on Two trends help make millennials seem lazy to their elders
> He thought that cohorts that did not share such an experience could not form a generation

And this is exactly what a problem is with the concept of "generations": they only work as far as they take into account geographical circumstances in different parts of the world. For example, a generation who lived through the 90s in the USA and Western Europe will have a very different experience from the same one in the Eastern Europe, especially the Balkans.

BerislavLopac··on Ask HN: Slow thinkers, how do you compensate for your lack of quick-wittedness?
Being a slow thinker myself, this has been quite an enlightening thread; and a special thank-you to those who alerted me on Derek Sivers, his work seems highly relevant.

But this whole topic raises an important question: is there any way to check whether someone is a slow thinker, e.g. when interviewing people for work? It would be great if one could easily determine if someone doesn't have the required knowledge or is simply slow to formulate the answers.

BerislavLopac··on Tea.xyz causes a flood of spam pull requests to open source projects
Geocode.xyz [0] is quite a useful service.

[0] https://geocode.xyz/

BerislavLopac··on Getting Help [in Python]
> Tabs are the syntax required for Python. A bunch of spaces are not enough.

Yes, you got this very wrong. Yes, whitespace is significant in Python, but it can be either tabs or spaces, as long as it's consistent; although PEP8 [0] recommends using 4 spaces per level of indentation.

It's hard to tell what your issue with backward compatibility was exactly without examples. You are not wrong, Python does occasionally introduces backward incompatible changes - but in most cases they follow a clear deprecation process, announcing a change long before it is eventually introduced.

[0] https://pep8.org/

BerislavLopac··on What do we get wrong about the Byzantine Empire?
Also Rumelia: https://en.wikipedia.org/wiki/Rumelia
BerislavLopac··on Vega-Altair: Declarative Visualization in Python
My favourite tool for building visualisation on top of Vega is a Python library named -- in a stroke of naming genius -- Vincent: https://vincent.readthedocs.io
BerislavLopac··on Things unexpectedly named after people (2020)
Excellent point! In fact it's both - "neo" from Latin and "ander" from Greek. And I stand corrected on another point: it was actually his grandfather who changed the name, so our Joachim actually was born Neander.
BerislavLopac··on Things unexpectedly named after people (2020)
Similarly, the words for "emperor" in some languages -- most famously the Russian "tzar" and German "Kaiser" -- come from Caesar.
BerislavLopac··on Things unexpectedly named after people (2020)
A few more examples:

King Street in Hammersmith, London, was named after John King, Bishop of London in 17th century. [0]

Neanderthals were named after Joachim Neumann, a 17th century clergyman and composer who Latinised his surname to Neander (both literally meaning "new man"). He particularly loved a certain valley near Düsseldorf, so much in fact that it was renamed "Neandert(h)al" after him. [1]

Sideburns, a once popular style of male facial hair, was named after the Union general Ambrose Burnside. [2]

[0] https://en.wikipedia.org/wiki/John_King_(bishop_of_London)

[1] https://en.wikipedia.org/wiki/Neandertal_(valley)

[2] https://en.wikipedia.org/wiki/Ambrose_Burnside

BerislavLopac··on RFC 9512: YAML Media Type
That's a backronym; originally it meant "yet another".
BerislavLopac··on Tech has graduated from the Star Trek era to the Douglas Adams age
I need a speaker that would respond with the dialogue trained on Marvin the Paranoid Android.
BerislavLopac··on Tech has graduated from the Star Trek era to the Douglas Adams age
> speakers that respond in iambic pentameter

:shut-up-and-take-my-money.gif:

BerislavLopac··on UK middle classes 'struggling despite incomes of up to £60k a year'
In case anyone is unsure how is "middle class" defined in the UK, here is a short primer: https://www.quora.com/Whats-the-line-between-middle-class-up...
BerislavLopac··on Returns: Brings functional programming to Python land
They're both perfectly valid; but the expression style [0] is shorter and more obvious, especially compared to Optional. Even the documentation for Optional states [1]:

  Note that this is not the same concept as an optional argument, which is one that has a default.
[0] https://docs.python.org/3.11/library/stdtypes.html#types-uni...

[1] https://docs.python.org/3.11/library/typing.html#typing.Opti...

BerislavLopac··on Returns: Brings functional programming to Python land
> People in this thread seem to be conflating "it's less readable" with "it's written in a dialect I'm not used to".

I have long been arguing that this is exactly what "readability" means. Readability is completely subjective, and depends on personal experience with various languages, types of syntax and so on.

BerislavLopac··on Returns: Brings functional programming to Python land
I believe the recent idiomatic recommendation for the first two is to use the union type expression:

  1. T | None
  2. SuccessT | FailureT
BerislavLopac··on Returns: Brings functional programming to Python land
IMO, the problem with the original code is not in the way it nests ifs, it's in the bad design. If it is properly nested in a function, user should not ever be None (any user-less behaviour should be in a completely separate execution branch, likely in a different module), while there is no reason for get_balance and credit_amount to ever return None.
BerislavLopac··on UK middle classes 'struggling despite incomes of up to £60k a year'
> a child count as .5 (except the third who count as 1 whole part do not ask me why)

Just the third child, or any after the second? If the latter, I would assume it's an incentive to have more children.

BerislavLopac··on Help Us Build Our Roadmap – Pydantic
I'm happy to see that someone is working on a schema repository problem!

That being said, while I understand their choice of using Pydantic for defining the schemas, I believe they should integrate a more platform independent standard as a first-class citizen -- something like JSON Schema, or even protobufs (or both).

BerislavLopac··on I worry our Copilot is leaving some passengers behind
> I always wondered if that meant the first 90% takes 50% of the time or 10% of the time.

Essentially the latter; what you thought will be 90% the time ends up being just the first 10%. And the rest is spent on the 10% of the code, plus everything else that is part of the project besides the code: reviews, testing, revisions, deployment issues etc.

BerislavLopac··on I worry our Copilot is leaving some passengers behind
> 80% of your code is written in 20% of your time but 80% of your time is is required for 20% of your code

This is not correct. It is well known that the first 90% of the code takes the first 90% of the time, and the remaining 10% of the code takes the other 90% of the time. [0]

[0] https://en.wikipedia.org/wiki/Ninety%E2%80%93ninety_rule

BerislavLopac··on Ask HN: Easiest way to create a CRUD web app in 2024?
Sandman: https://sandman2.readthedocs.io/en/latest/
BerislavLopac··on Show HN: Gitlab Meeting Simulator 2024
That was quick! I posted https://news.ycombinator.com/item?id=39363358 just yesterday. :D
BerislavLopac··on People using Gitlab Zoom videos to pretend they're working
It didn't take long :D - https://news.ycombinator.com/item?id=39377508
BerislavLopac··on Internal tools often make bad startup ideas
One set of internal tools that I have repeatedly seen companies struggle with are the release management tools.

It usually starts when a team is quite small, and someone builds some DevOps pipelines that nicely automate deployment to dev and test environments. When it comes to production deployment, it seems natural to simply duplicate the same pipelines -- however, production is generally quite different from other environments:

1. There is an approval process, which does not exist for other environments. Even if it is possible to have it fully automated (I have yet to see it in practice), it requires rigorous tests and verification of the code; and if it is not automated, the process generally involves plenty of back and forth communication between testers, product owners, developers etc.

2. Ideally, deploying to production should not involve rebuilding the project anew. Once you deploy it to a testing environment, and it passes all the tests, deploying the exact same artifact (docker image, ZIP file, Python wheel, binary executable or whatever) to production is the only way to ensure that you're deploying what has been tested and approved.

I have searched for a third-party tool to manage this process, but haven't found anything satisfactory yet (suggestions welcome!) -- one of the reasons is probably the fact that the processes differ so wildly between companies and teams.

BerislavLopac··on Git tips and tricks
I never really understood why the majority of developers insist on using the git CLI, when modern UI clients like GitKraken [0] are perfectly usable and very helpful. :shrug:

[0] https://www.gitkraken.com/

BerislavLopac··on Mornington Crescent
There is a video showing what playing the game looks like in practice [0].

[0] https://www.youtube.com/watch?v=tYrue4oXCbo

← PreviousPage 6 of 34Next →