HNHacker News
TopNewBestAskShowJobs

new_hackers

451 karma · joined December 18, 2014

submissionscomments
new_hackers··on Exploring CLI Best Practices
Disagree.

A CLI is fundamentally for executing from the command line. Thus, embracing the power of the command shell is best practice.

If you want a human to see it, put it on stderr.

If you want a machine to see it, put it on stdout. Also I strongly agree with making it "structured" output. At minimum, a line-oriented record output is fairly easy to process downstream.

EDIT: If it is an interactive console application (REPL), then stdout is okay i guess.

new_hackers··on Ask HN: Back-end team does not document their APIs. How do I convince them?
or the code.

depending on this API, it could just be easier to look at the code. Seriously, if it is just exposing some database tables, then I don't necessarily always see the point of extra documentation. With extra docs you have to answer:

    * Who writes the docs?
    * Who reads the docs?
    * Where are the docs?
    * When are the docs written?
    * How are the docs written?
Basically, unless you have a dead-simple process, or a docs champion, you've just created another project. If you can answer these questions:

    * Who writes the codez?
    * Who reads the codez?
    * Where are the codez?
    * When are the codez written?
    * How are the codez written?
Then the simplest thing may be "just read the code"
new_hackers··on Ask HN: Back-end team does not document their APIs. How do I convince them?
I would think long and hard about the following questions:

What are your expectations?

What is the minimum possible that could be done to meet your expectations?

What deficiencies currently exist that are blocking you?

Once you have this written down, only then should you approach the other party. Remember YOU think it is "messy" "lacks docs", however others may think it is fine. You will not win any friends by demanding someone does more work that they don't consider to be worthwhile.

If you have no leverage, then you are asking for a favor.

Be nice, be friendly and courteous. Try to see the other person's viewpoint.

Good luck in your negotiation.

new_hackers··on Is Facebook’s Massive Open Office Scaring Away Developers?
I have over-the-ear comfy headphones that I wear. Lots of time I don't have music playing.
new_hackers··on Is Facebook’s Massive Open Office Scaring Away Developers?
We use chat for community discussions. MUCH easier to simply tune out
new_hackers··on Is Facebook’s Massive Open Office Scaring Away Developers?
Hey, you guys check out that new restaurant down the street? Is it any good?
new_hackers··on Is Facebook’s Massive Open Office Scaring Away Developers?
This. Polite, business-like etiquette goes a long way to productivity.
new_hackers··on World needs $90tn infrastructure overhaul to avoid climate disaster, study finds
I may be jaded, but I just don't see it happening. People love power and using power. Too many of us are greedy, and lazy. Too many regect the science. Too many weren't taught to respect the earth, and we don't teach our children. Too many are caught up with winning at all costs.

What we have lost is our humility, our humanity, our will power and our motivation.

The problems are too big, and I'll be dead soon anyway. Might as well enjoy it while you can. YOLO.

new_hackers··on Ask HN: After an interview, how long before you know they're just not into you?
Don't send more than one follow-up email. It usually just irritates people. If they want you they will contact you.

On that note, you keep looking, even if you had the greatest interview ever. Until someone starts paying you, you aren't hired.

And if someone does make an offer, tell them you want a day or two to think about it.

Remember, you are super eager to start, but usually the business is doing business as usual. So play it cool.

The best possible situation is you get a couple of offers at the same time, so you have options.

And if you start somewhere, then a week or two later your dream job calls, then quit and go follow your dream.

Good luck!

new_hackers··on Uber-owned Otto to offer freight hauling services using autonomous trucks
Cooperative behavior is the best for throughput, however it can lead to deadlocks. Competitive behavior slows overall throughput, but helps eliminate deadlocks in the system.
new_hackers··on Uber-owned Otto to offer freight hauling services using autonomous trucks
I don't want to sound pragmatic, but I will consider the driverless car successful if we get it working in places like Kansas or eastern Colorado, and completely ignore highly unpredictable, densely populated urban areas.

If you are taking a long trip, or hauling freight, then I'd rather get out on the open road, turn on the AutoPilot and take a nap, or do something more productive with my time.

new_hackers··on Not Just Any Old Geek
10x is greater than 2x, so yes it is possible
new_hackers··on What I Wish I Had Known Before Scaling Uber [video]
With programers you already have a problem.
new_hackers··on Ask HN: If you were paid to learn, 8 hours a day, what would be your routine?
I had free weights at my house, they sat in the office near my computer. Actually I found that if I was on a tough problem, I could do a set, then come back and sometimes that would help me get back in the groove. It also added some light upper body workout to the jogging and biking I was also doing.
new_hackers··on Ask HN: If you were paid to learn, 8 hours a day, what would be your routine?
Yeah it was harder at first, but once I got my rhythm it worked. Also I was unmarried, so that made it muuuuch easier. I would do job searches in the mornings, programming in the afternoon. Also note that after 6 on Friday I was "off" until Monday, so I used that time for dating/socializing etc.
new_hackers··on Ask HN: Python: Procedural vs. Object-Oriented – what factors matter?
By 'Object-Oriented', I'm assuming you mean with classes? Since most (if not all?) variable instances in Python are object, then you will always be at some level working with 'Object-Oriented' code. However, you don't necessarily have to write in an 'object-oriented' style.

