Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dorianm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
271.
▲
by
dorianm
10y ago
Or in a lot of cases you can use github's edit button ;)
272.
▲
by
dorianm
10y ago
Nice it actually gives "SyntaxError: invalid syntax", but then it affects all the imported libraries so I still prefer the per-file way as a transition.
273.
▲
by
dorianm
10y ago
There are a few immutability options, for instance Hamster: https://github.com/hamstergem/hamster/blob/core/README.md
274.
▲
by
dorianm
10y ago
Maybe python2 --enable-print-parentheses and other flags could have been useful to slowly detect future issues on python 2 code.
275.
▲
by
dorianm
10y ago
e.g. 1000.times { "hello" } creates strings 1000 times but: 1000.times { "hello".freeze } only one time. The thing about frozen strings is they can't be changed "inline": e.g. : "Hello".freeze &l
276.
▲
by
dorianm
10y ago
For comparaison, Ruby 3 is gonna introduce a pretty big breaking change (frozen string literals) but they already shipped a way to optional enable it by-file (magic comment) and globally to the ruby interpreter (just a parameter) so that al
277.
▲
by
dorianm
10y ago
Still have mine somewhere, just too annoying to charge and doesn't last long, then I need to use their app to get the files etc etc. Just too much hassle for a simple use case. (Why didn't they use a standard charging cable...)
278.
▲
by
dorianm
10y ago
That's amazing! He also has a very interesting Twitter account where he posts his experiments: https://twitter.com/inconvergent
279.
▲
by
dorianm
10y ago
Yes <3 UseTrusted, Software Engineer Intern :)
280.
▲
by
dorianm
10y ago
Pretty amazing, maybe you could let universities have their own domains and I think this would be a huge success!
281.
▲
by
dorianm
10y ago
If you can change the style of an image to anybody's style I guess you could: - take photos and apply the styles of famous photographers - take your writing and apply the styles of famous writers - take your code and apply the style of
282.
▲
by
dorianm
10y ago
I guess it would also be trivial to detect copy/pasted solutions and ban/remove those answers from the user.
283.
▲
by
dorianm
10y ago
Yup, just use: lines = `git log -p --all`.lines.map(&:chars) So I found that `git grep /.+/ $(git rev-list --all)` is a better way to get the content of all the files: https://gist.github.com/Dorian&#x
284.
▲
by
dorianm
10y ago
I thought the idea was interesting so here is a little PoC in Ruby: require 'facets' lines = Dir['**/*.rb', '**/*.py', '**/*.cpp'].map { |f| File.read(f).lines.map(&:chars
285.
▲
by
dorianm
10y ago
$50.00 for a working MacBook Pro retina 13", I guess it's just a joke, even they don't believe anyone would trade a MacBook for a Surface-thing.
286.
▲
by
dorianm
10y ago
See here for details on the amount: http://e2visalawyer.net/substantial_investment.htm It starts at $50k.
287.
▲
by
dorianm
10y ago
Doesn't the E-2 via already covers that? https://en.m.wikipedia.org/wiki/E-2_visa What we need is visa for employees, those who invest in the US can already get the E-2.
288.
▲
by
dorianm
10y ago
I see a lot of people choosing the XPS (including Linus). I tried it and for those who prefer Linux it's pretty great!
289.
▲
by
dorianm
10y ago
There is a MacBook with escape and functions keys still available. So the choice is still there. Personally I think the touch bar could be great for programmers so I'm gonna take that.
290.
▲
by
dorianm
10y ago
Awesome! If you to try it out in ruby: 10**6 * 26**Math::E => 7019340976.833626 Pretty accurate!
291.
▲
by
dorianm
10y ago
Starts stockpiling 2013 Macbook Pros for my lifetime use (Seriously the 2013 Macbook Pro 13" feels so perfect) P.S.: It's weird how they never mentioned programmers in the keynote but I'm sure they are far more programmers
292.
▲
by
dorianm
10y ago
And with examples: https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Pro... It's crazy how similar this is with JSX
293.
▲
by
dorianm
10y ago
They can do all the marketing they want, I just feel like this is gonna be the buggiest thing I ever used if I tried it.
294.
▲
by
dorianm
10y ago
"Please note that while both Symantec and CNNIC's logs are presently enabled in the current Chrome stable release (Chrome 52), both WoSign and StartCom's logs will not be recognized until Chrome 54, which is presently the Dev
295.
▲
by
dorianm
10y ago
The proposal: http://yoavweiss.github.io/ContentPerformancePolicy/
296.
▲
by
dorianm
10y ago
For those who like webgames: https://www.reddit.com/r/WebGames/ And in particular multiplayer webgames: https://www.reddit.com/r/WebGames/comments/57v9jb/multiplaye...
297.
▲
by
dorianm
10y ago
There is a "probabilistic programming" gem for ruby: https://github.com/urso/rb_probdsl (from 2010)
298.
▲
by
dorianm
10y ago
I'm surprised nobody mentioned Vundle: https://github.com/VundleVim/Vundle.vim (13k stars)
299.
▲
Font Awesome 5 Kickstarter
(youtube.com)
2 points
by
dorianm
10y ago
|
2 comments
300.
▲
Meet the YouTube Directors App Newest Template: Elections
(blog.google)
1 points
by
dorianm
10y ago
|
0 comments
More ›