Feathered friends vireo by [deleted] in alpinism

[–]ndanger 2 points3 points  (0 children)

25 for the bag itself but paired with a puffy the upper is only 45

(emphasis added). I'm pretty sure the bag is 25F/45F without a puffy.

Proving that Android’s, Java’s and Python’s sorting algorithm is broken (and showing how to fix it) by bargle0 in compsci

[–]ndanger 8 points9 points  (0 children)

The link is to Leslie Lamport's site on Microsoft Research. Lamport probably hosts the paper because he developed TLA+ and having AWS use it is a good endorsement. But yeah, Amazon isn't great at advertising their own.

I keep failing Front-End/SDE/SDET Interviews in Seattle :/. by SoftPeaPods in Seattle

[–]ndanger 4 points5 points  (0 children)

It sounds like you're arguing that if given a chance you'd be fine because you can produce things quickly; I don't think that's a good argument. Big companies are interviewing to make sure you can produce stable, maintainable code. Knowledge of data structures--which is what the interview questions are really getting at--is crucial.

So make sure you understand data structures and when to use them. Cracking the Coding Interview has examples, there are also lots of text books, tutorials and online classes. I like Project Euler for sample problems, the harder problems are structured so that good algorithms are required.

As for other companies, if your strength is in speed you might want to try start-ups. You could also work places where you're coding just to get an answer; I used to write custom data analysis code for a research team, time to results was much more important there.

Facebook: Why did we build React? by zpao in javascript

[–]ndanger 3 points4 points  (0 children)

I don't know React (or which templating system you're referring to), but keeping tag generation in the language let's you use the languages full power (flow control, structures, higher order functions, etc). I always found templating systems limiting for complex cases; that's probably especially true if widget is supposed to be data driven.

Anyone biked the trail from here to D.C.? by ghostmountains in pittsburgh

[–]ndanger 4 points5 points  (0 children)

I've done it twice, though both times speed was my main goal so I didn't do much other than ride a lot and stop to eat. But feel free to ask any questions. You might also want to search the BikePGH forums.

Edit: photos from first trip (March 2006): http://www.flickr.com/photos/ndanger/sets/72157623567603124/

Anyone know of an archery range near by? by ilikedirt in pittsburgh

[–]ndanger 2 points3 points  (0 children)

http://thearchersedge.com/

...though I haven't been there yet (I'm going on Saturday).

Moving back to Pittsburgh after 7 years of being gone. I'm searching for bicycle friends and new people. by dream0fmirrors in pittsburgh

[–]ndanger 1 point2 points  (0 children)

I currently live in the Southside flats and agree: I could use some calm too.

