Better HN
topnewbestaskshowjobs
Log inSign up

scubaguy

79 karma · joined Jul 26, 2011 (15y ago) · 83 submissions

Submissions

comment 6y ago · link · parent

The original article (chinese version)

http://china.caixin.com/2020-02-05/101511802.html

comment 8y ago · link · parent

Participating in selection bias!

comment 8y ago · link · parent

I would propose that when you create a library, you think of other programmers like web designers think of end users. In addition to simplicity of the API, efficiency of the code, and proper encapsulation, you think, "How can I prevent users of my library from making mistakes?"

It's not an accusation that the author of strftime didn't have this mindset. Rather, it's to say that we should be more mindful of studies on human behaviors against programming APIs.

comment 8y ago · link · parent

You can spend time on homework in many ways: Getting your children to think about problems from different angles; Understanding where they struggle and should spend more time; Understanding where they are fine and let explore on their own; Learning how to set the appropriate guidelines to foster good study habits.

It is amazing how even two kids from the same parents can vary greatly in personality and how they learn. It takes time and energy to find the best way to nurture each child.

Oh yeah, and it feels good too. Remember that time when you spent hours explaining something to your kid and he suddenly got that "Eureka!" look? It's hard to quit that.

comment 8y ago · link · parent

Off the top of my head

Rosie Revere Engineer and others from the same author

The Fairy Bell Sisters

Magic Treehouse

Junie B Jones

Princess in Black

Ling and Ting series

The Golly Sisters

Sisters (comic book)

Harold and the Purple Crayon

comment 8y ago · link · parent

  my family would often chide me for using "big words"...
  The truth is, I was just trying to relate something I'd learned...
That sounds terrible. You are not allowed to be yourself around your family. It must've been especially tough for a kid.

However, keep in mind that communication goes both ways. If the way you speak and carry yourself bothers your audience, then you should change the way you speak around them.

As an immigrant, I have thought about this a lot. Changing the way I speak isn't necessarily, as Holden Caulfield calls it, "being a phony". I can speak a completely different language in order to relate my thoughts to different peoples. It's not a stretch to choose different english words to help my partner understand me.

comment 8y ago · link · parent

"Who uses touch screens for development?"

I do! While the kids were watching TV, I was sitting next to them coding a personal project. As I was scrolling through documentation on the web, sometimes it was just easier to use the touch screen than to use the trackpad. I remember thinking to myself, "Whoa, I didn't think I'd use the touchscreen on this laptop".

If I had my quiet space with an actual keyboard and a mouse, I would not use the touch screen. But I no longer have that luxury and I found myself appreciating the touchscreen on my laptop.

comment 9y ago · link · parent

Do you have data that backs that cleanup is inarguably expensive? This article, which more concrete, suggests 5% of revenue is required to be saved.

http://www.world-nuclear.org/information-library/nuclear-fue...

comment 10y ago · link · parent

The "without telling anyone else" part is potentially the problem.

Imagine you committed time and energy to build a decent system - not perfect, but most people are ok with. You feel a sense of ownership on this system. Then one day, a coworker of your tells your manager that he has built a new system in his off time. He also made a conscious decision not to discuss the effort with you. How would that make you feel?

comment 10y ago · link · parent

If you find yourself saying something uncomfortable under pressure, this is probably not the right place for you.

comment 10y ago · link · parent

Relevant http://www.gatesfoundation.org/Who-We-Are/Resources-and-Medi...

"One of the most common stories about aid is that some of it gets wasted on corruption. It is true that when health aid is stolen or wasted, it costs lives. We need to root out fraud and squeeze more out of every dollar....

"We should try to reduce that. But if we can’t, should we stop trying to save lives?"

comment 11y ago · link · parent

I read this article yesterday and I really dislike how it is worded. The "this engineer" has a name, Donald Smith, this is what he said:

"If you're using Unsafe, this is the year to explain where the API is broken and get it straight.... Please help us kill Unsafe, kill Unsafe dead, kill Unsafe right, and do so as quickly as possible to the ultimate benefit of everyone."

It reads like a request to have a discussion on Unsafe, to talk about it and find solutions. Unfortunately, I don't see anyone pointing out why Unsafe should be kept around on that thread (http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-Apri...).

And this quote from Oracle shows an effort to do things right:

http://mail.openjdk.java.net/pipermail/discuss/2013-October/... "This is definitely something we plan to propose for SE 9. I expect to see a JEP from the current maintainers of sun.misc.Unsafe..."

This (http://blog.codefx.org/java/dev/how-java-9-and-project-jigsa...) seems like a more balanced article on the situation.

"So far we focused on the problematic aspects of Project Jigsaw. But that should not divert from the exciting and – I think – very positive nature of the planned changes. After reading the documents, I am impressed with the scope and potential of this upcoming Java release. While it is likely not as groundbreaking for individual developers as Java 8, it is even more so for everyone involved in building and deploying – especially of large monolithic projects." near future. (This is far too small to require a whole JSR.)"

comment 11y ago · link · parent

Don't forget Hipchat/Slack - IM

How about putting emphasis on "have to" instead? For most people, the advantage of these services is that you get very good services for little cost. It's simply cheaper to use 3rd party services. That why they've become so popular.

comment 12y ago · link · parent

This is not a good example, because in this example, Mockito is used to mock a very simple class (DateTime), which should not be mocked at all. It is also used to verify that the dependent object is called exactly twice, which may be unnecessary.

This is more of a problem where a library is not used well. Mockito is a very good library, this example really does it disservice.

123