HN user

gregopet

329 karma
Posts0
Comments127
View on HN
No posts found.
Latta Java 17 days ago

Personally I would just use SDKMan & generate a Maven or Gradle build profile from a getting started page of Spring, Vert.x, Quarkus (or whatever library/framework your main work will be on).. . Many of them have interactive starter pages where you click all the things you think you will need and download the project that builds with a single command.

I don't find Java tooling at all difficult, compared to say Python or JavaScript.. but then again I've been using it for quite a while now so I may not be the best judge

I've worked in projects where change was expected, so a policy of strict integration testing was introduced - test that treat the system as a black box and aren't aware of its internal structure (to a point, there is always some compromise). Every bug had to have a matching integration test. This made rewrites cheap, boring even (there is always _some_ danger of course, but the approach significantly simplified the decision to rewrite some part of the system or another).

Please don't write your own. Last time I checked there was just an astounding number of static site generators in every imaginable technology. Why do people write & publish this thing over and over again, surely it's been done to the death?

People here have trouble with names, but for a Slavic language speaker like myself, the names are one of the best parts. Even if I don't speak Russian, names like "Razkolnikov" ooze his indecisiveness. And the characters the author doesn't like, he shows contempt for them by not even giving them a proper name, calling them Mr. C. or something like that.

My problem with Dostoyevsky is that I simply don't like his style.. despite being a voracious reader it was pure torture getting through The Idiot and I gave up 1/3 of the way during Crime and Punishment. Had to re-read parts out loud again to help my son who had to read it for high school and begged me to help him somehow (we share the dislike it seems). He's one of the authors I would really love to like, but it's just not happening

First let me say that any corruption admitted to in those recordings should be prosecuted immediately, no question about it.

