Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
urbanautomaton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
urbanautomaton
12y ago
Well, I'm not sure I agree that not much harassment goes on in more established companies, but you're absolutely right that at least they're more likely to have procedures in place for dealing with it. This is why I'm as
2.
▲
by
urbanautomaton
12y ago
Call me naive, but when harrassment this egregious is exposed at a well-known tech company, I don't feel the need to stroke my chin and wonder if there's a media conspiracy to make it appear worse than it is. I don't even kno
3.
▲
by
urbanautomaton
12y ago
I have no time for someone who claims to be quoting "the legal documents" when he is in fact parroting one side's case in a domestic violence dispute to which he is not a party. Thanks for clarifying what you are, though; tha
4.
▲
by
urbanautomaton
12y ago
> If she doesn't like it, she can go back to actually working for a living, like the rest of us. The rest of us turn up for 8 hours on a good day, turn in shitty code on our horrifically-factored, monolithic Rails app that some othe
5.
▲
by
urbanautomaton
12y ago
And as a guy not on the margins, who has been repeatedly educated and informed by these "spoiled princesses", I can't say I agree with him either. I find their work incredibly valuable, so I'd be interested to hear why j
6.
▲
by
urbanautomaton
13y ago
I would be ecstatic if the businesses I chose to deal with had such principles, yes, and would gladly join their boycott. We are all involved in the civil rights "debate", whether we like it or not.
7.
▲
by
urbanautomaton
13y ago
Brendan Eich chose to make his personal belief public by paying for it to be written into law, and his customers, who include publishers on his platform, are absolutely free to hold him accountable for that. What his employers choose to do
8.
▲
by
urbanautomaton
13y ago
Weighed in the balance: 1. the right of gay people to get married 2. our personal right to pay money to bigots using specific money-transfer services I'll be honest, I keep re-rolling, and it keeps coming up 1. What am I doing wrong?
9.
▲
by
urbanautomaton
13y ago
Well, let me help you out. Brendan Eich choosing to pay actual money (taking a direct action) to oppose the existence of gay marriage (alienating a large community) is what I'm referring to.
10.
▲
by
urbanautomaton
13y ago
> That's a very very very VERY unprofessional stance. I do not recognise this definition of professionalism, and am happy to be called unprofessional if it is the accepted one. Mozilla is an organisation that is dependent on communi
11.
▲
by
urbanautomaton
13y ago
I totally agree. And this is before we even consider what ubiquitous autoloading encourages us to do to our code in terms of coupling. Our classes are available everywhere, so the tendency to create many hard dependencies on a wide range of
12.
▲
by
urbanautomaton
13y ago
Yep - if you pass a path the behaviour is as normal, but it's still overloaded to support the path inference behaviour. I guess it's not really monkeypatching though as `Module` itself is not modified, and you have to deliberately
13.
▲
by
urbanautomaton
13y ago
Rails does overload Ruby's autoload (naturally - no core functionality can remain un-monkeypatched. ;-)), but not for the on-demand autoloading the article describes, which is what most users contend with most frequently, and was what
14.
▲
Rails autoloading – how it works and when it doesn't
(urbanautomaton.com)
21 points
by
urbanautomaton
13y ago
|
9 comments
15.
▲
by
urbanautomaton
14y ago
Just to make sure we're on the same page: I'm talking about the externality of global warming, which at present is completely absent from the oil pricing system. As a result, I'm not sure it's as simple as a straightforward efficiency calcu
16.
▲
by
urbanautomaton
14y ago
The incentives are completely screwed, because flaring off that gas represents a mere opportunity cost to the oil company, yet imposes a heavy externality on the rest of the world. The waste is only "less expensive than the alternative" bec
17.
▲
by
urbanautomaton
14y ago
I took a stab at separating out the method dispatch costs from the cost of the #extend call here https://gist.github.com/4436640 . I also tried making a call against an unmodified instance of a completely different class to demonstrate tha
18.
▲
by
urbanautomaton
14y ago
It doesn't seem to be widely acknowledged amongst people promoting this particular style of DCI as a good way to write Rails app, so I'd say the point is valid, even if the title is overstated. There are also quite a few other very popular
19.
▲
by
urbanautomaton
14y ago
"You Scored: 56.00000000000001". :-)
20.
▲
by
urbanautomaton
14y ago
You're quite right, query builder statements are error-prone and difficult to stub; that's why you shouldn't sprinkle them throughout your app. Rather than write things like User.active.in_group(x).not_replied.each { ... } all over t
21.
▲
by
urbanautomaton
14y ago
> It feels like we're on totally separate universes. It does indeed. Never mind, it's happened before and will no doubt happen again. :-) If all you're proposing is a coding convention, then I don't see why you're surprised/annoyed that
22.
▲
by
urbanautomaton
14y ago
> As a client I like to know if a method is purely functional or if it's going to have side-effects because I care to know if the operation is going to be re-entrant or not. But your implementation doesn't convey this information. This
23.
▲
by
urbanautomaton
14y ago
> I think that we agree on the bottom-line: UserContentSpamChecker has no need for a state and is just some kind of namespace. I'm not sure that we do. I agree that the current implementation of `UserContentSpamChecker#is_spam?` doesn
24.
▲
by
urbanautomaton
14y ago
I see this assertion increasingly frequently, and it puzzles me: that if we're not currently using an object to encapsulate state, we should prefer class methods. What's the justification? Other than four characters saved (".new"), what's t
25.
▲
by
urbanautomaton
14y ago
Yes, some configuration detail would be helpful. For instance, I can't find any custom Haml config, suggesting it's running with the defaults - in production mode this would mean that the output HTML is indented, while it wouldn't be in dev
26.
▲
by
urbanautomaton
14y ago
The one almost inexcusable omission from their online banking is any way to download your statements. You have to scrape the data from the pages themselves, and infuriatingly, they display the page of most recent items in a slightly differe
27.
▲
by
urbanautomaton
14y ago
I agree that using Observers (at least as embodied in Rails' implementation) can lead to a fearful (and hard-to-debug) mess. I feel that our approach differs, though, in forcing the notification to be explicit, as opposed to tied to object
28.
▲
by
urbanautomaton
14y ago
It's a trade-off, really. As mentioned in the blog post, we had considerably more complex actions, and many more types of post-action task than were shown. You're quite right, in the original code it's easier to see at a glance what happens
29.
▲
Pub/Sub system events for post-action tasks in Rails
(techblog.tribesports.com)
11 points
by
urbanautomaton
14y ago
|
4 comments
30.
▲
by
urbanautomaton
14y ago
But if you're having to create lots of mock objects, that's a huge signal that your objects are tightly coupled, and that not only are you writing a bad test, you've written a bad subject-under-test. Yes, you still have to write integration
More ›