Recent submissions

Comment · 3 years ago
Small correction: contrary to what the post claims this does not compile:

    fn main() {
        let s = String::from("hello");
        foo(s);
        println!("{}", s);
    }

    fn foo(le_string: String) -> String {
        println!("{}", le_string);
        le_string
    }
This does, which is probably what the author meant:

    fn main() {
        let s = String::from("hello");
        let s = foo(s);
        println!("{}", s);
    }

    fn foo(le_string: String) -> String {
        println!("{}", le_string);
        le_string
    }
Great post!
Comment · 3 years ago
Amazon makes it easy to sell especially with FBA. That's as much a good thing as it can be misused. It allows new businesses to get started when they cannot afford to handle shipping to customers themselves.
Comment · 4 years ago
So it turns out the default on Debian is mawk which does NOT support Unicode. Thanks for pointing that out. This simple test gives different results for gawk and mawk.

  $ echo 'ö' | awk '{print length}'
Comment · 4 years ago
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
Comment · 4 years ago
Even though I'm a prospective developer I read the title as "realizations I had when writing in a public library". I was hoping for tips or insights when working in public spaces.
Comment · 5 years ago
Maybe if we'd do it more software would actually learn to deal with it.
Comment · 5 years ago
Comment · 7 years ago
Great! Be sure to check out the first part if you have trouble getting started. Best of luck :)
Comment · 7 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton