skysight-inc/HackerNews huggingface dataset:
Am I missing some magic goo that makes Python not require DI, or do I just not understand what Java programmers mean by DI?

Sometimes it's easier to assume Python-developers are blind to architectural problems and common solutions to those.

Not saying Python isn't used in large, complex problems or that all Python-code is spaghettti-code, but there are a lot of wannabe cool Python-hackers ("ninjas") out there and part of being "cool" in that sense is disregarding everything which looks even slightly like design patterns.

In those circles "Design patterns" means enterprisey, verbose code with FactoryFactories and not guidelines for how to structure your code to solve problems which have been solved before you.
good story.
I'd rather see a reality tv Fight Club.

Dancing With the Stars chicks tearing out the hair of American Idol wannabes? Sign me up!

...holy shit, re-reading that I think I just became a mainstream American tv watcher.
WebTV died years ago. I don't think many people really want a modern website on their TV.

I wouldn't mind twitter/RSS updates in a side area or Growl box (like a chat box in a FPS), but the web doesn't fare well on the lower-resolution TV; similarly as with mobile devices, websites would have to be redesigned for TV usage.
IndexTank: http://indextank.com
Full-text indexing & search service (realtime, incl. free options, geo/faceting).
agreed..the next generation networks will carry voice as data packets itself so this had to happen sometime.However, I doubt how will this benefit the consumers as long as they are going to put caps on data usage.
Until the US government spent 10 years pursuing action (back when corporations didn't completely control the govt).

10 years is a eon in internet time.
Interesting that people are building on top of gmail just as I'm getting ready to ditch my 6.5 year old gmail account entirely. I got fed up with the web-based interface a couple of years ago, the IMAP interface is really slow and broken, and I'm becoming more and more concerned with the privacy implications.
Has anyone ever died from the incorrect display of a CSS?
Ask HN: Which webinar solution to you use for marketing purposes?
GoToWebinar.com seems to be tops, but at $99/month it's a bit much for me, especially if I'm using it sporadically.
If you put your money in the stock market over the past decade, it's vastly over-simplified to say that your return would be zero. It's highly dependent upon what you invested in. I know many people (myself included) who have fantastic returns over a rolling ten year period.
I would like to give up some love to the Octave team:

First, it is a super solid platform and shows a lot of promise for the future as the build system gets ironed out.

Second, although R and Python are a lot more fashionable these days, for some good reasons and some bad, Matlab syntax is the closest thing to actual mathematics. (Some features like cell arrays and 1-based indexing may seem odd to a Algol/ Pascal/ C/ Perl/ Python/ Java programmer, it can handle any data structure with as much grace as these more "traditional" syntaxes.)

Third, Matlab has a huge share of the numeric / math world (for good reason, I think), and a plug in replacement is HUGE for us free software communist hippies.
Here is a nice article: http://www.csc.kth.se/~gkreitz/spotify-p2p10/
I've never been a big fan of the "throw in a bunch of classes" approach to CSS frameworks (e.g. this, Blueprint, etc). I prefer Compass' mix-in approach instead, since it maintains the separation between content and presentation.

Instead of this:

<div class="span-12 loud last"></div>

You do something more like this in your SCSS:

.mydiv {
@import column(12, true);
@import loud;
}
2d game engine for lua
A strong EMP might destroy it without visual clue.
Not to mention, when push comes to shove, a guy can urinate pretty much anywhere. I remember back in my college days when I'd go to the bar restroom and the stalls were being used, the urinal was in use, a guy was peeing in the trash can and another dude was using the sink...
It has been suggested that it will be several years, as a widget / simulator window would be too kludgy / inelegant and not something apple would do.
IEFBR14 - a program meant to do nothing
> Then go to http://mises.org

You lost me here. Thats the favorite website of Internet economists. It is unable to explain real economic/business cycles.
How To Turn Customers Into Referrals
I'm pretty sure Microsoft doesn't trust your HTC's anyway because those companies make so much more with Android than WP7.

Also, I'm guess Nokia is aiming for the US market only (for now) with WP7. Single market, single OS, hopefully a single model.

It just might work.
I agree that it is the best book on compilers for beginners. I think that parsing using a recursive descent parser for LL grammars with attributed grammars teaches you the most basic and important things (such that one is able to design and parse a nice DSL.)

Having said that the book's major draw back is that is "soft" on the major topics of today: optimizations. The book is very frontend centered and mentions some possible optimizations in the final chapter--no implementations given. Hence, while I always recommend this book as the first go-to book, interested compiler programmers have to find supplemental material elsewhere. (I love M. Scott's "Programming Language Pragmatics", respect Grune, Bal, Jacobs and Langendoen's "Modern Compiler Design", consult Muchnick's "Advanced Compiler Design and Implementation".)

Topic-wise, supplemental material to Wirth's CC-book, I suggest: LR-parsing (yacc) and in-depth study of instruction selection ([i]burg) and register-allocation (graph coloring) for important backend optimizations. I think that gives a firm understanding of compilers, suitable for further study (such as Muchnick "Advanced Compiler Design and Implemetation" 1997 or Morgan "Building an Optimizing Compiler" 1998.)
What problems can be solved with DI that can't be solved by passing a function?

Any non-trivial interface implementation will have more than one function.

Let's say I have a core library which defines lots of possible actions for my application. This application will need to work with other applications although only one at a time (in my case, trough COM), however the operations which needs to be done in these applications remain the same. Applications, not one. Operations, not one.

Obviously this calls for a common interface (in a statically typed language) so that the you can make Application-proxy classes which handles the application interaction in a similar way.

Once you have those implemented as classes you typically pass those around, for instance via the constructor when setting up your instance. Even without a DI-framework this is DI.

For this case "passing a function around" would be very impractical as you would have to pass several functions around. You would have to make sure all functions were created at the same time, with closures referencing the same application COM instances etc.

In fact, passing functions around here would make your solution more complex and error-prone with little benefit what so ever.

Don't get me wrong: I love what function-passing enables. I've written tons of code where function-passing is used to simplify the solution and make it more reusable, more elegant and generally better to work with. Being able to pass functions is awesome.

That said, function passing can be considered a primitive and it's not one which solves all problems. DI is for when your problem domain is bigger, more complex and function-passing would be you were only allowed to pass primitive objects (int,string,etc) around as opposed to sending class-instances around.

They are very, very different and if you can't see that difference, you really should step back and take another look.

Allocation issues are present in GC languages because of the overhead of GC when you could just reinitialize an existing piece of memory

Sure. But your argument that this was one of "two" reasons to use DI is most certainly false. I've never seen anyone advocate DI because of memory issues. This is simply not an argument.

How is it that DI frameworks are necessary for large code bases yet most operating systems don't have DI frameworks?

Because you don't need a DI-framework to implement DI in your code. If you think DI needs "frameworks", you are obviously missing the core point about it: It's a way to structure your code.
This is not at all the definition of Dependency Injection. The wikipedia article [1] does a pretty good job of describing what it really is. DI is a pattern that is intended to reduce coupling between components in a large system. It applies to any OOP language, although it is true to say that the term first gained popularity in the "enterprise" Java world.

I also think it's wrong to conflate DI with XML. One of the first major DI frameworks, Spring, did use XML for configuring and wiring-up components, but it's also quite popular to do this part purely in the code, without any external configuration files.

[1] http://en.wikipedia.org/wiki/Dependency_injection
Form a CA LLC
Form a CA LLC
People may not want modern websites, but articles and/or documents can still be read not in the context of a standard browser. Twitter updates along a side is a good idea, perhaps email notifications such as comcast does with caller id too.
> Sometimes it's OK to just be stupid, and uneducatedly kick the shit out of each other, as long as cries of "Uncle" are respected. The lack of framework and authority is important for some types of catharsis.

To each his own I suppose. Actually I felt this when going from Kendo to BJJ. Kendo being a bit more traditional Japanese and regimented. It was incredibly refreshing being thrown into the deep end with seemingly little structure and to train to Cypress Hill and Slipknot.

