HN user

sverrirs

148 karma
Posts41
Comments21
View on HN
github.com 9y ago

Private VSIX Extension Gallery for Visual Studio

sverrirs
1pts0
labs.coruscantconsulting.co.uk 9y ago

Need some extra motivation? Try this visualisation of your life up to this point

sverrirs
2pts0
blog.sverrirs.com 9y ago

Show HN: New Pagination Gem for Jekyll 3

sverrirs
2pts0
blog.sverrirs.com 9y ago

Google Analytics for Your PHP APIs

sverrirs
2pts0
blog.sverrirs.com 9y ago

Writing a webserver in Python in 10 seconds

sverrirs
3pts0
blog.sverrirs.com 9y ago

Exposing your console app in Windows Explorer's context menu

sverrirs
1pts0
mapstogpx.com 9y ago

Why walk? Use Google Directions to help you test location aware mobile apps

sverrirs
1pts0
blog.sverrirs.com 9y ago

How to stream mp4 videos on the Xbox and the Playstation browsers

sverrirs
1pts0
labs.sverrirs.com 9y ago

How to run Jekyll 3 on Windows

sverrirs
3pts0
blog.sverrirs.com 10y ago

Your timeout variable is terrible and you should feel bad

sverrirs
3pts0
mapstogpx.com 10y ago

Too tired to run around playing Pokémon Go? Go on cheat a bit and play from home

sverrirs
2pts0
blog.sverrirs.com 10y ago

A Complete Guide to Building a Bookmarklet App in JavaScript

sverrirs
14pts0
blog.sverrirs.com 10y ago

Automatic WebP Image Generator for Static Websites

sverrirs
1pts0
mapstogpx.com 10y ago

Show HN: Save Your Google Maps Directions to Your GPS or SatNav

sverrirs
2pts0
github.com 10y ago

WebP Generator for Jekyll Static Sites

sverrirs
1pts0
blog.sverrirs.com 10y ago

WebP Image Generator for Jekyll Sites

sverrirs
1pts0
labs.coruscantconsulting.co.uk 10y ago

Google Maps Directions to GPX Data for SatNav and GPS Devices

sverrirs
2pts0
blog.sverrirs.com 10y ago

Thoughts on Timeouts. Wait, uh? We’re waiting how long?

sverrirs
3pts0
blog.sverrirs.com 10y ago

Control your Orange Livebox internet router using C#

sverrirs
1pts0
blog.sverrirs.com 10y ago

Solving .NET WebRequest's excessive client caching issues

sverrirs
2pts0
blog.sverrirs.com 10y ago

Hacking the Corsair K95 Mechanical Keyboard

sverrirs
2pts0
blog.sverrirs.com 10y ago

Windows app to get you Let's Encrypt SSL Certificate in less than 4min

sverrirs
51pts12
blog.sverrirs.com 10y ago

Show HN: How to add instant auto-complete search box for your Jekyll static site

sverrirs
4pts0
blog.sverrirs.com 10y ago

How to create custom Liquid tags in Jekyll

sverrirs
1pts0
blog.sverrirs.com 10y ago

Reverse Engineering the K95 Vengeance USB Keyboard

sverrirs
1pts0
blog.sverrirs.com 10y ago

Show HN: Windows app to automate applying for Let's Encrypt certificates

sverrirs
3pts0
blog.sverrirs.com 10y ago

How to get a free SSL certificate in 4min (on Windows)

sverrirs
2pts2
www.thedataincubator.com 10y ago

The Free Data Science Fellowship (New York City – Washington D.C. – Bay Area)

sverrirs
1pts0
labs.coruscantconsulting.co.uk 10y ago

Interactive calendar for your 4680 weeks of life on this earth. Neat

sverrirs
3pts1
hardkjarni.blogspot.com 10y ago

Windows CoreAudio API in C#

sverrirs
65pts29

Agree on the cognitive overhead.

People will and are arguing that "it is kernel code, it should be complicated" but I really think this is backwards. Because it is low level and debugging is really cognitively intense and difficult at this level the code should be even clearer and easier to understand.

On modern CPU architectures, the XOR technique can be slower than using a temporary variable to do swapping. One reason is that modern CPUs strive to execute instructions in parallel via instruction pipelines. In the XOR technique, the inputs to each operation depend on the results of the previous operation, so they must be executed in strictly sequential order, negating any benefits of instruction-level parallelism.[3]

https://en.wikipedia.org/wiki/XOR_swap_algorithm#Reasons_for...

I don't know why I'm even replying, this will get so much hate here, oh well...

1. Just because things aren't done "the way you would do them" doesn't mean they're "bad" or "wrong".

2. If you're not on a solo project, I've found writing correct but less "clever" code to help shorten ramp-up time for new devs and be more beneficial to future maintainability of the code-base and system.

TL;DR; Swapping values by XOR'ing may look elite and clever but hurts you in the long run.

Ah good mention, didn't know about this tool. Looks very sleek!

I wanted to avoid building a solution to do the whole communication as I was pretty happy with the website functionality. This tool is mostly to enable you to use the website on windows and to automate a lot of the annoying Windows stuff while still retaining the option to use the website or the Let's Encrypt client in a pinch :)

Thanks for the kind words :)

I had thought about integrating the whole thing into the app but I wanted to keep it nice and simple (it is only a few hours of work actually).

Also it kind of felt wrong to deprive the gethttpsforfree.com of their traffic as I think their tool is really nice and deserves attention :)

Exactly this. There is a fine line with regions and they have their uses.

As an example, I was working on a project a while back that had StyleCop rules set up so stringently that nothing could live in the same file, no enums, structs, extension methods, nada. The amount of files you had to create when adding new functionality (even a minor one) was mind boggling...

I admit that sometimes I find them handy to use when dealing with large complex files. Grouping together member variables, events, statics can help with reducing the initial noise when opening the file (these tend to be at the top of the class usually).

But they indeed depend on the team's total commitment on keeping them organized and up-to-date.

Thanks for the kind words :) Yeah regions are a strange beast in C#. In some cases I find them handy, like in this instance where I wanted the COM interfaces embedded in the main class file. Also to clearly separate which functions belong to the manipulation of master vs individual program audio levels.

The region paradigm is very often misused and is one of those things that starts off nice and then degrades as time goes on (meaning new functions get added in the wrong region, refactorings end up all over the place, etc). I prefer them though over partial classes (shudder) and when properly used they can be a huge timesaver when dealing with those annoying UBER-Forms that tend to happen when dealing with legacy WinForms code :)

Hahaha, indeed. I didn't realize myself until I started looking into this that MS named the system in Vista the same as the Apple team did in Panther. :) Guess it is the nerd in us all wanting to be working on the "Core" stuff