HN user

accatyyc

352 karma

[ my public key: https://keybase.io/accatyyc; my proof: https://keybase.io/accatyyc/sigs/kQJg3CVxSJARJSbafCH1MHEuOtHNP9yqatPDjLsmxRc ]

Posts5
Comments114
View on HN
Let's Destroy C 6 years ago

How about just

    puts(“Hello, World!”)
which has been in C since the dawn of time?

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.

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

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

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.

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.

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.

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

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.

Swift UTF-8 String 7 years ago

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.

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.

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.

Just looking at the rest of the comments here is one example. And almost every time something about Sublime is posted on HN

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.

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.

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.