Better HN
topnewbestaskshowjobs
Log inSign up

johnlinvc

33 karma · joined Nov 28, 2012 (14y ago) · 25 submissions

Submissions

comment 2y ago · link · parent

ssh://bbs@ptt.cc is the largest one in Taiwan with ~60k concurrent user at this moment. You'll need to switch to BIG5 encoding to display properly.

There's also a web version https://www.ptt.cc/bbs/index.html , which supports Unicode.

comment 6y ago · link · parent

Swift also have them.

comment 6y ago · link · parent

I don't use toggles for these common symbols like /\'[-+] . The trick is that you make the top row as same as a normal keyboard, move ]\ from second row to the bottom row as they seldom get typed (] got auto completion most of the time).

Following is my mapping. https://configure.ergodox-ez.com/ergodox-ez/layouts/zLQW4/la...

comment 7y ago · link · parent

For those who want to see them or just like Nodejs. National Palace Museum(NPM) is the place to find them.

comment 7y ago · link · parent

yes, the regex part handles the validation.

comment 7y ago · link · parent

Not exactly the same, since there's no UInt8 in Ruby.

    require 'sinatra'
    get %r{/hello/([^/]+)/(\d+)} do |name, age|
      "Hello, #{age} year old named #{name}!"
    end

comment 7y ago · link · parent

Seems like the Swift slowness comes from ARC.

> Unfortunately, the performance analysis shows, that the retain and release introduce a big performance hit, with little information on why exactly so many calls are necessary.

https://github.com/ixy-languages/ixy.swift/blob/master/perfo...

comment 7y ago · link · parent

The battle has not over yet. RHEL 8 has Python 2.7 in their Application Streams. So looks like Red Hat will provide security updates until Jun 2024 https://access.redhat.com/node/4079021

comment 7y ago · link · parent

It's interesting to see that languages try to get features that other languages have.

In Swift they have position argument in block from the start

    users.map{$0.name}
now they want to add Ruby's &:attr feature[1]

    users.map(\.name)
Maybe the best feature user want is the one other languages have. Or this is just Blub Paradox[2] in real life.

[1]: https://github.com/apple/swift-evolution/blob/master/proposa... [2]: http://www.paulgraham.com/avg.html

edit: grammar

comment 8y ago · link · parent

Ruby's bundler is pretty neat. It's one of the first systems that introduced lock files.

comment 10y ago · link · parent

Since we can reference other requirements with `-r req-dev.txt` inside requirements.txt . Current requirements.txt isn't really machine-readable without firing up a full Python interpreter.

12.

Show HN: I made a match game to propose to my girlfriend(github.com ↗)

14 points · by johnlinvc · 10y ago · 2 comments

comment 10y ago · link · parent

We can even use string interpolation

    let x = "\(number)"

comment 10y ago · link · parent

It's HNed, I got 509 Bandwidth Limit Exceeded. Looking forward to play it.

comment 10y ago · link · parent

IIRC, Whatsapp is the first popular app of smartphone in Taiwan. In the beginning, A.P.P stand for Whatsapp in TV talk shows, just like F.B(Facebook) & I.G(Instagram) nowadays. Hence people trend to spell the word app as A.P.P.. As more and more apps came out, the word app became more general, but the spelling didn't change at all.

comment 11y ago · link · parent

He got Cambridge Diploma in Computer Science.

[1]http://en.wikipedia.org/wiki/Lee_Hsien_Loong#Background_and_...

comment 11y ago · link · parent

We can also do that with unicorn-worker-killer.

comment 11y ago · link · parent

"The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet." — Michael A. Jackson

comment 11y ago · link · parent

Looks like the bank need a random excuse generating algorithm.

comment 11y ago · link · parent

How about clojure and jruby? Adding these will be pretty awesome.

comment 12y ago · link · parent

For the ruby/node guys, pkgr do the same thing: http://pkgr.io/

comment 13y ago · link · parent

English

comment 13y ago · link · parent

Is it hacker newsed? I'm having 502 bad gate way.

comment 13y ago · link · parent

The ctrl location on that old machine is much more handy. I've changed my caps lock to ctrl for years.