Still, I'm of the opinion that a bunch of dudes kicking the crap out of each other in a garage is a step too far.

> My point is that whenever guys roughhouse, some chronic non-participant will always call it homoeroticism, and since that sounds like a good, intellectual reason to justify their nonparticipation, other bystanders will smugly agree. It's a cheap jab.

Fair enough.
From the Terms of Use:

Apps may not use users’ Instapaper data or other personal data in any way that a reasonable person would likely deem “creepy” or otherwise unacceptable. Instapaper reserves the right to decide whether an app’s usage of users’ data is creepy.
How much did she increase the weight of HTML?
CSS file can be downloaded once cached and never bothered again (if expires is set correctly). Bunch of classes attributes in your HTML will travel down the line every single time you request a page.
Can Microsoft be a good buyer? E.g. getting Twitter data as an exclusive for realtime search on Bing might be a way to get ahead of Google. I'm not sure whether it worths the price though.
Those two have not been mentioned yet:

Hosted SVN/Git: http://www.assembla.com/
-> I prefer it over Github.

Real Browser Website Monitoring: http://www.alertfox.com/free-website-monitoring/
-> Once you have your web app running, make sure it really works.

We have been using both for more than a year now. Great services! Both over free plans, too.
HTTPS Support for YouTube Embeds
https://twitter.com/#!/anonymousirc/status/35578771021111296

Apparently the S/MIME signatures match just fine ... it is possible they got ahold of their private keys as well to sign messages, but that would be more difficult than hacking the central servers as private keys are stored locally on the clients machine.
The article quite well describes some of the valuable features of a good login UI.

The login page is (often) the first place a user encounter your site. If that page creates a sense of repulsion in the user or forces him to struggle, the user is probably left with a feeling that your site is against him. That's not something you want.

Its not difficult nor time-consuming to implement a proper login UI. However, surprisingly many sites don't pay enough attention to it.
Dependency Injection != using a DI container http://loosecouplings.blogspot.com/2011/01/dependency-inject...

DI is about passing all that is needed through parameters instead of creating it or using globals - this is completely independent from the type of arguments passed - you can pass functions or scalars or objects or whatever. Of course all that passed stuff is still needed to be created somewhere - so DI is also about having a factory of objects - it creates a lot of objects - but creation alone should be simple (and indeed frequently it can even be automated by using a DI framework).

You ask: "What problems can be solved with DI that can't be solved by passing a function?" - OK, I never thought about it from that side - but how about the problem of globals? How do you solve it by using function passing? Let's say you have a global database connection - if you modify it and pass that connection (or more frequently objects created from it) as a parameter to all code that needs it - that is DI. How function passing fits here?
I hate OOCSS even more than grid frameworks, because it takes that horrible idea even further. It throws the whole idea of separating structure and presentation and throws it out of the window.
Seriously, if one is so desperate to keeps CSS organized, then do like it was already advised here: use Compass or whatever tool which let's you define mix-ins.
Of course; Fingerworks developed the input device, Apple developed the UI paradigm. There's more to a UI paradigm than the input device. How many times do I have to say this?
this page is majkemi, the proof of simplicity
Boner-kill: You have to be subscribed to their criminally-overpriced unlimited messaging plan to get down on the unlimited mobile calling. Had to screw it up somehow, huh AT&T?
Twitter reportedly in early stage acquisition talks with $10 billion valuation
Totally agree with you re: DI as a way to structure your code.

I tend to start with function passing and yeah, when it gets to 5 functions you start putting them in a class or other structure that allows you to pass them as a unit. I like using tuples to pass gobs functions because it works better with type-inference in F#

I've just never heard it referred to as DI except in OO (Java) circles.
CapLinked: Welcome
Dig a 1m deep, 5m long trench in your garden with pickaxe and spade. I guarantee you that you won't have the slightest trace of a fingerprint on both hands for quite a while.

Given the number of people working regularly with such tools, that's quite a sizeable number of smooth hands :)
MvcConf 2011 - Scott Guthrie Keynote
Plimus.com for easy billing/recurrent billing
Summarized: as tech advances, the same services become cheaper.

Add this article to the "no duh" category.
What would a fair Internet payment system look like?
The point of the article is sound nonetheless: it is better to save early and consistently.

This simple lesson alone could help many young people avoid financial issues later in life.
You only get hit in the head at matches, and only if you choose something where striking at the head is allowed. And even if you commit completely to your training, matches will be months apart.

Or just try starting with Bjj or something where there's no strikes to the head if you're worried.
Disagree. Apple paid Xerox for the GUI (in shares) but then added a number of elements we consider an integral part of the GUI.

Xerox had overlapping windows, a mouse, networking and Smalltalk.

Apple lost the network and Smalltalk (later to reappear as Appletalk and Obj-C) but added icons, pull-down menus and the desktop metaphor.
After reading the article, the title feels a little linkbait-y. I feel like Twitter has been in early stage acquisition talks for a year now.

Not typical of TheNextWeb...
As someone who has always hated talking on the phone, I agree.
> I'll make the connection object a parameter rather than have the method set up the connection itself

Parameter (Dependency) Injection.

> I might make the connection object a parameter to the constructor

Constructor (Dependency) Injection.

> construct it in a helper method that I can override for testing purposes.

Not DI.

http://martinfowler.com/articles/injection.html

Edit:

For languages such as Java and C#, wiring up these objects is quite a pain.

For duck typed languages such as Python and Ruby, it isn't that big of a pain. So we just do it. Just because you don't have an IoC framework doesn't mean you aren't practicing DI :)
Still the same javascript-based BS? ^_^
How Google Tests Software - Part Two
Why are you charging so much money?

Convore is free.
Policies & Legal, Casino Policies & Procedures
Video: Semi Truck + Overpass = Snowpocalypse on the Interstate
I know this is hardly "intellectually stimulating," but it was just too cool a demonstration of physics to not post. Come on, it's at least entertaining for a midnight link, no? :)
As an American living abroad, I've come across this several times. But how on earth do they enforce this?

If you live in Europe, (presumably) have EU citizenship, and have renounced your US citizenship, what jurisdiction does the US have over you?
That's been tried! You can run a slightly modified version of bitcoin on a Nokia N900, and it will mine as well. The N900 performs at about a 150 Khash/second level. http://www.bitcoin.org/smf/index.php?topic=2125.msg27918#msg... For comparison, one single ATI Radeon HD 5970 pumps out about 600,000 Khash/second, or the equivalent of 4,000 N900s.
There are lots of articles like this. They seldom discuss the effects of inflation or properly plot things out on a logarithmic scale.
This is the sort of product blogging I appreciate. Spreadable provides actionable advice, and only suggests their product in a relevant section.

Great form.
Wow, this was almost like a cyber crime thriller! Anyone for writing a book on Anonymous ?
Top Five Free Android Apps for QWETRY Keyboard | InfoMov.Com
IPhone Attack Reveals Passwords in Six Minutes
> The most accurate definition for Anonymous is "a subset of users of Xchan". That's not a very good definition, especially if you want to go around and pin DDOS and whatever else on individual people.

I mentally replace "Anonymous" with "protesters" whenever they're protesting anything. It makes it a lot more clear and it's more accurate. We already have amorphous groups of people who protest various things, and this is, as near as I can tell, the online equivalent.
> so I can give all those freespeech nutjobs something

That says everything about Mr. Barr that needs to be said.
Apparently the secret sauce involves a bit of SQL injection.
Creating a generation of car hackers
good, because we're bored fantasizing about how great the iPad 2 will be.
I believe that's the polite way of putting 'did it for the lulz'
To each his own.

But this is idiotic.
No, he's saying that if you have a few outliers to begin with you expect to get more normal-looking data later on, drowning your outliers in them. If you get 5 heads initially and then another 5 heads and 5 tails, it's still closer to the mean than when you began.
There’s no room for common sense in startups
Sorry, it's called Galaxy 3.
Somalia ceased to exist as well

indeed, Somalia the political entity ceased to exist. That's why Somalia the geographical entity is in anarchy. Which nobody besides you is disputing. But fine, let's finish this pointless thread, we're not getting anywhere :)
There's an awesome collection of startup tools here:

http://startuptools.pbworks.com/w/page/17974963/FrontPage
This reminds me very strongly of Will Farrel and John Reilly in Step Brothers: http://www.youtube.com/watch?v=_g0mUyH6dI8
1. drink brain away
2. become "social media" expert
3. lie to get funding
4. ???
5. ceo
Wow, I didn't know there were so many of these around. I just built a simple one for myself to publish clean notes, and some stuff I wouldn't post on my blog.

If anyone wants to check it out:
http://notes.hardikr.com/

edit: updated URL
> I really wonder how special the tape is.

There's some blister plasters that are very thin and transparent.

Herpes plasters for around the mouth are quite hard to spot (though with a picture as blurry as in this article you would expect them to be): http://www.primped.com.au/blogs/zoes-blog/if-you-get-cold-so...
"I might reconsider if I had the kind of funding to get into a truly great tech school"

I don't know if I misunderstood your point, but financial aid at all great tech schools is beyond amazing. In my opinion, money should not be an issue.
Lies, Hype, and Profit: The Truth About Microfinance
> This is not at all the definition of Dependency Injection.

Re-read fleitz message. He never stated what he believed DI to be but what he believes DI to be used for.

> I also think it's wrong to conflate DI with XML.

Which, again, is not what he said at all.
Still does ;-).

Cheapest shipping method for them apparently. Hong Kong post has long had offices in the mainland though!
Jack Dorsey, Square - The Power of Curiosity and Inspiration
> First you criticise Java, then you bring up a point which (usually) is not a very big concern in garbage-collected languages.

Of course it is for a number of reasons (instance sharing or reusing, caches, registries, ...), and most GC'd languages (significantly, not Java or C#) give separate access to these two operations (allocating an instance and initializing it).

See Ruby (new/initialize), Python (__new__/__init__), Obj-C (alloc, init), etc...
Farewell to a Tech Icon: "Ken Olsen, Founder of DEC, Dies at 84"
Visualization: 3D Map of Extrasolar Planets
"One need merely think that the evidence on the god question is in about the same state as the evidence on the werewolf question"

Most theologies that I'm aware of might balk at the way McCarthy expresses that but, after clarifications all around, would emphatically agree. Indeed, the two are comparable. Faith is called "faith" for a reason.

Also, it is generally considered rude to publicly inquire about the details of another person's faith in such a confrontational manner as you've done here, however well you are intended or whatever McCarthy means. I think it is a safe bet - and he can correct me if I'm wrong - that McCarthy (and Dawkins) were encouraging personal choices, not externally pressured choices.

[That came off pretty condescending so maybe now I'm the horribly rude one. I hope people understand and agree with my intent here, though. Wrong question, wrong forum.]
Someone, please, bring eggs and throw them at Aaron Barr during BSides security Feb 14-15! Literally: bring eggs. Please, I'll by you a beer
You could argue that right up to the moment when you try to buy a Tesla sports car and they say, "Sorry, we don't take Happiness Express." ;)
Sadly, were he rewarded with a continuing money stream, he would likely justify the innocent names as "collateral damage" as the money would have been a mark of success.

Aaron Barr fancies himself a modern-day witch-hunter, and it's good he was hoisted on his own petard.
I'm not sure e-ink is an asset in a PDF reader. I use my iPad for a lot of technical papers and books. It's much faster than an e-ink display would be, and the page turning lag is still annoying. E-ink would be insufferable.
Thanks Jure, appreciated.
I doubt supply constraints are an issue. They're the single largest purchaser of flash memory in the world[1]. I imagine manufacturers would be bending over backwards for them, since their orders must all be quite large.

[1]:http://edition.cnn.com/2010/TECH/gaming.gadgets/10/21/macboo...