HNHacker News
TopNewBestAskShowJobs

treehau5

1,703 karma · joined April 2, 2014

submissionscomments
treehau5··on Software is narrative
I think I took the metaphor more to heart than others. I like to think of myself as a good storyteller. I can explain pretty in depth computer science topics to my business team who lack technical knowledge pretty well through stories. My problem seems to be translating this to software structures.

I wish I could be as good of a "writer" in my software, but I am always looking to others for the best practices. In this case, I am always in a constant state of doubt and "writers block", I need to figure out how to unleash my own creativity.

treehau5··on Building a Music Recommender with Deep Learning
Amazon tends to recommend things I like and the majority of the purchases have been because of their recommendations (good job Amazon, your software is doing it's job, raising sales). I think books and music are different though. Books have well defined categories. If I buy a pop-psych book, say "Blink", and then I am recommended "Peak: Secrets from the New Science of Expertise" it's pretty much going to be very likely I buy that too if I am interested in that subject.

If however I want recommendations for new Metal music, and my previous selection was Metallica then you play me some Megadeth, I am going to hate it and not be interested in it at all!

treehau5··on Summers Are Getting Hotter
Also, stop thinking that the greenhouse effect doesn't apply on a planetary scale and stop thinking we don't produce more carbon than ever existed in human existence and thinking that it is some "mere coincidence" or just "natural"
treehau5··on Adventures in Outsourcing: Cooking with TaskRabbit
Do you not like receiving extra appreciation in the form of compensation when doing an exceptional job at your work?
treehau5··on 110 N.F.L. Brains
Precisely. In rugby, it is much more stressed and emphasized to make secure tackles.

In football, at any given point and time there is one person with virtually a huge bullseye on them and it is sometimes a valid tactic to lay down a more punishing hit (cause a fumble, make a statement, scare your opponent to make a mistake or drop the ball next time, etc) at the expensive of not making a "secure, form tackle"

Ironically, if I am remembering correctly, the Seahawks and coach Pete Carroll teach more of a "rugby" style tackle, and that's why they consistently have one of the best tackling defenses.

treehau5··on The Odin Project – Learn Web Development for Free
> I suspect that you learned a lot from Rails, though. For example, your applications probably have a thought-out directory structure [..]

Absolutely, not saying my experience doesn't translate. However directory structure doesn't exist like you think in go. Files are the primary organization, and the only thing that goes in subfolders are different packages. It's actually quite nice, now I don't need to dig into 4-6 folders to get to the important stuff like I did in my Java/RoR days.

> The "just use standard library" argument often seems a bit deceptive to me, though.

It is absolutely a mantra in the go community. No deception here.

> For example, how are you managing schema updates?

Use your favorite tool! So funny you mention, I have a RoR background and I loved active-record migration, so I use standalone active record migration https://github.com/thuss/standalone-migrations, but you can just as easily use any other schema migration tool like Liquibase.

But what I am learning more and more these days is to just write sql. Write your migrations in plain sql. It's always easier for everyone involved. SQL is a ubiquitous language.

treehau5··on Thanks to Venmo, We Now All Know How Cheap Our Friends Are
> Why agree to go out somewhere with your friends if you are just going to drink water?

What do you think I'm an amateur? Club soda with lime, in a highball glass.

treehau5··on The Odin Project – Learn Web Development for Free
> Straight up, I want you to explain the complete before and beneath of your favorite tech stack or this is problematically hypocritical.

I can answer this one. I could explain to you every aspect of go's net/http package and database/sql package. The interface is compact, and even the source is very legible and easy to digest. You don't need all the extra bullshit to build API and run CRUD operations. I am a former RoR developer. I have lost no speed in just using simple tools and simple packages.

Also, I can have a junior or associate developer from any background get up to speed in a matter of days. Where as when I was at the Rails shop, you specifically had to hire a "rails guy/gal" and even then still took them days to get started.

(Don't mean for this to be a "go is great" rant, I am sure there are equally simple tools out there - Dropwizard is another one that comes to mind -- just a bunch of jars glued together)

treehau5··on Thanks to Venmo, We Now All Know How Cheap Our Friends Are
This problem is even worse when it's not even necessarily income levels that is the problem, but just different values around money & spending. If you have the same income level, but find it outrageous to spend x on y, you just get viewed as a "cheap ass"

It's not my fault I don't want to pay 13 dollars+tip for a cocktail when I can make 20 of them at home for the same price.

treehau5··on Sugar-sweetened drinks with protein rich meal affect metabolism
This is not a good comparison. Your counter analogy is equally bad.
treehau5··on China forces one of its Muslim minorities to install spyware on their phones
Then they came for the Infidels -- and Allah and his messenger were glorified when the Fitnah were no more.
treehau5··on Say Goodbye to Spain's Three-Hour Lunch Break
There are many reasons, too many to list here but in essence, modern Greece has had a very tough time, from the Ottoman yoke, to British control, monarchies and military dictatorships, the Balkan wars in their back yard, then WWI/WWII naturally took the country back further, especially w.r.t to Mussolini (the famous "Oxi day"). (https://en.wikipedia.org/wiki/History_of_modern_Greece) After the war was a military dictatorship. So really we have had 1970 and on (heck 1970 was the first year the government and people could even decide on what _dialect_ of Greek language to use. To me, it's a miracle the country still stands and is a testament to it's resiliency.

The Crisis is a big debt snowball that shouldn't have been allowed to happen, kind of similar to the American housing crisis where people who should have never been getting $500,000 mortgages were given $500,000 dollar mortgages then the world was shocked when they somehow managed to default, and meanwhile you had corrupt Wall Street bankers betting that these people would default.

Similarly, you hand a country who has been in borderline poverty since the formation of their autonomous modern nation all this money, then are surprised when their corrupt politicians and banking institutions (as well as your corrupt Wall Street institutions like Goldman Sachs, who helped these corrupt bankers hide their debt) mishandle it.

Then of course the IMF took advantage of the situation, and it turned into basically one big, as Americans would call it "poor tax" where you take advantage of someone who is already down. (Hey this guy can barely pay for his bills at it is, lets fuck him over and charge him 25$ dollars to cash his 300 dollar paycheck -- like this, but on a country level. Somehow that moderate amount of debt turned into 137% of GDP after it snowballed and stupid ass Greek politicians kept accepting these stupid packages with stupid terms /endrant)

My suggestion about the Greek ethic was a sarcastic one, I put it in quotes, apologies if that didn't come through the text. Many people think just because you value work/life balance that you are somehow "lazy". I think Americans are seeing this now with millennials who demand they have adequate work/life balance (and good for them). It's always been a common adage that Americans live to work and (most European countries) work to live. I don't think this is necessary unique to Greeks, it just so happens we are in the crisis and it's an easy target to point the finger and just say "well if they just weren't so lazy!"

treehau5··on Say Goodbye to Spain's Three-Hour Lunch Break
> Past Greek governments

Therein lies the distinction. The government of course loves the money. That's why the people are fed up with the greedy politicians and bankers.

> It's funny how that distaste for money and accompanying virtue signaling only managed to manifest itself once it was time to pay back all the borrowed cash.

It's funny how this statement proves you have absolutely zero knowledge of the culture and are projecting your own pessimistic views on people and societies onto one you know very little about.

treehau5··on Say Goodbye to Spain's Three-Hour Lunch Break
Actually the free fall has seemed to have slowed, and bottomed out.

It's just a different cultural value -- not every culture values the green dollar as much as America or the UK or likewise. Is it the best for your GDP? Probably not, but it's honorable. "Cash is King" is not something you hear many Greeks say about one another

treehau5··on Say Goodbye to Spain's Three-Hour Lunch Break
Kind of a pointless chart to me at this point since the data is from 2011 on - massive austerity and joblessness is skewing this data -- the people who do have jobs are working longer just to make the same pay, and the country has 22.5% unemployment, and hovers around 50% youth unemployment. I would be interested in viewing the charts pre-crisis - 2009 and earlier.
treehau5··on Say Goodbye to Spain's Three-Hour Lunch Break
> I would love to hear from a Greek on this.

I am Greek

treehau5··on Say Goodbye to Spain's Three-Hour Lunch Break
> Globalisation makes it inevitable, of course,

I would push back on this thinking that Globalization itself is inevitable. We have seen the reaction to this thinking in recent years -- you end up with Trumps, and Mays, and (almost) Le Pen's.

Greeks are a prime example -- despite the intense crisis and austerity measures, the country still values its lunch and coffee breaks, despite how much we here in the west criticize them for "being lazy"

treehau5··on How California is changing its roads for self-driving cars
Sometimes bending explicit policy is part of providing exceptional customer service. Not every situation is the same. If companies never bent the rules, you would never get these wonderful PR stories that companies love -- as an example.

intrinsically this is part of the problem -- we are reducing decisions down to basically a hard set fast of rules that I am sure AI will implement and arrive to the correct rules better than any human can -- but we aren't robots. There is no correct set of levers to pull, and you can't take emotion out of decisions that are made. Nobody likes strict legalism, and you can't possibly make rules for every single situation.

treehau5··on How California is changing its roads for self-driving cars
Until the situation I am in requires compassion and or empathy to resolve. Maybe the outcome isn't desired from my perspective, but I feel better about it now.
treehau5··on How California is changing its roads for self-driving cars
The same reason you get frustrated when you realize the customer service agent you have been talking to the whole time is just AI powered, and more then 3/4ths of the response have been pre-filled.

Loss of the human element. Kind of hard to describe, but very obvious when it is missing.

treehau5··on Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
Increase in features yes and the continual succumbing to developers who just can't seem to think outside the strict OO paradigm.

Prototypical inheritance is really not that hard to understand.

I would rather see JavaScript fix the existing functionality, such as sometimes the prototype chain not being correctly established when instantiating a new object.

treehau5··on Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
CoffeeScript always felt forced onto me during the height of 37Signal's influence of software development trends at the time. At the only rails shop I ever worked at it was heavily resisted.

It was at the same time I was reading more and more of Resig blogs and books (Secrets of the JavaScript ninja) and I really began to learn and grok just plain normal JavaScript. I said to myself, "you know, this really isn't that bad"

Haven't looked back since. I hate the direction ES is going.

treehau5··on Replacing My Kid’s College Fund with a “Start Something” Fund
> That's it.

Actually, you scratched the surface, but it goes so much further than that -- that sadly most of our modern universities have lost sight of. I've posted this in previous comments, but universities are actually suppose to help build more just societies -- an idea Plato describes as the purpose of university, and echoed by many chancellors across the country.

"The goal of university education is to help build a fairer, more just society" - Steven Schwartz. [0]

"Plato regards education as a means to achieve justice, both individual justice and social justice." [1]

[0]: https://www.timeshighereducation.com/comment/columnists/the-...

[1]: http://epublications.marquette.edu/dissertations/AAI9517932/

treehau5··on Reverse Engineering One Line of JavaScript
> Go just takes it to the extreme until you can't read an entire function on a single screen but have to scroll through piles of code and error handling all mucked together.

That's the cynical way of looking at it (also sounds like you haven't read or written much go code). As someone who has written go code full time for 2 years, here's another perspective.

It's not about "the programmer is too dumb", it's about people of varying skill levels working on really, really large code bases. A junior, mid, and senior can all work on the same business problems. Conversely, if you have a senior ruby dev, they will write these terse, elegant, functional-chained methods that require much time to digest and conceptualize. This leads to wasted programmer time. All the elegance and terseness I have seen in the wild, it has never once saved anyone time, minus the few 10's of seconds it saved the programmer who wrote it who thought they were being "clever" because they wrote that if statement in one line instead of three. Code is maintained and read more than it is written. Go encourages writing code for the reader.

Also, "piles of error handling" is preferred. Go treats errors as values that you can program around. It took a while for me to shed the bad habits of languages prior (ruby, python, javascript, java and c#) but afterwards I fell in love. Handle your errors -- right there where they happen. Never again do I have to deal PokeMon try/catching.

treehau5··on Toward Go 2
It's on twitch I believe
treehau5··on Toward Go 2
Actually what really happened was instead of trying to catch em 'all with pokemon try/catching, they decided to treat errors like it was part of the actual code. Errors are values. You can actually code with them. Amazing, right?
treehau5··on Toward Go 2
I think this is a fair question. We have a lot of pseudo-intellectuals here that think 90% of their job isn't writing business functions. Not having generics in Go has not hindered me at all in performing the objectives of my business. Everyone wants generics, no one knows why. When I had generics in my previous two roles where I used Java and C# respectively, I can count on two fingers the number of times I needed them, and once was because a library forced me to.
treehau5··on Toward Go 2
I think you are confusing getting updates with "design"

Go gets frequent updates as well.

treehau5··on Toward Go 2
Conversely, I would stop using Go in my projects if it introduces generics.

If Go wants to be more sophisticated, there are other sophisticated languages I can use out there like Haskell, Rust, F#, Scala, etc. The problem I have learned in my career is "sophistication" usually gets in the way of getting things done because now you have all these clever developers full of hubris creating these novel implementations that nobody else in the world understands, and your project fails but hey -- at least you have a dope, terse, generic implementation -- totally rad.

treehau5··on Toward Go 2
> Pike said "Go design" is done. Except that a language which design "is done" is a dead one.

Guess C is done for.

← PreviousPage 2 of 18Next →