Better HN
topnewbestaskshowjobs
Log inSign up

sharpercoder

917 karma · joined Nov 17, 2014 (12y ago) · 333 submissions

rtimon@gmail.com
Submissions

comment 9y ago · link · parent

With all respect, leo looks like it is an editor from the 90's with its windows 95-looks. For me, that's mostly a sign that the developers do not adhere to modern development standards. As such, why would I invest time in using a dying product/project?

comment 9y ago · link · parent

An addiction tries to replace a void in someone's life. Chances are big the environment of the addicted played a role in cerating the void.

comment 9y ago · link · parent

Is bitumen a liquid or a solid? Technically, you can argue for either, but practically it seems to be very much a solid.

comment 9y ago · link · parent

> The next big idea invariably seems to grow out of the next small idea;

Spot on and the key words here are "grow out". It seems that most Big Things simply slowly grow.

comment 9y ago · link · parent

I thought this technique of eliminating dead code was called tree-shaking. And linking to be something entirely different: linking assemblies at (compile|run|analysis)-time.

comment 9y ago · link · parent

Great video! Really enjoyed watching it. Great lighting. Towards the end, the images get flashy (don't do this please filmmakers, it makes my head hurt).

comment 9y ago · link · parent

If the rails are solid state using for example magnetic levitation, I can see this being much cheaper to maintain.

comment 9y ago · link · parent

Personally, I find distinguishing III and IIII quite hard in several fonts. However, the difference between [II and III] and [III and IV] is easier to read.

comment 9y ago · link · parent

Imagine a driverless bicycle driving back to its base after being used byw the renter. A flywheel keeps its balance while stopped before traffic (lights), the electromotor thrusts it.

comment 9y ago · link · parent

The first realization about URI's being UI I had when I was looking to the first billboard with a URI on it - it must have been around 2000 or so.

comment 9y ago · link · parent

Tables are generally a very good idea for languages. SpecFlow/cucumber as most notable example, but I can see others benefitting greatly as well.

comment 9y ago · link · parent

I very much enjoyed the speedruns of this game done by CapnClever on twitch. He has records on most official games and also has run some of the unofficial games.

It great to see someone running through levels I sweated blood and tears on as a kid.

https://m.twitch.tv/capnclever/profile

comment 9y ago · link · parent

Checkout the Googlezon clips: https://www.youtube.com/watch?v=AT9ho2G0N_Y and https://www.youtube.com/watch?v=OQDBhg60UNI.

comment 9y ago · link · parent

The thing with an O lock is that is locks the rear wheel. A chain lock then can lock both the frame and front wheel to a pole. Although not 100% safe, most thieves will look for easier targets.

comment 9y ago · link · parent

>This code wouldn't compile, for starters.

Thats the point. You need an `IValidator` interface.

comment 9y ago · link · parent

    interface IValidator<T> {
        bool Validate(T thingToValidate);
    }
    class ThingValidator : IValidator<Thing> {}
    class ThingValidator : IValidator<OtherThing> {}

    var validators = GetAllValidators();
What type is `validators`?

comment 9y ago · link · parent

>less guilt about taking vacation

This, and make it clear in various forms (email, several personal meetings, via wife, via friends, et cetera) that any outcome of the state of the company after return is okay. It's the only way to ensure the vacation is effective: vacation with guilt is having a lot less effective vacation. "Freedom" (from the company) must be felt.

comment 9y ago · link · parent

It is not only good advice, it is required in fair amount of situations because of limitations in the C# language.

comment 9y ago · link · parent

AsciiDoc has a serious adoption problem compared to MarkDown.

comment 9y ago · link · parent

I notice a trend in my environments where an acknowledgement went from "okee" (Dutch) or "okay" to "OK"/"ok" to now just "k".

comment 9y ago · link · parent

Contrast is clearly suboptimal. Lots of multigrey use in controls and noncontrasting colors in colored items. This would not go past our UX team.

comment 9y ago · link · parent

This feels a lot like the good old framework/library debate. Instead of providing everything for the learner in a framework-y way (user must adapt, we call you), it seems better to offer lego blocks instead. Well documented, componentized, reusable things which can act as parts of any new system.

comment 9y ago · link · parent

I remember trying so hard when I was a little kid to learn english and move on in any textbased game. I always failed. So I guess it's still easy to have dead ends in textbased games ;)

comment 9y ago · link · parent

A presentation app where the cursor can be changed to a laser pointer (big red dot).

comment 9y ago · link · parent

Reminds a lot of shapecatcher (shapecatcher.com): Unicode character recognition by drawing.

comment 9y ago · link · parent

>Are the arguments to memcpy in the order of source, destination, length; or are they destination, source, length? Is strstr haystack, needle; or is it needle, haystack? Many individuals develop a habit of consulting references (such as system manuals) as soon as the question comes up.

I've always found this particular problem solveable by allowing programming languages having syntax in the form of

    public void CopyFrom(int address)To(int address)OfSize(long size) { // impl }
instead of

    Copy(int fromAddress, int toAddress, long size)
Are there good reasons why languages haven't adopted this syntactic nicety?

comment 9y ago · link · parent

When I was about 15 years old, a friend tried to convince me a traffic light in front of his house was always green. I never believed him. Fast forward 15 years later. I moved to an apartment, cycling past my friends house to go to work. After a few weeks, I started to notice a traffic light which is always green! It was the same light my friend told me about. I remembered.

It is here: https://goo.gl/maps/2cgcx1b92LL2. Streetview direct link: https://www.google.com/maps/place/52%C2%B000'00.9%22N+5%C2%B...

comment 9y ago · link · parent

Keep in mind that serif typefaces do not always render pleasingly to the eye as they need more pixels to render correctly. These pixels are needed to render the subtle serifs. Monospace and sans typefaces suffer a lot less from this problem.

It is one of the reasons I never advise to use serif fonts for text body. Nowadays, betterresolutions are used more often, but low res displays are still common enough.

comment 9y ago · link · parent

> perfect is the enemy of good

comment 9y ago · link · parent

The more threading code I have seen, the more convinced I become that it should be avoided at all cost. The pitfalls are nonobvious and potentially incurring datacorruption. Rather, they should be behind understandable abstractions (like await/async and Task/Task<T>, but those have their own pitfalls) where applicable. Also, I can see value in an "unsafe" block (e.g. a "threading {}" keyword) where the writer of code communicates to the reader "inspect this with special threading awareness"
1
89101112