HNHacker News
TopNewBestAskShowJobs

pininja

932 karma · joined May 4, 2015

https://github.com/chrisgervang
submissionscomments
pininja··on Big Tech’s Hot New Talent Incubator: Community College
Just wanted to say I also went to CC in the Bay Area, and a few years out I am still very satisfied with the education I got. I’m now at my 2nd job as a Software Engineer... it’s not a waste of time!
pininja··on Guidelines for Brutalist Web Design
This article isn’t really about code design. It’s about information and interaction design primarily. The audience the author was writing for is probably more focused on the design rather than code.

With that said, this site is open source and so the community could help it become a example of cleaner/clearer/more minimal coding practices too.

pininja··on Show HN: The Program – A fictional podcast inspired by Hacker News stories
Just finished episode 1! I liked it :)
pininja··on Plastic recycling is a problem consumers can't solve
I’ve experienced this issue just a tiny bit with my delivery of dip’n’dots with dry ice, but more noticeably when putting dry ice in a cocktail.

It is really noticeable in drinks with direct exposure to all that gas and ice. Solid food in a box? I don’t have as much experience with that, so I’m not sure.

pininja··on Plastic recycling is a problem consumers can't solve
The masks are there to survive sudden cabin decompression at high altitudes where the atmosphere is too thin to breath. There is only enough oxygen to last a few minutes.

Further reading: https://www.telegraph.co.uk/travel/travel-truths/truth-about...

pininja··on Firefox is back. It's time to give it a try
I just reviewed the article for their sponsorship disclosure, and it doesn’t have one so this isn’t sponsored.

This article is like every other product release article, plus the recent revival effort from Mozilla is news worthy.

pininja··on Uber is experimenting with letting riders wait longer for a cheaper fare
Uber Commute existed in the past, but I’m not sure what happened to it.
pininja··on Uber is experimenting with letting riders wait longer for a cheaper fare
Express Pool and Pool include an up to 2 minute wait to give other riders a chance to make a request in the same area or along the route. Express Pool often feels much faster than Pool because they ask the rider to walk towards main streets and I notice it helps the driver avoid having to drive around city blocks unnecessarily. I think Lyft Line is the same offering as Uber Pool and doesn’t require a 10 min wait (but the wait could be that long if there aren’t drivers nearby or it’s totally possible that they used to add a 10min wait). Perhaps the thing you’re thinking of is called Lyft Shuttle now?

F.D. I work for Uber, but not in the rides business.

pininja··on TypeScript 2.9 is now available
I’m a fan of the “Generic type arguments in JSX elements” - ran into a case where I needed it a few months ago. They’ve always had a workaround, but this is more concise.
pininja··on ShotSpotter IPO suggests there’s not much profit in urban surveillance
Their algorithm and the acoustics of the hardware, as well as the enclosure/power solution, is purpose built for triangulating gunshots sounds from rooftops in a mesh of the devices.

Integrating with public safety organizations also took a considerable amount of effort.

That is the jist of what I gathered from a former ShotSpotter employee.

pininja··on TypeScript 2.3
I use type sugar in my projects. This helps communicate what might be null/undefined. I haven't been satisfied with something like ts-optional since it wraps the object in a function (or class, or prototype?), making it harder to serialize to JSON.

    /** Represents optional values, just as F# does. */
    export type Option<T> = T | null | undefined;

    /** Option operators. */
    export namespace Option {
        /** Constructs a Some(value) option. */
        export function some<T>(value: T): Option<T> {
            return value;
        }

        /** Returns true if the value is Some value and false otherwise. */
        export function isSome<T>(value: Option<T>): value is T {
            return value !== undefined && value !== null;
        }

        /** Constructs a None option. */
        export function none<T>(): Option<T> {
            return null;
        }

        /** Returns true if the value is null or undefined and false otherwise. */
        export function isNone<T>(value: Option<T>): value is null | undefined {
            return value === undefined || value === null;
        }

        /** Recovers an Option<T> from JSON object representation. */
        export function fromJSON<T>(json: any): Option<T> {
            return isSome(json) ? <T>(json[0]) : null;
        }

        /** Converts to a JSON representation. */
        export function toJSON<T>(value: Option<T>): any {
            return isSome(value) ? [value] : null;
        }

        /** Unpacks with a default value. */
        export function withDefault<T>(value: Option<T>, defaultValue: T): T {
            return isSome(value) ? value : defaultValue;
        }
    }
EDIT: Forgot to mention, I got this from Gluon. https://github.com/Tachyus/gluon/blob/master/src/Gluon.Clien...
pininja··on TypeScript 2.3
If you're using F# backend, Gluon generates a typescript RPC. Its saved my team many times. http://www.tachyus.com/gluon/
pininja··on TypeScript 2.3
Thank you for the comparison. This basically matches my experience as well. Hoping your post gets up to the top.
pininja··on Going native
Window, Menus, clipboard, etc.. (not just being able to write to a file) https://electron.atom.io/docs/api/
pininja··on Distill: a modern machine learning journal
I fall into the longer-term category as a front end data visualization person who would like to learn more ML. Please reach out to me if you're looking for JS volunteer to help with code review, visualization polish, or implementing new visualizations.
pininja··on Elon Musk makes a libertarian argument for carbon tax
What are the by-products of manufacturing and maintaining batteries and solar panels? I'd like to learn more about the inputs and outputs, then maybe I can learn a better comparison between fossil fuels and solar.

What are we transforming in order to create, store, and consume solar energy and fossil fuel energy?

pininja··on GitHub Outage
Github is back online! Github is back online! Github is back online! Github is back online! Github is back online! Github is back online! Github is back online! Github is back online!
pininja··on MirrorMirror: A Raspberry Pi-Powered Magic Mirror
I made one for a christmas present this year. High contrast colors show up great. If colors are close to each other it becomes hard to tell them apart, but you can still see color. Dark colors are hard to see against a black background for the same reason.
← PreviousPage 10 of 10