AlexMcP

Joined 15 years ago

Karma
50
Submissions
27
Member since
Mar 6
Developer. Developer. JavaScript, React, Rails. Kapost, Boulder CO.
View on Hacker News

Recent submissions

Comment · 12 years ago
None were particularly common, mostly hapax legomena: typos and wishful thinking like vertical-float and other things like that
Comment · 12 years ago
I thought long and hard about trying to identify preprocessor usage reliably because that is a super interesting piece of data, but nothing stuck out as a smoking gun. Sequentially increasing selectors

  tr

  tr td

  tr td a
could be LESS unrolling a nested bit:

  tr {
    td {
      a {
OR... could just be how people write CSS.

I mostly ignored by-domain grouping in my queries, but there is a host of analysis you could do that would get into the modeling portion of data science, teasing our correlation and trying to find 'groups' or styles' of CSS that is written on a site. I had only so much time ;-)

I also did a web perf report that is not fully edited or ready for consumption, but does not that 54% of sites I ran Google Page Speed Insights against didn't compress all of their CSS assets. (Same sample of domains)

Comment · 12 years ago

  select count(*) from property 
  where value similar to '%!important%'

  => 177119
Comment · 12 years ago
That's what I saw when I spot checked it. Explained both pseudo selector and content prevalence.
Comment · 12 years ago
Hey OP here, I still have the data around if anyone has further questions to investigate.
Comment · 12 years ago
Awesome! Thanks for the knowledge
Comment · 12 years ago
What sort of method would be used to cluster those, statistically speaking? Like, given a data set like that, how would you determine if the distribution is multi-modal or unimodal?
Comment · 12 years ago
Surely the idea of a one-off crowd sourced mini incubator is at least a little interesting to someone who writes|plans|sells software.

Immediate reactions from me include "Should my company get on board with something like this?", "I wonder what the equity split is like", "Could there be a platform for voting up ideas to work on based on customer validation?", "Should I build that platform to bubble up ideas with a verifiable userbase?"

Comment · 12 years ago
Site's back up, we scaled up some dynos. Thanks Heroku :-)
Comment · 12 years ago
I use it outside of a Rails project when I don't have the asset pipeline available in my tool chain. It gives me the scalpel to define exactly what happens to my code and files vs. a one-size-fits-all option like LiveReload or Brunch where I need to match a specific filesystem layout.
Comment · 13 years ago
I think it's important to note that if this code never grows or changes, then this refactor is totally unnecessary. It DOES add code, and it DOES almost over-decompose the structure.

The payoff, however, is if more features or behaviors were in the pipeline (and when aren't they?). This really sets you up to gracefully manage more complexity by having sensical places to put more code, instead of writing a few more $(document).ready callbacks to ship something on time.

Backbone.js might not be the right tool for the contrived example, but I've come to expect a sacrifice of real-world applicability for smaller, digestible chunks. That the synthesis is up to you is ok, I think.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton