HNHacker News
TopNewBestAskShowJobs

TreyS

57 karma · joined April 1, 2012

submissionscomments
TreyS··on Inversion of Control Containers and the Dependency Injection pattern (2004)
Guice docs: “There are many advantages to using dependency injection, but doing so manually often leads to a large amount of boilerplate code to be written. Guice is a framework that makes it possible to write code that uses dependency injection without the hassle of writing much of that boilerplate code”

This is a common misconception. Guice’s docs delineate between dependency injection as a pattern and Guice as a framework that supports that pattern.

https://github.com/google/guice/wiki

TreyS··on Ford CEO says EVs will be sold 100% online with nonnegotiable price
Dealerships are major job providers in small towns and provide some of the better jobs. Salespeople, loan officers, etc.

Think replacing local grocery stores with Walmart. Low end jobs stay, high end jobs go away. Further hurts small towns.

My guess is that a good chunk of the efficiencies from this model will go to Ford corporate so it’s a wealth transfer from small towns to big co managers / stockholders.

TreyS··on Ask HN: Visualizing software designs, especially of large systems (if at all)?
Different types of diagrams highlight different aspects of a system.

If you can, try to put together 2 different diagrams presenting different views. For example, sequence diagrams, model diagrams, etc. each tell you something different. Having a few different perspectives on the same system will give you a richer understanding.

Not specifically related to visualization, but, also, if you spend a lot of time trying to understand a piece of code, once you understand it, document it (e.g. in a function or method comment). Over time, this makes a huge difference and will help you and others out when you revisit the code later.

TreyS··on Ask HN: How to raise funds for rare disease research?
Email sent
TreyS··on Ask HN: How to start learning about investments?
Some books that I read and found useful. These are mostly older books that have withstood numerous market cycles. Even if you decide to branch out, these are a good base to start from.

1. “Random Walk Down Wall Street” to understand index funds and why they generally outperform.

2. “Common Stocks and Uncommon Profits” for a general understanding of how to choose stocks (and companies) for the long-term

3. “The Intelligent Investor” for understanding the some of the human challenges of investing.

If you’re short on time and don’t want to make this a hobby, read #1.

TreyS··on Reviews for Mike Judge's "Silicon Valley" on HBO
"he's from Texas and has never lived in California"

Mike lives at least part-time in LA and attended UCSD.

https://twitter.com/MikeJudge http://en.wikipedia.org/wiki/Mike_Judge

TreyS··on It’s impossible to work your way through college nowadays
Also important to note that this is talking about the time to pay tuition alone. When you add living expenses, it's even more absurd.
TreyS··on Thoughts on Bitcoin
Citation?
TreyS··on In Fed and Out, Many Now Think Inflation Helps
Perhaps I should have used a different example, but the main point was that Galileo's supposed Leaning Tower experiment (http://en.wikipedia.org/wiki/Galileo's_Leaning_Tower_of_Pisa...) is counter intuitive and it's harder to convince laypeople of counter intuitive ideas especially when the "competing" idea is more intuitive.
TreyS··on In Fed and Out, Many Now Think Inflation Helps
Anecdotal but I would imagine it's similar in reputable state schools in red states: Texas has very few Keynesians yet economics professors at the University of Texas are overwhelmingly Keynesian.
TreyS··on In Fed and Out, Many Now Think Inflation Helps
"it does raise questions about why the school's arguments which seem so utterly convincing to so many people, don't manage to gain many converts among people who research the subject professionally."

I think it would be easier to convince people with no physics knowledge that a bowling ball falls faster than a golf ball. Intuitively, it seems that bowling ball should fall faster. Austrian economics seems to follow a similar thread. It's more intuitive and easier to grasp than the economics taught in the textbooks, but doesn't have much data to validate it.

TreyS··on Meetup Golf - a game I play to keep myself from networking wrong
Most big cities in the U.S. have quality public courses that aren't horribly expensive. Near NYC, there's Bethpage (recently hosted U.S. Open) http://nysparks.com/golf-courses/11/fees-rates.aspx and near SF there's TPC Harding Park (http://www.tpc.com/tpc.asp?id=7&page=778 reasonably priced for SF residents). But yes joining a country club would be a year of your income.

