HNHacker News
TopNewBestAskShowJobs

lightblade

232 karma · joined April 25, 2011

https://ming.codes
submissionscomments
lightblade··on Ask HN: Relationship between OO and functional programming?
OO is when you really love objects, you put objects in objects.

FP is when you really love functions, you put functions in functions.

Of course, if you like both, you can put functions into objects and objects into functions.

lightblade··on Reusable and Extendable D3 Charts
Does v4 comes in the form of packaged distribution? It just seems all this modularity stuff is creating its own dependency hell.
lightblade··on React.js Conf live stream [video]
Ah I missed the live stream. Anywhere I can watch a recording of the keynote?
lightblade··on It’s Not JavaScript “Tool Fatigue”, It’s JavaScript Bullshit Fatigue
No where that mentions Broccoli. Broccoli isn't that new. I think it deserves a mention.

Broccoli is a build tool and not a task runner. You can use Grunt or Gulp to drive it. Heck, you can use make if you want.

First time users often found there's a steep learning curve to get started. But the effort is well worth it because of its architecture and philosophy. The problem with Grunt and Gulp has always been trying to combine incompatible plugins together. This never happens with Broccoli plugins.

lightblade··on Ask HN: Where are 150k to 200k salary job in Silicon Valley?
That is so unfortunately true.

I have found the unicorns like to hand out RSUs like candy.

lightblade··on Ask HN: Where are 150k to 200k salary job in Silicon Valley?
Network is not something you get overnight. It may take years of strategic planning to achieve.

I would say networking is less about meeting people and more about building a reputation. Commenting here on HN is one way to build that reputation. You can get go to meet ups to meet people, but giving talks is how you get reputation. The same applies to conferences. At work, especially in larger companies, you can build reputation as experts in one particular technology, lead brown bag sessions to demonstrate that expertise.

You sometimes notice other people that have good network. It's also important to stand out in front of these people to get second degree connections. If you also have good network, these people would gladly be your best friend.

lightblade··on JavaScript's “new Date()” causing 90% of Alibaba's internal compatibility issues
Nope, use ISO 8601 format just like blog post suggested. It's more readable and not vulnerable to the Year 2038 problem [1].

It's also important to note that ISO 8601 format is the default format that Date object serialize to. Try it new Date().toJSON()

[1]: https://en.wikipedia.org/wiki/Year_2038_problem

lightblade··on Angular 2 versus React
Have you seen this? https://meta.discourse.org/t/the-state-of-javascript-on-andr...

This problem is not Ember but JavaScript in general.

lightblade··on Trine – A utility library for functional programming in JavaScript
Oh you missed out so much by stopping at "But why stop there?"

> ...can also represent infinite sets

This is the highlight.

lightblade··on [dead]
I think vimcast[1] actually does something similar to that. The actual keystrokes are displayed on the screen as he live code the screencast. Check it out.

[1]: http://vimcasts.org

lightblade··on [dead]
I guess it is frowned upon in this way. After 4 years of using Vim, watching other people live coding in Sublime is like watching turtle crawl.

"C'mon faster!!"

Can be a bit frustrating actually.

I guess the reason could be that because Sublime edits are slower, as the live coder explains things, he/she needs to pause the explanation to finish editing before resuming the explanation. This interrupted flow is what actually causes the frustration.

lightblade··on Wanted: Highly skilled tech workers, $100,000-plus salary, no college required
I suspect the same applies to frontend dev. A lot of people just don't want to touch JavaScript.
lightblade··on Replacing jQuery with D3
Yea, that's something d3 can't do: convert raw HTML to DOM nodes the way that $.parseHTML do.

But if you can do that...

d3.select('.foo').append(d3.functor(node));

lightblade··on Replacing jQuery with D3
Just one feature missing: event delegation.

Event listeners in d3 are not delegated listeners. Implementing this feature actually is not an easy matter as you need to preserve the d3 data binding context and also attach to the nearest svg element because svg events don't bubble through it.

