Better HN
topnewbestaskshowjobs
Log inSign up

tryfinally

181 karma · joined Oct 24, 2020 (6y ago) · 55 submissions

Submissions

comment 3y ago · link · parent

I use this AutoHotkey oneliner. WIN+Space pins/unpins the current window.

    #SPACE:: Winset, Alwaysontop, , A
(Save to set-always-on-top.ahk, and create a shortcut to the script in %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. Optionally add #NoTrayIcon at the top of the script to get rid of the tray icon.)

comment 3y ago · link · parent

It sounds like a good idea to preemptively disable Windows Error Reporting. I usually do it (and kill all other telemetry I can find) on all Windows machines I set up.

Microsoft’s going to need to try harder than this to convince me to keep it enabled.

comment 3y ago · link · parent

Performance is a feature. For certain use cases, it’s a top priority. It’s OK to let users know that your library is designed with performance in mind.

It’s also OK to write libraries.

Some people really want to write mean comments, I guess.

comment 3y ago · link · parent

Croatia is immensely beautiful! My plans to see the world have been on hold, as I find myself visiting the same country again each summer.

comment 3y ago · link · parent

I, for one, wouldn't ever use a service that requires login via social media or some other platform, especially FB/Google. This isn’t usually a problem, though - I don’t think I’ve ever encountered an app that would impose this. (Maybe apart from services that are specifically built on top of the app that they’re authenticating through.)

comment 3y ago · link · parent

I had a little trouble using Bitwarden a while ago (user error) and the (free tier) customer support was very responsive and helpful as well.

comment 3y ago · link · parent

Not many people are motivated to take optimization this far in the Java world.

On the .NET side, the language is more suitable because you can define your own value types (coming soon in Java AFAIK), and there is a lot of people using C# for game dev which is a big use case for GC optimization.

Unity has been integrating unmanaged allocators in their engine, which lets developers skip the GC much more easily (without having to manually preallocate and reuse memory, which isn’t anyone’s favorite workflow, and doesn’t save you much compared to a fast native allocator). I’ve also seen a couple of roughly equivalent projects, eg. Smmalloc-CSharp, github.com/alaisi/nalloc.

comment 3y ago · link · parent

I thought the same. Amusingly, the poster’s other comment is written in a much different style, so it looks like our detectors are well-calibrated.

comment 3y ago · link · parent

Precisely. TFA misses this point completely: "A better remedy for eye strain would be to enable night light on your operating system, which will reduce the your screen’s blue light output."

I simply use both, checkmate.

comment 4y ago · link · parent

Surely, on average, it's 3 spaces of indentation. Feels great to finally be able to derive objective answers to these ages-old conundrums!

comment 4y ago · link · parent

Note that your repo stays usable even while GitHub is down, and your team can sync their work afterwards. Or if you prefer, you can switch to a different remote without much trouble.

On a different note, I do host my own Git server, but between maintainance downtime, power outages and ISP issues, my availability isn't nearly as good as GitHub's.

comment 4y ago · link · parent

This seems like overkill, and unless it has a Shadowplay-like mode where you're persistently recording and can just dump the last few minutes to the hard drive, I don't think I'd even know (or remember) when to hit record. (So actually, maybe just use Shadowplay instead?)

One other alternative is Idea/Rider's Local History feature which is basically a parallel repo of your entire project that automatically saves a snapshot of your changes every time you save a file. Super useful for all kinds of backtracking, and you don't even need to remember to use it until you actually need it.

comment 4y ago · link · parent

When I looked into low-budget mailing list management, I ended up spinning up a ListMonk instance. (It's free/open source.) But you still end up needing to connect it to a mailing backend like AWS SES or similar. If you want to avoid SES, I'm not sure what better alternatives there are, but I'd like to know too! (I have extremely low mailing volume and would like to prioritize deliverability)

https://listmonk.app/

comment 4y ago · link · parent

On a similar note, I recall reading somewhere on the Unity blog that adding ads to a game supposedly boosts retention. I personally refuse to believe that the average mobile player's brain really is that rotten.

comment 4y ago · link · parent

I find it endlessly impressive how people can hold two perfectly opposing viewpoints and never even notice any contradiction. Good reminder to do an occasional review of ideas one considers obvious.

comment 4y ago · link · parent

Layout shift feels fairly terrible when you're navigating to an element that is at the bottom of the page (via #id) or simply refreshing the page. There is literally nothing more annoying than clicking the wrong link because the layout shifted under the cursor at just the wrong moment. CLS is also known as "jank" for a reason.

comment 4y ago · link · parent

I fondly remember waiting for new Android releases years ago. I'd jump to the landing page, get excited for new features, plan ahead on getting a new phone. I never noticed when, but at some point this stopped.

My old phone works just fine (...for an Android, that is), and I don't even mind the cracked backplate. The battery capacity keeps decreasing year after year, but even that feels like a feature in disguise. It won't get an upgrade to the new Android (by design, I presume), but I don't care. Have I gotten old? Is it me? Or is it you?

comment 4y ago · link · parent

I considered them a while ago, but Google has become a bit infamous for terrible/nonexistent customer service (even for paid customers), as well as random indiscriminate suspensions. Not a great combo. Don't wanna try my luck.

(But then again, I ended up getting a .dev domain at a different registrar, so I guess I'm screwed either way)

comment 4y ago · link · parent

This has been a source of some anxiety for me. C# is such a comfortable place to be in... but I do occasionally feel like I'm missing out by not going out of my comfort zone, towards low-level systems programming. (It is arguable whether the language "more powerful" than Blub is typically lower level or higher level.)

These days I worry about it less, primarily because C# let's you "go lower" when needed, and it feels like the concepts translate well enough. (But I still do plan on investing some time in both C and Rust... soon.)

50.

Detours: Redirecting C# Methods at Runtime(tryfinally.dev ↗)

2 points · by tryfinally · 4y ago · discuss

comment 4y ago · link · parent

Subtitles vs dubs/voiceovers are largely a cultural thing. I envy countries where movies/tv shows are pretty much exclusively subtitled, for example Sweden. Coincidentally, Swedes seem to be really fluent in English on average.

It's a win-win: you absorb languages for free as a child, and you later get to enjoy art in its original unmutilated form.

comment 4y ago · link · parent

Oh, nice! Neuecc's posts and packages are absolutely unparalleled. Worth checking out if you work with Unity and/or C#.

https://github.com/neuecc/

comment 4y ago · link · parent

Assuming AVX-512 actually works well (haven't had the opportunity to use it myself), it could be very useful in high-end gamedev. Data-oriented programming is popular there, which makes it much easier to optimize data transformations w/ SIMD. Good compilers can even do some auto-vectorization (it's a nice boost with no additional programmer effort but you can't rely on it much). GPUs tend to be already fully loaded by the intensive rendering workload, so there is a large incentive to squeeze as much as you can out of the CPU.
12