Disclaimer: Never played either just heard positive things about both.

Edit: U.S. cities (no idea about elsewhere)

TreyS··on A summer job paid tuition back in ’81, but then we got cheap
I'm currently a student at a public school. I work 20-25 hours a week during the school year (with a job that pays well for a student) and have a paid internship over the summer. I will be graduating with ~$35K in debt. When you add up COL and tuition, even at a public school, you can't do it working part time.
TreyS··on Want to learn to code? Start here.
I think Codecademy is great for people who already know how to code a little bit. I can use Codecademy to learn HTML/CSS or about using APIs. However, I think for a complete neophyte, a book like Learn Python the Hard Way is significantly better. Someone HAS to walk you through setting up a programming environment, running an interpreter or compiling, etc. It can be incredibly frustrating and intimidating for first timers.
TreyS··on Caps Lock Key Has No Place on a Modern Keyboard
I've mapped caps lock to control on my keyboard but I like to use caps lock when I'm typing on a phone. For acronyms and such it is useful and the inability to hold shift on an iphone makes caps lock a better option. However, on a keyboard when it is trivial to hold shift, it is useless.
TreyS··on Don't learn how to code, learn how to make things
"And learning to code by reading a Rails book? Don't you have to know how to code before you build even a basic Rails app? Even average coders can't easily grasp all the concepts behind building a full-fledged web app, nevermind someone who barely knows what a for loop is."

Agreed. As someone who has some coding experience (i.e. current CS student) but who is learning web dev, many parts of Rails/Django are way over my head. Rails/Django weren't designed for beginners. I've found starting with Flask which does considerably less than Rails/Django to be much more understandable. Sure I am probably often reinventing a shittier wheel but I think there is benefit in understanding what a full blown framework like Rails or Django provides before using one.

TreyS··on Would the economy be better off without MBA students?
I wonder how much benefit an MBA from a top school gives beyond signaling. If you are admitted into Harvard/Stanford/Wharton/etc you've been successful early on in your career. It seems to me that pursuing an MBA at that point is an extremely risk averse move. Credentialing for the sake of credentialing.

While there are tons of successful graduates of top MBA programs, it may be a function of who is admitted and not a function of the value added by the program.

TreyS··on Ask HN: How do you write great sentences, paragraphs, or articles?
Here's a great guide to writing clearly/concisely:

https://www.dropbox.com/s/y8862uack1he3f9/How%20to%20Write%2...

TreyS··on Ask HN: How much recurring income do you generate, and from what?
I would have loved this kind of thing when I played junior golf. I spent a lot of time making spreadsheets with all of my statistics. Have you tried marketing towards junior players? AJGA and some of the really competitive junior tours have a lot of serious players who would love to have comprehensive stats on their rounds.
TreyS··on Show HN: Block yourself from the Internet until you write or code each day
I don't think it's about liking or not liking writing or coding. It's easy to start the day with checking email, reading HN or other less productive tasks. It's just something to help you start your day Hemingway style -- writing (or coding) every morning without distractions.
TreyS··on In Math You Have to Remember, In Other Subjects You Can Think About It
"As someone who was taught the 'traditional' way of mathematics, can someone give a few pointers of de-programming myself from the traditional way that I was taught."

I tutor high school students in math and breaking the memorization, process based approach to math is usually pretty difficult. The biggest thing is to absolutely avoid memorizing or even looking at formulas. Instead, try and look at things graphically. A lot of formulas seem confusing and unintuitive but if you look at it on a graph, it makes a lot more sense.

A basic example is something like the distance formulas. Students often say "Gah I can never remember the distance formula. I need to memorize it before the test" because

d = sqrt( (x1 - x2)^2 + (y1 - y2)^2 ) seems complex and confusing.

But if you draw a right triangle, it's apparent that the distance formula is just finding the hypotenuse.

In a nutshell, focus on the why's and not the how's.