But really, the admissions were really nothing much, I'm actually surprised that's all they got. The former minister was forced to resign under allegations of corruption and was/is under investigation for it, no big surprise. And the talk about having access to Ljubljana's mayor (and that he is "for sale") - well that's been in the news for years, he's under several open investigations and many more were already closed (he always comes out victorious - either because he's innocent and it's all just hearsay, or more likely because he's extremely good at dodging liability and covering his tracks). The rest is just people who used to have some power trying to appear like they still have in order to impress a potential employer or get a business deal (that was the agents' cover).

Again, I hope the authorities are combing the tapes for evidence, but it really wasn't anything bombastic. That the Israelis were doing this on the other hand...

"Handler" can describe anything, I avoid that name like the plague in my designs, there's almost always something more appropriate that communicates more meaning

Dependency injection is great as long as its internal working can be easily understood. I've worked with projects where dependency injection comes in various contexts (application scoped, request scoped ..) and there are always problems with that, sooner or later.

Our firefighters collaborate with Croatian aerial firefighters (our neighbouring country). They say there is often pressure from politicians to drop water on wildfires in mined areas, however this is still dangerous to the planes as they have to go real low (a mine could explode spontaneously in their flight path) and after a few near misses they've adopted a policy: if it's not worth demining it's not worth saving from fire either.

Guess they will have more work now

He ended up on React because it just works and doesn't change all the time. Now both my React and .NET times are some way behind me, but I'd definitely say it's the other way around..

My dad and my uncle had a code under the Bush administration

My uncle had moved to the US and either still was on a green card or had just recently got his US citizenship and thet said why risk it? .. (they were kinda cute about it though, they just wrote "Jure Grm" which literally translates to "George Bush" in our language so if anyone was actually looking, they wouldn't have fooled them for a second).

They were just bitching about politics, not planning a coup or something, yet they felt insecure, even with the US.

Both ASCIIdoc and reStructured text are older and better (subjective, of course), yet Markdown still won. Happens sometimes, nothing to see, I've moved on (with just a little grumbling). Now I often can't remember their syntaxes anymore, Markdown is everywhere.

Well, no. I mean something I can stick in my actual code to ensure it matches the spec, be it through validation, strongly typed interfaces, unit tests or some other mechanism.

Also, while a nice API document is a godsend (and sadly often missing in practice), a way to generate the consuming side of the API (again via various mechanisms) is also a very useful thing.

Re-reading the page, perhaps I got it wrong and it works the other way around? Voiden uses e.g. OpenAPI files and verifies it's still compliant with them? That would work, although it's a bit of a double effort.. still, useful in many cases.

For my language I've been using a US layout with a similar alteration for years as well on Windows and Linux: AltGr+C = Č, and AltGr+V = Ć (the second one is much less common, basically only used for writing names). Similar for Š, Ž and Đ, I stopped bothering with stuff like á because I need them maybe once every couple of years.

My point being: wow, I've never thought about standardizing the layout, what a marvelous thought. Not for the general public perhaps, but for some programmers it would be a godsend. The whole terminal is basically non-ergonomic on other layouts. Stuff like ./ is right together on the US layout. Similar for coding. I preach to my fellow developers and they see my point but most won't go outside of what's provided by the OS for some reason.

I don't know enough about other European languages from my "region" to make a more general standard (though I suspect it wouldn't be as simple as creating a single "eastern" one, I doubt e.g. Hungarian and Polish have so much in common) but it's a good idea, something that could be collaborated on.

That is unfortunate, EU could well present itself as an example of how things can be done right. Unfortunately incompetence and/or indifference, plus lack of IT talent willing to work for the public sector is also a thing in politics. It's an opportunity lost for sure.

Functional cookies are fine. Even analytics is fine if you're using your own (though said own analytics must also company with GDPR personal data retention rules).

What is not fine is giving away your users' personal data to pay for your analytics bill.

That's not true. You can use those cookies, you just need to explain them somewhere on the site. No opt in required.

I talked with our then national information law official (funny fact, same person is currently president of our country), rule of thumb is if you're not using your users' personal data to pay for other people's services (e.g Google analytics) or putting actual personal data in them, you're generally fine without the banner.

Further, if you're a small shop or individual acting in good faith and somehow still violated the law, they will issue a warning first so you can fix the issue. Only the blatant violations by people who should've known better will get a fine instantly (that is the practice here, anyway, I assumed that was the agreement between EU information officers)

My wife worked in one of the national standardization organizations. She was urgently called into her boss' office: "Please be on this meeting with me, I think they will try to bribe me if I'm alone". It only happened once while my wife worked there and it was right before the vote where Microsoft tried to fast track their office format.

Ridley Scott can be terrible with stories (or picks projects with poor stories), as long as individual scenes are great.

I've had trouble watching some of his work to their end, there was just so much WTF and random stuff.

His name on a project is for me a signal to carefully check some reviews before committing.

If readability was the only criteria perhaps YAML deserves to win. For some data XML is more readable, its complexity is the bigger problem.

People went all in with things like XSLT and namespaces, Java became the "language that transforms XML into stack traces" for no good reason and complex XML monstrosities were considered normal so when something simple came along it was a much needed breath of fresh air (we were even prepared to overlook its lack of comments). If it wasn't JSON it would have been something else, I'm sure.

Microsoft really doesn't want anyone to reliably copy their formats. Their standard is purposefully complicated and convoluted, it was almost rejected by ISO for this reason and it took heavy lobbying before it passed (I know of this personally as the ISO vote went through national ISO bodies).

I've worked with the Java implementation for writing Office files, the Apache POI. The internal package names for these classes are "hssf", "hwpf" and so on. It's not very obvious why until you Google it and, well, "hwpf" stands for "horrible word processor format", "hssf" is "horrible spreadsheet format" and so on. Implementing these things is often difficult for good reason, and sometimes for not so good reasons, but this is the first time I've encountered developers expressing such direct hostility towards what they were trying to implement.

Sure, Obsidian is not open source, so if that's where you draw the line, fine.

But otherwise, Obsidian can be synced quite nicely whichever way you want (I use SyncThing personally), and the Obsidian developers actively encourage you to do so, even if that means they don't get your subscription money.

As for extending its functionality, plugins are really powerful, approachable and in general a joy to write (I wrote one for my private use, using the JS framework I know and not the one suggested by Obsidian, and it still works wonderful, I use it almost every day).

I really love Obsidian, matching its feature set will be no easy task for an open source project.

I created a backend for a mobile game once. It was one of those typical mobile "get hooked" clones, with loot boxes, hard & soft currencies, the works. It was created to promote a sports club, one of the really big ones. I was mainly just programming other people's ideas (if I wanted to write a game it certainly wouldn't be something like that), but they needed help parameterizing loot chances and stuff like that, and I eagerly helped - I wrote mathematical formulas that fitted their descriptions & presented it to them and it was quite fun as opposed to the usual business software "data goes from A to B" boring crap.

At a certain point we had a tournament. The prize was surprisingly rich, the club gave something quite rare and unique. So people really played! We would watch on those fancy Grafana charts I programmed how people would play night and day. I wrote an SQL query that would track the habits of the top 3 players specifically and we would comment on the few breaks in their gaming spree: "food", "power nap", "ahah, toilet break!". For an entire week. They slept an hour here and an hour there, otherwise they played. I sure hope the poor bastard who won really got their memorabilia.

The game stopped soon after that, the club decided to ditch it (for whatever reason, my employer said it was club politics but who knows). I was a bit surprised at myself that I didn't feel any really strong emotions about it.. I mean sure, the worst of it was when they were going for a real prize, but anyhow I never had a true "Oh no what have I done" moment, even before I learned the app would be cancelled. Not an emotional one anyway, rationally I do realize that entire mechanics and the tournament you could win by staking all your free time is not great to say the least.

Pippi Longstocking. I was read that book so many times I knew it by heart. Her mix of courage, playfulness and of speaking truth to power, her refusal to follow society's rules where they made no sense, her innate sense of justice. I'd say that even today hers would be a personality I try to be.

The translation into our language was good and we had a copy that was almost a family relic, given to my father by his mother who would soon die much to young - it's the closest thing I have to an atheist family bible in a way. I was so disappointed when neither of my children were particularly interested when I read them that same book, but they have different personalities than me, so my theory is that the book wasn't so much of an influence on me as it was simply a story that jived really well with my character.

I used to hate Markdown (am partial to AsciiDoc myself) but it has "won" and I've just accepted it & use it every day. Not the first time an inferior product did so, and won't be the last. There are a few hills I'd die on, but Markdown alternatives are not one of them.