HNHacker News
TopNewBestAskShowJobs

dmiladinov

178 karma · joined April 5, 2011

Find me on stackoverflow: http://stackoverflow.com/users/114359/danny

Check out my github: https://github.com/danielmiladinov

submissionscomments
dmiladinov··on What's New in C# 6.0 [video]
Manager: "Why isn't the project done yet? Why are you still coding?"

macromaniac: "Patience, I'm still working on salad..."

dmiladinov··on How RAID-6 dual parity calculation works
From the article:

> This article is for computer engineers who would like to have a high-level understanding of how the dual parity calculation works, without diving into all of the mathematical details.

I believe that is the value proposition for reading: gaining an understanding of RAID-6 parity calculation while glossing over the math-y bits.

dmiladinov··on Is TDD dead?
Oh come now, that's just an extra safety net.

Don't take IDEA local history as a replacement to version control, rather a supplement.

dmiladinov··on Inverted Polymorphism With Pattern Matching
Without actually saying the words, this post makes a good introduction to the [expression problem][0], trading the ease of adding types for the ease of adding behaviors.

[TINSTAAFL][1], but what a functional programming paradigm takes away it replaces with brevity, concision, additional type safety, and greater opportunities for the compiler to restate your algorithms in a form more conducive to parallelization and concurrency.

[0]: http://c2.com/cgi/wiki?ExpressionProblem

[1]: http://en.m.wikipedia.org/wiki/There_ain't_no_such_thing_as_...

dmiladinov··on The new PHP
In order to use variables from the scope that the anonymous function came from, you have to explicitly import them into the anonymous function with the use[1] block:

    public function getTotal($tax)
    {
        $total = 0.00;
        
        $callback =
            function ($quantity, $product) use ($tax, &$total)
            {
                $pricePerItem = constant(__CLASS__ . "::PRICE_" .
                    strtoupper($product));
                $total += ($pricePerItem * $quantity) * ($tax + 1.0);
            };
        
        array_walk($this->products, $callback);
        return round($total, 2);
    }

In other languages that have true closures, the anonymous function "closes over" the lexical scope in which it was declared.

[1]: http://www.php.net/manual/en/functions.anonymous.php

dmiladinov··on JetBrains C++ IDE: Status update and Video report
There's also some vmoptions tweaking you can do to increase performance some more.
dmiladinov··on Isaac Asimov Predicts in 1964 What the World Will Look Like in 2014
> "...heating water and converting it to coffee"

Spot on! What, oh what, would I ever do without my Keurig machine!!!

dmiladinov··on Predictions on the future of databases
Also, "as of" reporting is a built-in feature requiring no additional configuration.
dmiladinov··on [dead]
Add a commit for yesterday (I just picked whatever arbitrary time):

   git commit -a -m "Insightful Commit Note" --date "2013-09-25 08:24:32"
Might also be worth mentioning the [difference between commit date and author date][1]

[1]: http://stackoverflow.com/a/11857467/114359

dmiladinov··on The Second Coming of Java
The second coming of Java the platform (the JVM), at any rate.
dmiladinov··on Why I Hate Frameworks (2005)
Now I'm confused - I thought Benji Smith wrote this?
dmiladinov··on Email exchange between Edward Snowden and former GOP Senator Gordon Humphrey
This! A thousand times, this!
dmiladinov··on Statement from Edward Snowden in Moscow
According to Wikipedia:

Exile means to be away from one's home (i.e. city, state or country), while either being explicitly refused permission to return and/or being threatened with imprisonment or death upon return.

So he's probably not so much worried about whether or not he can return to the U.S., but rather what would happen to him when he did.

http://en.wikipedia.org/wiki/Exile

dmiladinov··on "Disable Javascript" option removed in Firefox 23
As long as you can still disable JS via about:config or NoScript, this is hardly worrisome.
dmiladinov··on Clojure core.async Channels
Oh, I wasn't aware that ClojureCLR was still being maintained. All I knew was the Hickey was no longer maintaining it.

Thanks for clarifying!