Some of the typical arguments for classes are:

    * Inheritance
    * Polymorphism
    * Encapsulation of state with methods
    * Information hiding
    * Namespace
With python you can't have information hiding easily (no "private" members).

Also with python, since it uses duck-typing, you don't necessarily need classes to have polymorphic-like behavior.

Python doesn't have a this variable, like C++, and all class methods require the beginning variable to be an instance of the object. So you could implement the same functions as simply a set of module functions that expect their first argument to have certain attributes.

You do have inheritance, which when designing a "framework" can result in less code for your end users. However, you can do similar things with function decorators, and composition.

Classes do provide a way to have a namespace, but so do modules, and functions.

So at the end of the day, you don't really need classes (AFAIK), but if you like that style, it is available to you. TIMTOWTDI!

A compelling reason to write code with classes is if you are integrating with another project that also uses this style.

new_hackers··on Why don't black and white Americans live together?
I'm saying that there at one time was a business opportunity for someone who wanted to setup a lending company that offers black families fair and favorable terms on mortgages. (Granted, there may be some gray area on 'fair and favorable').

Partially because of Fannie Mae and Freddie Mac and the Community Reinvestment Act, banks were incentivised. Black families were targeted by predatory lenders who knew the rules well enough to get the loans for the individuals, individuals who perhaps were not in an economic position to be able to fulfill the agreements of the loans, then resell them in mortgage backed securities. At the micro level, the Community Reinvestment Act was "a good thing". We as a society want everyone to have a home. However, it did have negative consequences at the macro level.

So there was a business opportunity at one time. Is there today? I don't know. And yes, it was probably an over-characterization.

new_hackers··on Why don't black and white Americans live together?
This already happened with predatory lending and sub-prime mortgages.
new_hackers··on Ask HN: If you were paid to learn, 8 hours a day, what would be your routine?

    6:00 am - wakeup
    6:10 am - jog
    6:30 am - nutritious breakfast including fruit, carbs, protein and water
    7:00 am - shower
    7:30 am - coffee (limited) and classical music
    8:00 am - review learning list and choose focus
    8:30 am - focus and learn
    10:00 am - stretching, situps, pushups followed by water
    10:15 am - focus and learn
    11:45 am - evaluate learning, update learning list
    noon - nutritious lunch (limited) with water
    12:30 pm - bike ride
    1:00 pm - review learning list and choose focus
    1:30 pm - focus and learn
    3:00 pm - weightlifting followed by water
    3:30 pm - focus and learn
    5:00 pm - evaluate learning, update learning list
    5:30 pm - dinner (limited)
    6:00 pm - your time
    9:00 pm - bedtime
When I was unemployed, this is the routine I followed. I was able to pick up quite a few technologies that helped me in my current job. Notice that quite a bit of the routine is focused on YOU. If you feel good, and confident about yourself, you can learn a lot.
new_hackers··on Artificial Intelligence has written a beatles-style pop hit
I can say without question that this AI has done waaaaaayyyy to much LSD...

But given that, it is still surprisingly coherent, melodic and generally enjoyable!

new_hackers··on Police Accidentally Record Themselves Conspiring to Fabricate Charges
It is always appropriate. You will comply or else.
new_hackers··on Police Accidentally Record Themselves Conspiring to Fabricate Charges
"It's hard to understand that anyone signing up to "protect and serve" would think that they are given the right to do whatever it takes as long as they think they are doing right by the greater good."

You obviously do not watch American TV. This is EXACTLY what is popularized.

I do agree with your opinion, unfortunately Andy Griffith is not the norm any more.

new_hackers··on Is there a website that can generate a mock interview?

    for item in resume:
        print("Tell me more about %s" % item)
        answer = input()
        print("How to do you feel about %s" % answer)
        answer = input()
new_hackers··on Ask HN: To expose a security flaw or not? (at a company where I Interviewed)
Let them know privately, then forget about it. (Forgetting about it includes deleting your copy of the client data.) You declined the offer, so its not your problem. However, as a good netizen, you can gain some good karma by letting them (and only them) know about it. Who knows, your good deed may open up opportunities down the road.
new_hackers··on A paper bag is disclosed. – Apple
I see they are following the precedent set by the 'Watch' and simply calling this 'Bag'. Bravo Apple, bravo!
new_hackers··on Introducing Amazon Wind Farm Texas
are any of the Amazon Data Centers located in ERCOT? Not that I could find in a quick search?
new_hackers··on Introducing Amazon Wind Farm Texas
perhaps AWS as a whole has a reasonable constant electric load. The price per MWh fluctuates during "on-peak" and "off-peak" hours. The price really goes up when you accidentally need more power during peak demand.

I'm wondering if wind power isn't an effort to decrease the price they pay on the open market for peak power, or to at least recoup some of those costs.

new_hackers··on Introducing Amazon Wind Farm Texas
yep and being a generator will probably give them direct access to this market. I'm wondering if turning some of the AWS computing power toward playing the energy market isn't some of the motivation here.
new_hackers··on Ask HN: How relevant are Master's degrees in tech today?
Can you get a accepted for a MS CS without at BS CS first?
new_hackers··on All New Amazon Echo Dot
Oh Alexa!!!
← PreviousPage 3 of 8Next →