HNHacker News
TopNewBestAskShowJobs

accatyyc

352 karma · joined February 22, 2013

[ my public key: https://keybase.io/accatyyc; my proof: https://keybase.io/accatyyc/sigs/kQJg3CVxSJARJSbafCH1MHEuOtHNP9yqatPDjLsmxRc ]
submissionscomments
accatyyc··on Let's Destroy C
How about just

    puts(“Hello, World!”)
which has been in C since the dawn of time?
accatyyc··on iOS 13's Music App Sucks
How do you start the radio? If you start it from a song of the genre you want to listen to now, or a playlist containing mostly that genre, it won't mix in random stuff you've liked before. I get very nice mood/genre radios just by starting them from some song I liked currently.
accatyyc··on Apple Developer Documentation Is Missing
In Objective-C (and some other languages with ternary operators) the same can be written like this:

    int a = b ?: c ?: 0
accatyyc··on A Useful Thing in Bash
Same here, probably something added by oh-my-zsh
accatyyc··on KDE is adopting GitLab
For me, using pure git is fine when working on solo projects. The benefits of such services is when there are many developers in the same project. Gives a good overview of issue reports, what commits are linked to what issues, easy "pull request" overviews/quick reviews without checking out branches etc. It's more about the social and less about the source control for me
accatyyc··on Show HN: Ieddit – A minimalist, Reddit-like site with anonymous posts/comments
Personally I think you should skip the /r/ or /i/ part of the paths. Always bothered me that reddit has it - communities are central to these sites so IMO they should be the first part of the path
accatyyc··on Dear Email Industry, We’ve Got a GDPR Problem
Then email servers would have to download billions of images of which 99% the corresponding email won't even be opened
accatyyc··on Donald Trump Wants to Purchase Greenland from Denmark
Turns out he was...
accatyyc··on The Most Dangerous Writing App
It feels like a programmer thing, since unsaved files won't be compiled when you run the program. At least that's where I got the habit from
accatyyc··on Assholes: A Probing Examination
Why would informing people about the importance of testing make you look like an asshole? You could do it in a polite and helpful way, instead of being an asshole about it.
accatyyc··on Reducing notification permission prompt spam in Firefox
I’d say Mozilla is right in their wording. Your point here is also included in that - if websites showed the push dialog responsibly, it would be for example in the website settings after the user checked a box called “send me push!”. Many good web services do it this way, and if done this way I suspect the accept rate is closer to 100%.

Some people might want push from news pages, but 97%+ don’t, so it makes no sense to request it immediately.

They probably even lose subscribers. Someone who read some content and liked it, decided that they want push may have already opted out because they didn’t know the site yet.

accatyyc··on What Finally Killed AirPower
Thanks. Updated my post to say smartphones - I have no idea about what EV batteries are exposed to.
accatyyc··on What Finally Killed AirPower
Thanks for the links!

Also, I want to add that what I wrote above is only regarding smartphones. I don’t know how much stress/extra heat etc that EV batteries are subject to, but I imagine they drain/charge at more intense rates relatively.

accatyyc··on What Finally Killed AirPower
Yeah, but a battery gets hot when charging fast. Keeping it connected at 100%, the phone stays cool in my experience. And charging often makes the window where it generates heat from charging smaller
accatyyc··on What Finally Killed AirPower
Constantly charging causes fewer power cycles and extends your battery life.
accatyyc··on What Finally Killed AirPower
The things that kill smartphone batteries today are age and power cycles. It doesn’t matter if you charge from 0% to 100% in one go or from 90% to 100% ten times. Both add up to one power cycle.

To keep your battery fresh for as long as possible, always keep the phone connected to a charger. No battery cycles. It will get worse after a few years anyway.

accatyyc··on Swift UTF-8 String
That's just a convenience thing. I've worked in Xcode for nearly 10 years and I never use that feature. Good feature for teaching though. But if you hate it, just don't use it.
accatyyc··on How to live without Google (2017)
Ads doesn’t mean they have to track you. I assume (and it seems like) DDG targets their ads based on your search query and not personal information, and afaik they are very open about this.
accatyyc··on Wolfenstein: Ray Tracing on Using WebGL1
This is very cool. I really like the style that is the result of retro graphics and then raytracing added on top. I hope it will become a common style in games!
accatyyc··on Sublime Text 3.2 Released
Hehe, thanks for the laugh! Yeah, I can totally relate. In fact, to become effective in Emacs I had to start by reading a book (Mastering Emacs, can totally recommend if you ever decide to try again!) and then spending _a lot_ of time fighting configurations. Even now that I’m very comfortable in Emacs I occasionally spend hours to just get a package working correctly (recently it was lsp-mode, which looks like the solution to many problems with Emacs, but I could never get it to work).

So yeah, I can’t really tell you it will be worth it productivity wise to learn Emacs, but for me it has gotten to the point that configuring it is a lot of fun and sort of replaces hobby programming projects for me.

accatyyc··on Sublime Text 3.2 Released
Just looking at the rest of the comments here is one example. And almost every time something about Sublime is posted on HN
accatyyc··on Sublime Text 3.2 Released
It seems like the general opinion that Sublime Text outclasses vim when it comes to opening large files though
accatyyc··on Sublime Text 3.2 Released
Now now, I use Emacs myself but I wouldn’t call its UX “refined”. It’s loads of stuff piled on top of eachother and many built-in packages to do the same thing (since everything had to be backwards compatible).

Again, I love emacs and I’m very effective in it with my own configuration, but it’s practically unusable by default. I’ve never seen a serious emacs user without a heavy customised emacs. And I’ve never seen another emacs user whose config I would be nearly able to use :D

I can totally see why people like editors with sane defaults.

accatyyc··on FastMail loses customers, faces calls to move over anti-encryption laws
Why? Fastmail always complied with warrants to get your data, so nothing changes because if this law. If you want to hide something, encrypt your e-mails before they reach Fastmail (and do the same regardless of provider you use, why trust anyone?)
accatyyc··on Bookworm: A Simple, Focused eBook Reader
FWIW iTunes is still great for this.
accatyyc··on Show HN: DeskGap – Like Electron, but uses the system webview
Both code memory and data memory will be shared by any modern OS. The code memory will of course be shared since it's the same, and the data memory will be shared until modified. Then that memory page will be copied for the process that changed it (check out copy-on-write).

And then there's disk memory, which isn't as important IMO but still it will of course be smaller since you don't ship the whole browser stack for each application.

accatyyc··on Show HN: DeskGap – Like Electron, but uses the system webview
Of course they can. This is what OS engineers have spent decades thinking about and optimizing. And then stuff like Electron appears and circumvents all those optimizations. Which is the main reason I dislike it.
accatyyc··on Show HN: DeskGap – Like Electron, but uses the system webview
If you’re concerned about RAM, using this approach makes a lot of sense. Every process of your system browser running, (different tabs, different apps with web view), the OS can share memory between since it’s the same binary. With electron, each app bundles their own browser and memory cannot be shared since it’s different binaries.
accatyyc··on Show HN: DeskGap – Like Electron, but uses the system webview
Because if it uses the same browser binary as your other web apps (tabs or other DeskGap apps), the OS can share memory between them. Not possible with electron since every app bundles its own Chromium binary.
accatyyc··on Show HN: Musish – Web client for Apple Music
Most people may not buy specific AirPlay speakers, but for example if you have an AppleTV or AirPort-express they can be used for this as well. I use it a lot and I'm glad iTunes can find them!
Page 1 of 4Next →