johnlinvc
๐ Joined in 2012
๐ผ 33 Karma
โ๏ธ 25 posts
๐
15 latest posts
Load more
(Replying to PARENT post)
Swift also have them.
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
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...
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
For those who want to see them or just like Nodejs. National Palace Museum(NPM) is the place to find them.
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
yes, the regex part handles the validation.
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
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๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
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...
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
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
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
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
๐คjohnlinvc๐6y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
Ruby's bundler is pretty neat. It's one of the first systems that introduced lock files.
๐คjohnlinvc๐7y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
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.
๐คjohnlinvc๐9y๐ผ0๐จ๏ธ0
๐คjohnlinvc๐9y๐ผ14๐จ๏ธ2
(Replying to PARENT post)
We can even use string interpolation
    let x = "\(number)"๐คjohnlinvc๐9y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
It's HNed, I got 509 Bandwidth Limit Exceeded.
Looking forward to play it.
๐คjohnlinvc๐9y๐ผ0๐จ๏ธ0
(Replying to PARENT post)
There's also a web version https://www.ptt.cc/bbs/index.html , which supports Unicode.