Readit News logoReadit News
robert_dipaolo commented on Build desktop applications using Go and Web Technologies   github.com/wailsapp/wails... · Posted by u/selvan
conceptme · 25 days ago
because there is no proper UI library that does cross platform as well as the web
robert_dipaolo · 25 days ago
What about QT? I've used that in the past and it's really good for native apps.
robert_dipaolo commented on But how to get to that European cloud?   berthub.eu/articles/posts... · Posted by u/zdw
robert_dipaolo · 9 months ago
Is OVH not a European cloud provider? There are also smaller players like Hetzner.
robert_dipaolo commented on What makes code hard to read: Visual patterns of complexity (2023)   seeinglogic.com/posts/vis... · Posted by u/homarp
dijksterhuis · 9 months ago
> [than] having a function which calls out to lots of other functions and I'm jumping around the code base, back and forward.

i agree with longer functions and less jumping around, but there's also some nuance i find. I sometimes find converting a complicated multi-line condition into something like the below is much easier for me to read, so long as the function is named in a clear way and the function definition is just above the big function it gets called by (never in a different file!)

    def is_something_valid(something, foo, bar):
        return something > 0 and something != foo and something > bar

    if is_something_valid(something, foo, bar):
it's like a convenience reading shortcut so i don't have to parse the logic in my head if i don't want to. also makes the condition nice and easy to test.

then again, can also do it the grug-brained way

    gt_zero = something > 0 
    ne_foo something != foo
    gt_bar something > bar

    if gt_zero and ne_foo and gt_bar:

robert_dipaolo · 9 months ago
I mostly agree, but for short one liners and where there will be no reuse elsewhere, instead of a function I prefer;

  something_is_valid = something > 0 and something != foo and something > bar
  if something_is_valid:
    # ....
It achieves the same thing without needing to scroll.

robert_dipaolo commented on At least 20 dead as walkie-talkies explode in Lebanon   independent.co.uk/news/wo... · Posted by u/iamflimflam1
bamboozled · a year ago
Are we supposed to feel sorry for terrorists who's lives are spent working out how to murder and blow people up, then when they get blown up with minimal collateral damage caused, what?

Honestly, I'm surprised at how great these people are at invoking emotional responses in their favor. It's incredible. They're certainly smashing the information war.

When the 11 kids got actually blown up by a missile strike while attending a soccer game in Israel, where was all the sympathy then? Do people even know about this?

https://www.timesofisrael.com/massive-tragedy-kids-killed-in...

robert_dipaolo · a year ago
I think your first point could plausibly be made by either side, not just about this specific incident. I don't think killing people is ever a justifiable solution to any issue and almost always makes things worse.

I think, no matter who the perpetrator is, it's undeniable that exploding electrical items on this scale, is an act of terror and aggression.

robert_dipaolo commented on Spotify will end service in Uruguay due to bill requiring fair pay for artists   mixmag.net/read/spotify-e... · Posted by u/pseudolus
imgabe · 2 years ago
People aren’t going to pay more so it is in fact not worth more.

I know every artist thinks their unique vision is infinitely priceless but things are actually worth what people are willing to pay for them. If you can’t convince people to hand over money for it, then it’s not worth that much.

robert_dipaolo · 2 years ago
Exactly, things are only worth what people are willing to pay for them and for a lot of people music is relatively low in the pecking order. I pay for spotify but would leave it they raise the prices.
robert_dipaolo commented on Spotify will end service in Uruguay due to bill requiring fair pay for artists   mixmag.net/read/spotify-e... · Posted by u/pseudolus
beeboobaa · 2 years ago
Nonsense, if they divided my monthly payment by hours listened they'd get about 1-2 CDs out of that every month, more than I have ever bought in my life. And they don't even have to spend any money to burn and distribute them. So they're already making more money than they would otherwise. The only issue is that the money isn't going to those who actually deserve it. Don't encourage these greedy jackals to charge even more.
robert_dipaolo · 2 years ago
They do have to spend money to distribute them, servers, bandwidth, software dev, etc, aren't free.

However I agree that they shouldn't raise prices.

robert_dipaolo commented on Home Assistant 2023.11   home-assistant.io/blog/20... · Posted by u/looperhacks
pta2002 · 2 years ago
This is false. While you can set a lot of things through yaml, some like setting the MQTT broker have to be done via the UI.
robert_dipaolo · 2 years ago
Ah interesting, I didn't realise that! I often drop into the YAML to configure Automations, etc. I'm not using MQTT at the moment.
robert_dipaolo commented on Home Assistant 2023.11   home-assistant.io/blog/20... · Posted by u/looperhacks
lvncelot · 2 years ago
I've tried getting into Home Assistant a few years ago, but it was right at the switch from declarative yaml files for (almost) everything to most of the stuff being set up via the UI. I would love to give Home Assistant another shot - is that still the case, or is there some way to set up the Home Assistant config via code?
robert_dipaolo · 2 years ago
All the config can be done via YAML still. The UIs are just another option that makes it easier, as far as I can tell the UIs just build the YAML.
robert_dipaolo commented on Show HN: Java REST without annotations, DI nor reactive streams   github.com/MartinGeisse/g... · Posted by u/moring
Patrol8394 · 3 years ago
Annotations are a great way to get rid of boilerplate and noisy code. For instance, I find Spring @Transactional a much more effective, less bug prone and productive way of dealing with db tx vs having to manual code and handle exceptions, rollback, connections etc .. Same goes with JAX-RS.

I would choose annotations over having to code all that manually any day.

You can easily test and debug. Yes, it will cost some time to understand how aspects work and how it is all wired up, but it is worth learning.

robert_dipaolo · 3 years ago
The problem with an annotation for that is it causes people to keep transactions open for too long. It's best practice in DB programming to keep tx's open for as short a time as possible. The longer it's open the more scope for deadlocks and contention. So we never use it in our prod code. We've put all the boiler plate code for creating the transaction, error handling, retires, etc in a helper function that takes a lambda as a param (that being the code to run in the tx). That way you can only wrap the code that needs to be in the tx, without copying and pasting all the boiler plate everywhere.
robert_dipaolo commented on Apple’s 2½ year old iPhone 12 is 6% faster than the new Samsung Galaxy S23 Ultra   comparedial.com/news/appl... · Posted by u/adrianvincent
byee · 3 years ago
I still use an iPhone X (with new battery from last year). The Pixel 2 was released around the same time and is e-waste.

Almost all apps run well with the exception of Google's, which have consistently gotten worse. The camera still starts up quickly, and the fact that most apps are still performant compared to an iPhone 13 is impressive.

Google Docs is unusable - even small documents can't be opened, and the app hangs when opened more than half the time. Google Maps keeps adding misc features which adds significantly to startup time and responsiveness.

robert_dipaolo · 3 years ago
The Pixel 2 had a launch price of $649 vs the iPhoneX at $999, so ~35% more. That's not really a fair comparison, I imagine if you compare to a similarly priced android phone released at the same time, it'd be a closer result.

Where apple does do well is supporting devices for much longer with software and security updates. So running older android phones is prob not a good ideas from a security perspective.

u/robert_dipaolo

KarmaCake day83November 30, 2016View Original