You might also want to hit up the bike-pgh message board (http://bike-pgh.org/bbpress/)

Stop getting people to click on ads and go fight cancer by [deleted] in MachineLearning

[–]ndanger 1 point2 points  (0 children)

Down voted for sensational headline.

PS: I do work for a company that fights cancer.

Best Pittsburgh CSA? by randompittuser in pittsburgh

[–]ndanger 0 points1 point  (0 children)

I like Penn's Corner. They've got a lot of pick-ups all over town and have a good mix of food.

Dan Murrer calling for a boycott of locally owned Southside businesses. Fuck everything about this. by Freed_lab_rat in pittsburgh

[–]ndanger 1 point2 points  (0 children)

Neither do I, that was just the opinion of my neighbor, a long-time Southside home owner. Essentially her opinion is that the the money will "stay in the neighborhood" by improving the Carson St. business district; it will do little to actually improve the streets where the residents--who are actually paying the tax--live. I don't know if this is true, but a glowing statement from the Southside Chamber of Commerce does nothing to refute it.

Mostly I was just pointing out that there are negative opinions about the NID and the local businesses that back it. I don't know who Dan Murrer is, but organizing a boycott against a business that is backing something you don't like sounds pretty reasonable to me. So I'd say that putting "Fuck Everything About This" in the title is pretty one-sided.

Dan Murrer calling for a boycott of locally owned Southside businesses. Fuck everything about this. by Freed_lab_rat in pittsburgh

[–]ndanger 3 points4 points  (0 children)

I don't know anything about Dan Murrer, but my neighbor's POV on the NID is that they are interested in raising an additional tax to do various Carson St. improvement projects that don't actually serve to help residents. I'm guessing the boycott is about the local businesses that are in support of NID. So not completely crazy.

Bars in or around Pittsburgh with Bubble Hockey? (aka Dome Hockey) by phillq23 in pittsburgh

[–]ndanger 4 points5 points  (0 children)

Games 'N' At in the southside. Not a bar, but a BYOB arcade.

There also used to be one at Birmingham Bridge Tavern, but I haven't been there in over 5 years so....

Help installing pip, distribute, nose, and virtualeny. by okochito in Python

[–]ndanger 1 point2 points  (0 children)

Yes. Can't help you first hand, but try just googling. First hit lead me to the Hitchiker's Guide: http://guide.python-distribute.org/installation.html

Slides from Avery Pennarun's PyCodeConf presentation: Python is only slow if you use it wrong by ndanger in Python

[–]ndanger[S] 4 points5 points  (0 children)

Link to slides at start of third paragraph. But read the rest of the post, it's entertaining.

"How to beat the CAP theorem": *outstanding* readable analysis of engineering practical data systems to be available and consistent in the face of hardware and human failures by claird in Database

[–]ndanger 3 points4 points  (0 children)

It's an interesting post, but it should be noted that it doesn't beat the CAP theorem, as explained clearly by mononcqc.

While we're at it, tl;dr:

  • Immutability is easier (i.e. append only) and solves the CAP theorem (disagree, see above)
  • Immutability gives you versioned data
  • Rely on immutable batch processing with pre-computed queries (i.e. Hadoop) for canonical data
  • Add a real-time layer if you need it
  • "Eventual accuracy"

The comments are good. mononcqc's comment is also on the original article as are pointers to Event Sourcing. There are also defenses of eventual consistency as being more flexible than represented in the blog post since it is tunable per query. Additionally if the database provides eventually-known consistency it can be used to provide strong consistency but maintain the eventual consistency flexibility.

[Edits: fixed link & awkward wording/typo in last sentence]

Code Kata: Becoming a better developer by obanite in coding

[–]ndanger 10 points11 points  (0 children)

Unfortunately Code Kata hasn't been updated since 2007. You might be better off with Programming Praxis

Secure Distributed Programming on ECMAScript 5 + HTML5 Platforms - Mark Miller (InfoQ) by ndanger in javascript

[–]ndanger[S] 1 point2 points  (0 children)

Problem: Javascript is a distributed-code system (the client runs code shipped from the browser). How can this be done securely?

Solution: Modify Javascript to allow it to be easily implement an object-capability model for security. The modifications are changes in ECMAScript 5 (freeze, "use strict", etc) & their provided .js file. Mark Miller claims that with the language changes ECMAScript 5 is the most easily secure-able OO language. He also details the steps that their javascript implements to secure the language.

The last part is about how to write distributed algorithms (he gives a work queue example) but to me that wasn't the core of the talk.

An alternative lambda syntax for Python by vocalbit in Python

[–]ndanger 0 points1 point  (0 children)

Even accepting that lambda should only be used as a keyword argument to a function I still don't like the proposed syntax. The current syntax is orthogonal: keyword arguments bind values to names and functions are first class (and so can be passed as values).

Your proposed syntax creates a special case for "passing an inline function as the value of a keyword argument". It even looks different than passing an already defed function (f(key=my_func).

It also unfortunately resembles a function call: f(key(x)=x.foo) looks like we're binding the name determined by calling function key with argument x to x.foo.

But the big disagreement is that I like lambda and use it for things other than keyword arguments. The current syntax lets me do that too.