lightblade··on Replacing jQuery with D3
d3.select('.foo').html('<div class="bar" data-selected="true"/>';
lightblade··on “Today we moved into our new Facebook building”
What? Of course private office is better. In an open office, I always have to worry about if my fart is too loud for the person next to me to hear. It's like every time I have to pass gas, it interrupts my train of thought so I get to let out a silent one. Or even better, some times I have headphones on, and totally forgot that I'm in an open office.

In a private office, I wouldn't have to worry about this.

lightblade··on MyTemp.email – Temporary Disposable Email
I have seen form validators that actually block you from using disposable emails.
lightblade··on Pterosaur: Full power of Vim in each Firefox text field
https://github.com/ardagnir/pterosaur/issues/38

Looks like it's in the work.

lightblade··on Yahoo abandons China?
So this is why I'm getting 5-10 recruiter calls a day this week.
lightblade··on California has about one year of water left
What is preventing is from building canals from the Northeast to California? They are having devastating snowstorm s and we having draught. It make sense.
lightblade··on Ask HN: Front-end “design patterns”?
There are definitely design patterns for frontend. There are just no books being published on this topic yet.

Most knowledge in this area is scattered is varies blog post, tech talks, and maybe some framework guides. There are a few published as GitHub gists and readme. Occasionally, you'll find some comments in framework source code that reference some reading material

But yes, it would be nice for someone to put together a book.

Some example of frontend pattern: - promise - data binding - FRP event stream

None of these are exclusively frontend, but you'll see them more often in UI development.

lightblade··on Ember's Glimmer Engine
> On my machine, the dbmon app in Ember+Glimmer gets 10 renders per second, React gets 14. Not bad, way better than 0.1 per second!

https://twitter.com/ryanflorence/status/572991666090467330

lightblade··on Ember's Glimmer Engine
I thought dust is still using string concatenation. Has this changed and when?
lightblade··on Statements about the Mobile Web
> By now it should be clear that too many users would choose a native app over a web app.

I, for one, don't.

Why install a 500MB Facebook app when I can get the same news feed with a 1kb bookmark?

lightblade··on Ask HN: Have you ever been interviewed by a CEO
I thought this is common in the startup world.
lightblade··on Ask HN: What makes a programmer a rockstar?
Excellent question!

To me, rockstar does not equal to 10xer. Rockstar does not necessarily perform better, but they have gained enough (positive) reputation within their domain that they now have fans.

In other words, hiring rockstars means you get to hire their fans easier. It's a personal network thing.

lightblade··on Anthem Blue Cross hacked, SSN, medical IDs taken
> ...have obtained personal information from our current and former members such as their names, birthdays, medical IDs/social security numbers, street addresses, email addresses and employment information

That's medical ID and SSN

lightblade··on Ask HN: How frequently should you should change jobs?
If everything is under your own control (no layoffs), I would say the sweet spot is between 2 and 5 years. There was a post on HN talked about how after 2 years, your salary will be held back compare to switching. I added a maximum of 5 years before you MUST change job in order to stay relevant in the industry.

Changing too often can be perceived as unloyal, but changing not often enough can be perceived as unable to adapt to new technology.

lightblade··on Ask HN: Why are there never any job postings for non web positions?
But what really qualifies as fundamentals?

Database? Network protocol? 3D graphics? I tend to put these in the same league as web programming, they are job skills. Yet there are plenty of university course on these subjects. So why not have web programming?

lightblade··on Ask HN: Why are there never any job postings for non web positions?
Another reason that's contributing to the shortage is that universities are not emphasizing on it. The university that I went to doesn't even have web development course. There was one experimental summer course, then it never happened again. Even the Android development class went on to become very popular.

So what's left is that those that work in web development are either self trained or goes through one of those dev bootcamps. But people that goes into these programs does not necessarily have a CS background, and to be a "good web programmer", you do need that kind of background.

← PreviousPage 2 of 9Next →