dmiladinov··on Clojure core.async Channels
> Inference : ClojureCLR seems to be dead :(

For at least a few years now.

I remember watching a Hickey talk where I think I recall him saying it was even before 2011, but the exact name escapes me at the moment. However, I was able to find this snippet from 2011:

Fogus: Clojure was once in parallel development on both the JVM and the CLR, why did you eventually decide to focus in on the former?

Hickey: I got tired of doing everything twice, and wanted instead to do twice as much.

http://codequarterly.com/2011/rich-hickey/

dmiladinov··on The weirdest languages
Yes, as for the Balkans, some would argue that Croatian, Serbian and Bosnian are all just dialects of the same basic language.
dmiladinov··on 21 Months In: How to Manage a Remote Team
> I'd love to see some statistics on what kind of effect a half hour per employee per month does for overall happiness and employee retention.

I would too, and here's some anecdata for you: one of my old bosses would conduct weekly one on one meetings with all of the developers on his team (anywhere from 4 to 8 of us at different times) and I'd have to say that personally they were some of the best manager-direct experiences I've ever had since.

One on one meetings are one of the most important tools out there for helping organizations build relationships with their people, helping them produce more results, as well as increase retention.

Anybody interested in starting them at their organizations should check out the manager tools website. They produce several weekly free podcasts as well as offer other products and services.

https://www.manager-tools.com/docs/Manager-Tools_One_on_One_...

http://www.manager-tools.com/2005/07/the-single-most-effecti...

dmiladinov··on You can't impress developers
All that's left when you're done with the first 90% of development is the other 90%[1].

[1]: http://en.wikipedia.org/wiki/Ninety-ninety_rule

dmiladinov··on We Think We Know What Elon Musk's Hyperloop Is
Half serious, half tongue-in-cheek, but he's apparently had this idea since at least Iron Man 2: http://www.youtube.com/watch?v=EuG2AVFB-g0
dmiladinov··on Introducing Android Studio
You're right, it isn't.

This post[1] from JetBrains helped clear the situation up for me.

[1]: http://blog.jetbrains.com/blog/2013/05/15/intellij-idea-is-t...

dmiladinov··on Introducing Android Studio
Even the community edition[1] supports android development. Just point IntelliJ at your android sdk installation folder, and you're off to the races!

[1]: http://www.jetbrains.com/idea/features/android.html

dmiladinov··on Canadian anti-piracy outfit pirates photos for its website
Two names come to mind:

Irony[1], and

Quis custodiet ipsos custodes?[2]

[1]: http://en.wikipedia.org/wiki/Irony

[2]: http://en.wikipedia.org/wiki/Quis_custodiet_ipsos_custodes%3...

dmiladinov··on Amazon Coins Launching
Is this any different from how Facebook Credits work(ed)?
dmiladinov··on Hijacking airplanes with an Android phone
Between the TSA groping you at the terminal and now the scary possibility of ne'er do wells initiating shenanigans from their smartphones in mid-air, it's enough to make me never want to fly again.
dmiladinov··on To be a better UI/UX designer, go to a foreign country, rent a car, and drive.
When I first moved to Pennsylvania I was completely dumbfounded the first time I came to a stop at a stop sign and the driver behind laid on his horn - I didn't read the "fine print" below the sign: except for right turn[1]

[1]: http://www.pacode.com/secure/data/067/chapter212/s212.107.ht...

Edit: Here's a source with a photo: http://www.another-mile.com/2009/12/stop-means-stop-except-r...

dmiladinov··on Shodan: The scariest search engine on the Internet
I think it's because you can use botnets to divide up the vast IPv4 search space among the individual bots and crawl it exponentially faster.
dmiladinov··on Shodan: The scariest search engine on the Internet
For similar coverage about finding barely-secured devices that shouldn't have ever even been connected to the Internet, check out the Security Now! podcast, episode 396 - The Telnet-pocalypse:

http://www.grc.com/securitynow.htm

Transcripts are available in several formats:

http://www.grc.com/sn/sn-396.htm

http://www.grc.com/sn/sn-396.txt

http://www.grc.com/sn/sn-396.pdf

dmiladinov··on A command line refactoring tool for PHP
PHPStorm is like the perfect gateway drug. I first became familiar with JetBrains products through PHPStorm, but have since upgraded to IntelliJ IDEA. IntelliJ IDEA is the perfect polyglot IDE, with support for the following either in-built or via plugin (and forgive me if I leave anything out, or add it in a reply):

- Java

- Scala

- Clojure

- Android

- PHP

- html/css/javascript

- Python/Django

- Ruby/Rails

- Groovy/Grails

- Actionscript/Flex

I'm a raving fan!

dmiladinov··on Love what you do, not what you earn
This.

I used to work at an organization that paid conspicuously less than local market value for comparably experienced developers.

The work environment, however, was a really pleasant one to work in. There were quarterly and annual company-wide events, such as going to local sporting events, scavenger hunts, Christmas dinners at fancy restaurants, and the like.

My boss was great and took an active interest in developing the skills of his team, and successfully tanked upper management, leaving us free to develop in peace. All the developers ate together in our own break room, usually over board games. There was a sense of camaraderie on our team you don't just find everywhere.

I loved working there; though I didn't want to, I ultimately had to leave when I started a family, got a house, and my expenses outpaced my income.

Perhaps I should have left sooner. Perhaps I was unwittingly underselling myself. However, I prefer to think of all of the above I mentioned as "non-cash" compensation.

Page 1 of 3Next →