HNHacker News
TopNewBestAskShowJobs

new_hackers

451 karma · joined December 18, 2014

submissionscomments
new_hackers··on PowerShell is open sourced and is available on Linux
ArrayList.Add ... whatever ... | Out-Null

Its not implicitly returning. The return value wasn't assigned so it is emitted to the pipeline.

new_hackers··on PowerShell is open sourced and is available on Linux
yup, me too!
new_hackers··on PowerShell is open sourced and is available on Linux
difficulties with jumping through hoops to consume and produce binary output are really the only "problem" I've had with powershell
new_hackers··on PowerShell is open sourced and is available on Linux
Select-Object also makes it very, very easy to make new objects
new_hackers··on PowerShell is open sourced and is available on Linux
insane in a good way right? You aren't "returning" you are emitting to the pipeline
new_hackers··on PowerShell is open sourced and is available on Linux
ls and grep are aliases in powershell, so not exactly the same, but pretty close

For your first question: you have converted types. When you did a ConvertTo-Json, you serialized the System.IO.DirectoryInfo type into JSON compatible data. When you ConvertFrom-Json you have a PCSCustomObject.

The conversion to CSV is different for the System.IO.DirectoryInfo than the PSCustomObject. This has to do with the sub-types (converting from objects into serializable JSON objects). It also appears to handle time strings differently as well.

new_hackers··on Writing Less Code
"their function is getting fucked"

It sounds like they are practicing the oldest profession

new_hackers··on Writing Less Code
Agreed, very impressive layout!
new_hackers··on Pair Programming Is Not a Panacea (2014)
I'm a fan of side by side programming.

This is where both people have their own computer. Both work on quasi-independent problems, but are free to ask the other questions and bounce ideas off them. Basically, stay far enough away in the code to not create to many merge conflicts, but close enough that you both can keep a mental model of your work and the others work.

I prefer to share a whiteboard rather than a keyboard.

new_hackers··on I'm a Judge and I Think Criminal Court Is Horrifying
Yes, and the fact that in common culture there is a belief that the prison system itself will punish the especially vile offenders. The acceptance and expectation that we can give a child molester a prison sentence so the prison population can kill him is demented. But it seems we routinely give them an official slap on the wrist, then with a wink and a nod we turn the other way and say "do what you will". If child molestation deserves the death sentence, then our system of government should do it outright, instead of relying on the undercurrents of justice.
new_hackers··on Most of us would be better off without lawns
I enjoy taking care of my lawn. It is a chance to "turn off" and just do physical labor.
new_hackers··on Why I'm not a big fan of Scrum
right, so the crux of the issue is that to understand how much technical debt you have, you must understand what the market wants, and what features you need to meet the demand. So I think it is extremely subjective. You could say "our product it perfect, it should never change". Thereby in itself you have accepted that all processes and information that create the product are also perfect, and therefore your technical debt is zero. You must pay nothing to achieve exactly where you want to be.

You could think of technical debt as the energy lost due to friction. It is the energy lost changing from one point to another in your domain space. Perhaps "technical friction" would be a better concept for software. However, that is even more hand-wavvy and harder to measure ;-)

new_hackers··on Why I'm not a big fan of Scrum
Agreed. One could argue that at time t+1, the product that meets the market need is the N+1 version. Therefore, even if feature N developed at time t was perfect for that time, it is still technical debt at time t+1. I could think of a lot of technical innovations that at their time were the perfect fit for the market, but at a future time become technical debt.

I think the point to take away is that software is just a tool, an artifact, and at the end of the day it just matters that it does what it is "supposed to do". However, civilization is dynamic, so we are constantly seeking to optimize an ever-changing potential function. So perhaps it is not the programmer that is running in circles, perhaps it is the market. So for the manager accounting for the technical debt, they must accept the change as a cost of doing business.

new_hackers··on Research indicates that only about half of perceived friendships are mutual
Anymore, my only "real" friends are my parents, my wife, and my pets (hopefully someday my kid). My wife tops the list, since she is the one who I can talk endlessly to, and knows when to tell me to shut up :-)
new_hackers··on Why I'm not a big fan of Scrum
I believe the technical debt could be measured as:

The time it takes to change code that is already written.

