HackerTrans
TopNewTrendsCommentsPastAskShowJobs

timakro

no profile record

Submissions

Answering 'OK' May Make Millennials and Gen-Zers Think You're Mad at Them (2019)

inc.com
4 points·by timakro·قبل 5 سنوات·2 comments

comments

timakro
·قبل 4 سنوات·discuss
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!
timakro
·قبل 4 سنوات·discuss
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.
timakro
·قبل 4 سنوات·discuss
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}'
timakro
·قبل 4 سنوات·discuss
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
timakro
·قبل 4 سنوات·discuss
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.
timakro
·قبل 5 سنوات·discuss
Maybe if we'd do it more software would actually learn to deal with it.