Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arthurschreiber
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
arthurschreiber
5y ago
We could enable the linter in production to silently log problematic queries without actually affecting their execution. If we used separate db users as you're suggesting, any query that we didn't catch beforehand (e.g. via our CI
2.
▲
by
arthurschreiber
5y ago
As described in the blog post, large paths of our database schema have grown in an organic fashion. These virtual partitions allow us to prepare our database access for splitting out groups of tables into separate clusters in the medium ter
3.
▲
by
arthurschreiber
5y ago
We wrote our own linters that hooked into the `sql.active_record` event emitted by ActiveRecord when a query gets executed. See https://api.rubyonrails.org/classes/ActiveSupport/Notificati... for the API to subscr
4.
▲
by
arthurschreiber
11y ago
Unless I'm mistaken, 97% of (24 hours) = 23.28 hours.
5.
▲
by
arthurschreiber
12y ago
I really like docopt ( http://docopt.org/ ) which also comes as a CoffeeScript / JavaScript version.
6.
▲
by
arthurschreiber
13y ago
That's _exactly_ what XSS is about. One possible way to exploit things like this is if I send you a link to a website, that embeds the target page through an iframe with javascript output injected. I could then have the JS steal your cookie
7.
▲
by
arthurschreiber
14y ago
This is similar to how the Rubinius project has been managed for a long time: After your first pull request gets merged, you'll be added to the repository as a committer.
8.
▲
by
arthurschreiber
14y ago
I also created a very rspec like bdd library, called tclspec: https://github.com/arthurschreiber/tclspec
9.
▲
by
arthurschreiber
14y ago
I'd even say that the biggest contributor to this difference is the non-blocking nature of Node. Using e.g. EventMachine would probably close the Gap between Node and Ruby even more.
10.
▲
by
arthurschreiber
14y ago
Well, that comparison is not exactly fair, is it? While the rails benchmark tries to compare different template engines in the same language, framework, and with blocking IO, you're comparing these results to rendering under "pure" Node.js
11.
▲
by
arthurschreiber
14y ago
I'm confused, is this not what generally is done (and works) in open source development?
12.
▲
by
arthurschreiber
14y ago
To be honest, I think both styles are good practice, but it totally depends on the context. For example, if I want to describe how the "#admin?" method is working, I'll use describe "#admin?" do ... but if I'm describing a differen
13.
▲
by
arthurschreiber
14y ago
Well, but Tcl blocks are nothing more than strings that you pass as arguments that then get eval'ed using uplevel. Ruby blocks are "real" language constructs, and are real closures, in difference to Tcl blocks.
14.
▲
by
arthurschreiber
14y ago
Not having an aluminium bar at the bottom makes it very much look like the Apple Cinema Display, though.
15.
▲
by
arthurschreiber
14y ago
Hah! Your pull request actually introduces subtle bugs into the diff view. I had already submitted _exactly_ the same change some months ago, and after having it enabled for some time in our gitlab installation at work, I ran into some issu
16.
▲
by
arthurschreiber
14y ago
Yes. Just check this model, for example: https://github.com/gitlabhq/gitlabhq/blob/master/app/models/... I'm pretty sure it should have it's attributes protected. Also, prepare to have to work with pretty confusing code. I don't want to b
17.
▲
by
arthurschreiber
14y ago
Be sure to take a closer look at the Gitlab source code. The last time I did, they still were vulnerable to exactly the same attacks that were also demonstrated to work on Github some time ago.
18.
▲
by
arthurschreiber
14y ago
Yes, but enumerators are (in most cases) implemented with Fibers. So you're going to get hit with at least some performance degradation.
19.
▲
by
arthurschreiber
14y ago
As others have already pointed out, that has nothing to do with MVC, but is more a result of how template engines usually work. E.g. in Rails, by default, due to the fact that you can have views provide content for your layout (using conten
20.
▲
by
arthurschreiber
14y ago
Yes, but their Model layer, in comparison with what ActiveRecord provides you with, is really not that great. One of the main aspects that I really didn't like was that the Model finder methods don't give you object instances back, but inst
21.
▲
by
arthurschreiber
14y ago
I'm only guessing, but I'd say with the release of Github for Mac 1.2.
22.
▲
by
arthurschreiber
14y ago
Same here. That's really creepy. :/
23.
▲
by
arthurschreiber
14y ago
Wasn't there some actual recruiter offering DDH a senior rails developer position? I'm pretty sure I read about that in DHH's twitter stream some time ago.
24.
▲
by
arthurschreiber
14y ago
Usually you will have another level of indentation, so class methods shouldn't be that easy to mistake for instance methods.
25.
▲
by
arthurschreiber
15y ago
How often do you come across the need to type in your password? Personally, I do not have to do that too often, and when I have to it usually makes sense to re-authenticate.
26.
▲
by
arthurschreiber
15y ago
I don't know the Play! framework, but the main difference probably is the use of nonblocking IO in nodejs, in contrast to blocking IO in the example you just have given. (I'm not saying either is better).
27.
▲
by
arthurschreiber
15y ago
An Open Source h264 Encoder.
28.
▲
by
arthurschreiber
15y ago
I'd be interested, too.
29.
▲
by
arthurschreiber
15y ago
I encrypted my SSD using BitLocker, and for me, the performance hit is not really noticable in my day-to-day work (programming + running a virtual machine). Your SSD will still be A LOT faster than a regular, unencrypted HDD. But YMMV.
30.
▲
by
arthurschreiber
15y ago
xpi files are "normal" renamed zip files. Try extracting the contents using your favorite unzipping application. You should then get access to the source files.
More ›