For instance, if you want feature N+1, but to do feature N+1 you need to change feature N, then the amount of time you spend changing feature N is the technical debt.

So when you are estimating, you could say: We need to refrob the whozzit to make it compatible with foo 2.0, then that work could be captured as technical debt.

new_hackers··on Why I'm not a big fan of Scrum
I think the "speed" part is that once you realize it is bad code cause you didn't know how to do it better, you don't have the time to scrap it and start over.
new_hackers··on Ask HN: Any experience with defiant children?
I would recommend trying to show the defiant child that he really does need others.

If he tears up his room, then remove anything you care about and let him tear the rest up.

If he is not nice and polite during mealtime, then he does not eat. Or the meal that is provided is very basic, and must be eaten in the room.

Eventually you may have to remove all forms of pleasure, including toys, games, nice clothes, etc.

During this process, communicate that you all love him, but do not like how he is acting. Explain that nice polite behavior will be rewarded. You will eventually feel like you are running a small jail, but eventually it will sink in.

Also hard work is very good at wearing kids out. If you have the opportunity then digging a hole is good therapy. Make him dig a good hole before he can have dinner, and it must be done right, or back to the room. After dinner, make him fill it back up. Once he starts correcting, give more useful chores like sweeping floors.

Keep up the communication, and work on directing the energy towards physical activities and praising polite behavior. Perhaps a game of horse with dad would be a good reward.

Good luck!

new_hackers··on Massachusetts Bans Employers from Asking Applicants About Previous Pay
If it is a force acting through a distance, I consider it work.

(I figured I'd toss that one out there for the engineers in the room ;-) )

new_hackers··on Hove bar blocks mobile phone signal to be more social
I think this will become more trendy.

It is pretty lame to walk into a "cool" or nightspot, only to see everyone staring blankly into their phones.

new_hackers··on After 100 years World War I battlefields are poisoned and uninhabitable
You mean like the grey goo?

https://en.wikipedia.org/wiki/Grey_goo

new_hackers··on The Inner Json Effect
Did anyone else notice the part about checking into the trunk?

I agree that the framework and people were definitely WTF.

However, I would at least have talked to someone before committing to the trunk, even if I thought I was just adding comments.

new_hackers··on Preemptive Scheduling of Erlang NIFs
That last bit sounded very cool. When you said "communicate with streams or sockets or shared memory", I immediately thought "oh no, I don't want my simple little C code to have to do all that!"

But by wrapping it with Erlang, then my C code can do what its good at, and Erlang can do what it is good at.

new_hackers··on What If There Just Aren’t Enough Jobs to Go Around?
Nope. It isn't just, it is the jungle. A wise man once told me, "you must push the cart when you are young, so that you may ride it when you are old."

Our older generations must be looked after by the younger, instead of just discarded when their utility is below market average.

Your scenario works when everyone is on a fair and equal playing field, however for those that are disadvantaged, you are quite literally saying they must starve or be killed for the good of society. That my friend is a cruel world, and not one which I wish to strive for.

new_hackers··on Pandora Reports Quarterly Revenue Short of Analysts’ Estimates
In a good place I would think. I still prefer their service model over the others. Plus with the Music Genome (arguably their secret sauce) maybe they have value above simply streaming music?
new_hackers··on Startup Technical Diligence Is a Waste of Time
You hate PowerShell??? Say it ain't so!
new_hackers··on Prefer duplication over the wrong abstraction
"Brush your teeth" is dangerous advice if improperly applied.
new_hackers··on Why I'll never abbreviate a variable as long as I live
The older I get, the less I value "cleverness" in programmers. I used to delight in writing code golf one-liners. But now I realize it detracts from solving the hard problems, and it makes simple problems harder.
new_hackers··on Why I'll never abbreviate a variable as long as I live
I worked at a place where they would frequently use 'no' as the abbreviation for 'number'. I never could bring myself to do that.
new_hackers··on Why I'll never abbreviate a variable as long as I live
I see some new emojis on the horizon!
new_hackers··on Show HN: Hacker Experience 2 – Open source hacking simulation
Sweet, love it! Was thinking about building a mmorpg with elixir and elm. Instead I'll just tag along with your project (great background story btw). I've signed up, can't wait to get started
← PreviousPage 5 of 8Next →