HNHacker News
TopNewBestAskShowJobs

BerislavLopac

32,006 karma · joined July 21, 2008

submissionscomments
BerislavLopac··on Standardizing Automotive Connectivity
Judging just by the title (and without noticing the source), I was hoping that this will be about standardisation of the vehicle metrics data via OEM sources. Last year I worked on a system that collects this data, and currently each OEM has a different method (sometimes several, for different message types) it can use to share it with the wider world.
BerislavLopac··on Open washing – why companies pretend to be open source
To be fair, any products that rely on "AI" in naming or advertising is "washed" in some way -- AI is simply a marketing term, not a technical one. Especially considering that it covers so many different (albeit related) things -- LLMs, image generation, computer vision, machine learning etc -- that it became completely void of any useful meaning.
BerislavLopac··on Show HN: Hyper Workspace – A no-code framework for JSON
> There are a few tools that do enable to link JSON schema to views

I'm aware of those, but I'm looking for a visual way to declare JSON Schemas, similar to the Schema view in your project.

BerislavLopac··on Show HN: Hyper Workspace – A no-code framework for JSON
Does this use JSON Schema in any way? This looks like a perfect fit for it, much better than being "inspired by Typescript".

I particularly like the schema editor -- would it by any chance be available as a component to be used elsewhere, ideally open-source? I've been looking for a good browser-based editor for JSON Schema (or any schema, as long as it's configurable), but nothing I found really fits the bill.

BerislavLopac··on How I Use Git
GitKraken is amazing.
BerislavLopac··on Python 3.12 vs. Python 3.13 – performance testing
Hopefully there will be no 3.15: https://peps.python.org/pep-2026/
BerislavLopac··on X isn't important enough to feel the full force of EU regulation
Including trying to colonize Mars.
BerislavLopac··on It's not enough for a program to work – it has to work for the right reasons
> How do I know whether my tests are passing because they're properly testing correct code or because they're failing to test incorrect code?

One mechanism to verify that is by running a mutation testing [0] tool. They are available for many languages; mutmut [1] is a great example for Python.

[0] https://en.wikipedia.org/wiki/Mutation_testing

[1] https://mutmut.readthedocs.io

BerislavLopac··on Logging Best Practices: An Engineer's Checklist
Logs and OpenTelemetry are not at all exclusive. One downside of straight-up OTel instrumentation is that id adds a certain overhead in the form of side-requests to the collector.

Most platforms/languages have logging built in, and it's perfectly possible to emit OTel-compatible log messages (like the linked article recommends) and collect them using some agent like Prometheus.

BerislavLopac··on Python Inline Script Metadata
Kind of, but at the moment the support is very haphazard.
BerislavLopac··on The Ultimate Guide to Error Handling in Python
Ah, I understand now. Well, by default Python doesn't declare a return type either yet the tools are able to infer it in many cases; I see no reason why tools like mypy couldn't similarly infer the raised exception types as well.

Plus, the typing annotations could presumably be expanded to include some notification to declare raised exception types explicitly.

BerislavLopac··on The Ultimate Guide to Error Handling in Python
> I have to use my meat brain to figure out if I've handled all the exceptions that might come up

The point of exceptions is exactly that you don't want to handle all that might come up -- you need to handle only those that you actually expect and know how to handle. Everything else is left to bubble up and either be handled by a custom, generic top-level handler, or by the language's default mechanism (in Python's case, dumping a stack trace).

BerislavLopac··on The Ultimate Guide to Error Handling in Python
> the language lacks a “throws” statement

I'm not sure what you mean by this? Python has the "raise" statement [0], which "throws" an error from within a function or other code.

[0] https://docs.python.org/3/reference/simple_stmts.html#raise

BerislavLopac··on The Space Merchants
I was reminded of it by https://news.ycombinator.com/item?id=41729439
BerislavLopac··on Show HN: JSON For You – Visualize JSON in graph or table views
The buttons are visible, but automatic switch to the next image is annoying. I suggest either disabling the switch completely, or as soon as one of the switch buttons is clicked.
BerislavLopac··on Analyzing the OpenAPI Tooling Ecosystem
Or you can go straight to Starlette [0], which is much more streamlined to develop with. FastAPI is based on it itself, and while it provides many additional bells and whistles I find it messes things up significantly.

[0] https://www.starlette.io/

BerislavLopac··on How to Measure Progress in a Software Project – By Adam Ard
Out of curiosity:

1. How did you define the scope of "what to build"? Did you have tickets, or some less formal specifications like wiki pages, or simply a verbal agreement? How did you ensure that everyone's on the same page?

2. How did you track the progress of "building a thing"? Did you have some kind of "statuses", or each work basically had only two states -- "not done" and "done"?

3. How did the engineers coordinate on their work? Or every "thing to build" was always done by one single engineer? If the latter, how was it later maintained - always by that same person or did others work on it as well?

Please note that I don't mean to demean your experience -- these are simply issues that pop up in software engineering, and decisions have to be made how to approach them. And not making a decision is also a decision.

BerislavLopac··on Atkinson Hyperlegible Font
The "Refined Hacker News" extension for Chrome [0] and Firefox [1] adds something similar (among other things) to the bottom of every thread.

[0] https://chromewebstore.google.com/detail/refined-hacker-news...

[1] https://addons.mozilla.org/en-US/firefox/addon/refined-hacke...

BerislavLopac··on What's the deal with setuptools, setup.py, pyproject.toml and wheels?
No, they need education.
BerislavLopac··on What's the deal with setuptools, setup.py, pyproject.toml and wheels?
This should be mandatory reading for anyone complaining about Python packaging issues.
BerislavLopac··on Officer who ignored NYPD's 'courtesy cards' receives $175K settlement
> jaywalking

This should be abolished as something illegal; some countries function perfectly well with much more reasonable laws on that topic.

BerislavLopac··on Design Patterns Are Temporary, Language Features Are Forever
My experience was some 20-odd years ago, when I was trying to learn design patterns by implementing them in PHP. Specifically, I built the whole array of abstract and concrete factories and all that, until I realised that it can all be replaced by something like:

  $className = "MyClass";
  $classInstance = new $$className();
BerislavLopac··on Lesser known parts of Python standard library
I found it perfect for structured logging, where you might want to modify some details of the logged structures (e.g. a password) without changing the underlying data.
BerislavLopac··on Lesser known parts of Python standard library
ChainMap might be the most underrated bit in the standard library.
BerislavLopac··on 500 Python Interpreters
Bless the Firefox's reader view...
BerislavLopac··on Why Everything Is CRUD
Zero, one, or many.
BerislavLopac··on Rye and Uv: August Is Harvest Season for Python Packaging
Just a reminder of the article that should be mandatory reading for anyone interested in Python packaging tools: https://news.ycombinator.com/item?id=40045318
BerislavLopac··on Climate scientists baffled by unexpected pace of heating
> We the people. We the 90% who have no representation in media or politics.

My point exactly. And without that representation, we have zero leverage to hold anyone responsible.

BerislavLopac··on Climate scientists baffled by unexpected pace of heating
> At what point, if ever, do we hold politicians, media and fossil fuel corporations responsible for their disinformation on this?

Well, it heavily depends on how we define "we". Two out of those three groups are both supposed to uphold the responsibility of others.

BerislavLopac··on Mermaid: Diagramming and Charting Tool
IcePanel has a free tier. [0]

[0] https://icepanel.io/

← PreviousPage 4 of 34Next →