HNHacker News
TopNewBestAskShowJobs

jamesrr39

286 karma · joined August 31, 2020

submissionscomments
jamesrr39··on Telegram Ad Platform
I was one of those! It was so little money for the amount of use I was getting out of it. I wish the aquisition by facebook had encouraged facebook to go with such a model. I'd happily pay e.g. €10/year to get rid of all the ads and "Suggested for you" junk and have a news feed that is just my friends and groups I joined again.
jamesrr39··on Swedish government agencies say energy-intensive crypto mining should be banned
Hard to disagree, the amount of energy and CO2 emissions are staggering especially considering how little you can actually do with the end product. Their "We therefore call for" section seems reasonable as well. I like that the article is concise, clear, and that the authors understand the difference between proof of work and other mining methods.

Interesting that they call it crypto-assets and never refer to it as a crypto-currency (not disagreeing; you can't use it to buy very much in Sweden, just thought it was an interesting observation).

jamesrr39··on Bash functions are better than I thought
Yes, you are right, and statically is what I meant, thanks for the correction.
jamesrr39··on Bash functions are better than I thought
You are kind of right, I don't write much bash, but I do write some simple scripts that I can call quickly and easily (e.g. start this program with these args, write the log file here with the filename as the current date, etc). Although regarding "Then you must not be writing any bash at all"; I'm not sure how you could have deduced this!

With regards to `print_usage()` and `die()`, yes, I would reach for Python 3 then. The `argparse` module and `throw` are first-class members of the stdlib/language and are better and more standard between programs than if I threw together these myself (and with `throw` you get a stack trace, which is nice).

jamesrr39··on Bash functions are better than I thought
While I understand the sentiment, I'm not sure how bash could ever be as maintainable as a something written in e.g. Python (or even better, a strongly-typed language).

The thing with bash is, it's great for tying things together and quick bits and pieces, but it's not set up for writing maintainable code. Arrays, functions, even if statements comparisons can all be done in bash (as first-class features), but are just... easier in other languages. And then think about the refactoring, linting, testing tools available in bash vs other languages. And then on top of that, there's the issue of handling non-zero return codes from programs you call; do you `set -e`, and exit on any non-zero return code even if you wanted to continue, or not `set -e`, ignoring any errors as your script just continues.

Personally, when I feel I want to use a function (or array, or other similar, non-trivial thing), in bash, it's time to reach for another language.

Having said that, there are some nice programs written in bash. https://www.passwordstore.org/ being one that comes to mind.

jamesrr39··on DuckDB-Wasm: Efficient analytical SQL in the browser
I'm using duckdb for querying parquet files as well. It's an awesome tool, so nice to just "look into" parquet files with SQL.
jamesrr39··on Go: Don't Change the Libraries in 1.18
To be fair, Go has quite successfully (IMO) not implemented features, waited for the community to come up with several different implementations, and then implemented that feature in a way that they like, without fracturing the ecosystem. Examples that come to mind are `//go:embed` and dependency management via `go mod`.
jamesrr39··on Kyoto – Build Front End with Golang
I worked on a project using Revel, which uses Go templates. As the pages got more complex, we ran into the same problem. Eventually (most of) that app got replaced by a Go server and React front end.

My takeaway was that it seems to me like Go templates work well for simpler stuff; displaying simple content, debug info, etc. But as soon as you want to edit something you should start thinking about moving to a more appropriate stack.

jamesrr39··on Software Engineering Salaries in Europe vs. the United States
> no genuine software development companies in Europe. Software jobs there are mostly internal (enterprise) software development or customization, and not software product or service development

There are plenty of companies who make software product(s) as their main/only line of revenue in Europe. What there isn't, however, is FAANG style companies that are huge, very high profile companies (there are big technology companies, e.g. SAP, but none that I can think of that are so consumer-facing as FAANG).

> In Europe, you go, where? In another company that is not different from previous one.

Yeah, this simply isn't the case. Different companies are different to work for.

jamesrr39··on Better JSON in Postgres with PostgreSQL 14
I always thought it was cool that MySQL has different table engines. Postgres doesn't have this (unless I missed something). Sure, there are products based on Postgres that have this, but vanilla Postgres itself doesn't have this option.
jamesrr39··on Do countries get the list of every passenger that's transiting their airspace?
Also in Europe, but with a completely different experience; it is (well, was, pre-covid) easy to move between EU states.

Within the Schengen Zone it's only the check at the gate to check your ID matches your boarding pass (so no check at "immigration"), and to/from the UK the electronic gates have really sped things up (compared to the old days).

YMMV but I find I'm rarely waiting more than a few minutes at the immigration checks (to/from UK) nowadays.

jamesrr39··on Chrome extension recommends local businesses while shopping on Amazon or eBay
I find even the larger businesses have much poorer shopping experiences than Amazon. I wanted to buy a book last year. I found it on a major, non-amazon bookseller's website. However, no "Look-inside", not even a description, no reviews, no real information about it aside from the title and [very short] description. I ended up going to Amazon to find all this info and having a look at the "Look inside" first few pages, and then buying it from the other retailer. It worked, but not exactly great, people going to a competitor's website to research the product.

It sucks, because I want to support businesses other than Amazon and the like, ones that pay corporation tax and don't abuse their market position, but the other stores really have to raise their game. For better or worse, Amazon has definitely been a game-changer in retail and it's not enough to trade like it's the year 2000 any more. You have to be innovative and see software as a way to improve your offering.

jamesrr39··on EU says Apple’s App Store breaks competition rules after Spotify complaint
maybe, who knows. GDPR for example got more companies making "download my data" options, even for users outside the EU.
jamesrr39··on A new way to make maps with OpenStreetMap
Really interesting project/product! It's really nice to see new ways of rendering OSM data, and alternative map services.

I am developing another way to run your own map server (without mapnik!) from a low-end computer (https://github.com/jamesrr39/ownmap-app in case you're interested), but a little bit different to you in that I'm currently focusing on rendering raster tiles. I'm really happy I saw this thread, however, I hadn't heard of the OSM Express, MBTiles or PMTiles formats before and was/am rolling my own format, so it's really interesting looking at some ideas from these.

Thanks again for sharing your project!

jamesrr39··on Ask HN: I bought Voltaren at the chemist, now Google shows me ads for it. Why?
Upvoted, this is a great comment. Thanks for finding the words to sum it up so concisely.
jamesrr39··on Missing hiker found after man using computer at home pinpoints his location
> 25MB ad-filled app

I really started noticing this since starting to use F-Droid, for a lot of simple apps in the Google Play Store, you can get the same functionality, with zero ads and a much smaller bundle size in F-Droid.

For example this app from F-Droid, which shows your GPS location & coordinates, weighs in at _48KiB_! https://f-droid.org/en/packages/com.borneq.heregpslocation/ (disclaimer: I have not tried the app, it was just the first result that came up from a search).

It's pretty cool to see that yes, it's perfectly possible to build lightweight Android apps; and it's really a question of what you put in the bundle.

jamesrr39··on The Vivaldi browser will not support Google’s FLoC
To be fair, Edge is also "pushed onto" people, being a default install in Windows.

Not saying it's right how Chrome is pushed though. IMO, ideally there would be regulation requiring Windows to offer a fair choice of browser downloads (none preinstalled) when you set up the computer, and google wouldn't pull it's "faster, better browser" thing when visiting their search site.

jamesrr39··on Facebook does not plan to notify half-billion users affected by data leak
This should be fun. Looking forward to seeing the size of the GDPR fine!
jamesrr39··on Cycling is more important than electric cars for reaching net-zero cities
Cycling is very popular for commuting here in Sweden...
jamesrr39··on Fintech Comes to America at Last
FWIW, Visa and MasterCard have a pretty substantial market share in europe as well (in most EU countries, I think it would be fair to call it a duopoly). I'm not sure why europe switched to chip and pin so much earlier than the US, my guess would be on regulation though.
jamesrr39··on Telegram is booming but needs advertisers and $700M soon
I'm not sure about this, if anything there seems to have been a few services recently (e.g. DuckDuckGo, Qwant) that are supported by ads (presumably with metrics on ad performance for advertisers) but without following you around the internet. They seem to be doing ok as businesses, and it seems a reasonable compromise to me.

I'm curious about how Telegram will decide what ads to show, how heavily it will try and personalize them; will the ads be relevant to the channel you are in or follow you around Telegram.

FWIW, personally, I like the idea of a choice of ads or paid subscription best.

jamesrr39··on I want a computer that I own
With regards to changing parts on a phone, ifixit made a comparison of different phones and how easy they are to change parts for. Something to consider taking a look at when buying a new phone. https://www.ifixit.com/smartphone-repairability
jamesrr39··on Ubuntu Makes Flutter ‘Default Choice’ for Future Desktop Apps
Could be. Maybe they learnt from Ubuntu Mobile, where they wanted app developers to write QT apps, instead of having support for e.g. apk files (the payoff for the time invested in writing a separate app for Ubuntu phones was never going to be there, unfortunately).

I think it's a positive that they're moving to a more common platform that is easier for developers to produce a build for. Good luck to them.

jamesrr39··on Europe Does Well in Innovation
> for allegedly being "undemocratic",

Isn't the issue in Poland that the judiciary is becoming less independent from the government? Separation of powers between government, parliament & justice system seems to be major feature in a democracy. So if the judiciary is indeed becoming less independent, isn't that a sign of decreasing democracy in a country?

I'm not familiar with the "spanish repression" you refer so I won't comment on that, but Navalny's detention... wasn't he detained because of he violated rules in his probation period[1]... by not being present when he was in a coma... having being poisoned by nerve agent!? I think it was quite fair to criticize that.

1: https://www.bbc.com/news/world-europe-55694598

jamesrr39··on Ask HN: Do you think Agile/Scrum is beneficial for software delivery?
I found this really depends how "scrum" is implemented. Personally as a developer I like several features of scrum:

- regular retrospectives, for improving the process

- regular demos, for having a continuous process showing value and that we are aligned with the companies goals (anybody who thinks the development team have done nothing for the last x months can simply be pointed to the demo recordings page on the intranet)

- some kind of short regular meeting throughout the sprint to update the PO ("daily standup", but does not necessarily need to be daily, or standing up), who can reset expectations, as opposed to announcing at the last minute it won't be ready.

- and a regular planning session with the product owner to work with them to figure out how to bring value to the business quicker, push back on things that aren't that valuable, etc.

But of course this really depends on how the process is implemented and the environment you're in. If retrospectives and demos are often cancelled because "we need to ship this feature to this customer now!", if the daily standups become all about "why is this not done yet, how much longer will it take" rather than an honest peer-to-peer "are we on track for delivering this, what does the PO need to find out/inform stakeholders of/what blockers are there" and the PO doesn't include development staff in the backlog refinement and just dumps tasks on the development team, then yes, you will have an experience that sucks.

So as a developer, I like doing scrum when it is implemented in a way that the dev team and PO are viewed as peers and we don't skip any of the meetings. And I hate doing scrum when it's essentially just being given a load of tasks that I have no say over, no retrospective to improve things, etc.

YMMV (depending greatly on the setup/environment you are working in, I think)

(edit for formatting)

jamesrr39··on A reminder that you should double-check the licenses for software you use
This reminds me of the original JSON parse/stringify license, which stated

> The Software shall be used for Good, not Evil

This sounds all good and well, and in theory is great, but in practice how does this work? Who defines what is "Good", and what is "Evil".

Admittedly this license is much more targeted but there are a few ambiguous ones:

> sexually suggestive or explicit images, artwork, or any other media

the understanding of what is explicit varies wildly between different cultures across the world; which understanding is applicable here? Can an art gallery/auction house that sells lots of portraits use this software? Does it depend where the art gallery is located geographically (and what if it has many sites around the world)?

> mass surveillance and/or stealing of private information

What counts as surveillance? For example, can I use my software to track where you as a user go? I guess not. But then what if I then say it's for a "rent a bike" service, that has a partnership with the local city, which uses that data to figure out where to build cyclepaths?

I'm not saying that the objectives the license is trying to achieve aren't worthy goals (and perhaps the example use cases I gave have nothing to do with the project). I just think that the practical situation ends up being more complicated in the end than writers of the license intend.

jamesrr39··on Ask HN: Do you think Agile/Scrum is beneficial for software delivery?
Yes, I agree. But I'm not sure what you do about that though. Stronger "dictacts" from an international "scrum committee" putting out material telling you what is "correct" scrum and what is not?
jamesrr39··on Ask HN: Do you think Agile/Scrum is beneficial for software delivery?
Upvoted (although I'm not sure I agree with the last point, but the top 2 are definitely spot-on)

The agile manifesto is tiny and a scrum guide like this one: https://scrumguides.org/scrum-guide.html is readable in a couple of hours. But the version of "scrum" forced on many people is a far cry from that.

jamesrr39··on EU blocks export of AstraZeneca Covid-19 vaccines to Australia
I'm not sure if you read my comment? But like I said, on the national level (for example France in the link you posted) I remember hearing some negative comments, but on the EU commission level (the institution that sits in Brussels), I don't remember hearing anything explicitly negative.

Happy to be proved wrong though.

jamesrr39··on EU blocks export of AstraZeneca Covid-19 vaccines to Australia
Sorry, I didn't mean to be offensive with the "weasel words" comment, simply that is the term for this kind of "much quoted figure" kind of text (https://en.wikipedia.org/wiki/Weasel_word). Thanks for providing a link to the EMA press release though.

On the note of that press release, the title of the page is "EMA recommends COVID-19 Vaccine AstraZeneca for authorisation in the EU", which I wouldn't consider anti-AZ, and reading the text it states in the same paragraph that it's talking about "reduction in the number of symptomatic COVID-19 cases in people given the vaccine".

Anyway, I didn't mean to offend, just calling out what I saw, others may have a different opinion to me of course.

← PreviousPage 4 of 5Next →