790 karma · joined Feb 21, 2013 (13y ago) · 126 submissions
comment 13y ago · link · parent
C# is technically a superior language to Java. Combined with an excellent IDE (VS), the .NET platform is probably technically superior to the Java platform. However, .NET did not destroy Java. And it's because Java is superior to .NET in many non-technical areas (such as a better open source community). And other solutions appeared to help the Java platform with the language stagnation issue (Scala, Clojure, Groovy, etc.). Now Java itself is somewhat catching up (Java 8) and the JVM platform remains a powerful and thriving community.
The situation with Dart and JS seems to be similar. The JS language has stagnated for a long time. Google is trying to be like MS with C# and created Dart to fully replace JS. And Dart is probably technically superior to JS. But just like Java vs C#, I don't think technical superiority will be enough.
The JS platform is addressing the language issue with CoffeeScript, TypeScript, and others, just like Scala and Clojure appeared for the JVM. And JS itself is improving slowly (ECMAScript 6) just like Java 8. And the JS open source community is very very strong (all the web related libraries and frameworks and now additional strength from Node.JS) and it's unlikely Dart will have a comparable community. I think that Dart may achieve some success like .NET/C# did. However, I don't think it will destroy JS like Google hopes it will. The JS platform is just like the JVM platform. Has so many flaws, but is good enough.
comment 13y ago · link · parent
comment 13y ago · link · parent
But instead they just give no raises, or even insult their high performers with a "generous" 3% and cause resentment and lower morale.
comment 13y ago · link · parent
comment 13y ago · link · parent
Outside data is ALWAYS dirty.
There is no clean data. And part of the value of experience is knowing how to handle this. For example, assume I get a very large data set from a third party that is crucial to my project. Unfortunately, all the fields are strings. Years of experience have taught me the following ways to deal with this:
1) Implement a lot of logic and validation into the program itself or as a pre-process step. This is a lot of work, requires a lot of domain knowledge, you may still miss a few edge cases, it will force the deadline to be pushed back, and increase the budget. However, those are the disadvantages. The advantages are that this could become a competitive advantage. Maybe no one else knows or has tried to clean up this data before. Identifying and doing this work can lead to a whole new business. A classic example of this is GIS data. GIS data is very very dirty. Street, St, St., Highway, Hwy, Freeway, Fwy, all typical examples of how dirty the data is. Companies like Navteq are based on their ability to clean up GIS data. Apple's Map app was a disaster because Google is so good at and has years of experience cleaning up GIS data.
2) Push back on the third party to clean up their data. Doing this takes some finesse and social/business skills. You can't just say, the data is hard to handle. That sounds like whining and laziness. Your manager can't do anything to help you if that's all you have. Instead one tactic is to make a schema (this is what WSDL and XML Schemas were invented for) and tell the third party that their data must conform. Then it becomes their problem. They might push back, but now your manager has something to fight with. But if they agree to conform and the schema is bad, then it will become your fault (the third party will just say, hey it conforms to your schema so that's your problem). So you better make sure the schema is good (experience helps here). And it may require meetings with the third party's technical team to compromise or figure out what a good schema is (which requires social/business skills and experience).
3) Identifying these problems early. If these data issues are not considered or found early, they will lead to big issues later. This is why senior developers get their work done fast and go home early. They don't make mistakes like using floats for currency or assuming a string is always a certain format. Junior developers make those kinds of mistakes and spend 80 hour weeks fixing it in the code, rewriting unit tests, and running scripts against the database to carefully migrate the data. They may seem more "productive" but they created the work (like the broken windows fallacy).
comment 13y ago · link · parent
comment 13y ago · link · parent
1) Buy bulk of item X.
2) Divide item X into single units and post on AH with a markup in the price.
People would then buy it because they would need only 1 or 2 of X instead of 10. It only worked for some items and under the right market conditions, but when it worked, it was a simple way to make money. From this I learned some important lessons:
1) Convenience == profit. This is the basis of a lot of business and industry. Why do people use and pay netflix instead of downloading shows? Convenience. Why do supermarkets exist? Convenience. And this is just a specific form of a more general rule, time == money. If you can save people time (convenience) then they will pay you for that service.
2) It made me appreciate and respect more how difficult this must be in the real world. In the WoW AH, I don't have to worry about things decaying or transportation or other things. But the supermarket down the street with shelves full of food? How do they know how much to buy in bulk and sell in units before the food expires? What do they do if they're wrong? I realized that just managing the inventory at a store could be an interesting computer problem. Models, simulations, even some AI could be used to try to figure out the best decisions. And companies already do this and those that do it well have a massive competitive advantage.
comment 13y ago · link · parent
EDIT: I just looked up Software Engineer III in San Jose on salary.com. The median is $108k and the upper 90% is $130k. So how can the salary for someone who just graduated be 100k+? Is that just for google and facebook? And all other companies in SV pay much less?
comment 13y ago · link · parent
function updateCheckoutButton(cart) {
if (cart.length === 0) {
$('#checkoutButton').addClass('light-blue');
$('#checkoutButton').prop('disabled', true);
else {
$('#checkoutButton').addClass('dark-blue');
$('#checkoutButton').prop('disabled', false);
}
}
And in the HTML: <button id="checkoutButton"></button>
Compare that to how it would be done in AngularJS(In the controller code)
scope.isCartEmpty = function() {
return cart.length === 0;
}
(In the HTML) <button ng-class="{'dark-blue':!isCartEmpty(), 'light-blue':isCartEmpty()}" ng-disabled="isCartEmpty()"></button>
The AngularJS style has the following advantages:1) Code reduction - The C language was invented to be an abstraction above assembly. Assembly code has a lot of low level details of moving values from registers, adding them, etc. The C language abstracts that away. In a similar way, AngularJS abstracts away the low level details of DOM manipulation.
2) Data binding - In the first example, it's important that updateCheckoutButton() is called wherever it's necessary for it to be called. Otherwise bugs could appear when the button is not updating when it should. AngularJS simplifies this to just listening for changes in the scope. It's possible to achieve the same thing using events, but again that's a lot of low level details of managing events and event propagation.
3) Declarative UI - <button id="checkoutButton"></button> tells me nothing about how this button behaves. The AngularJS example is immediately obvious on the button's behavior.
4) Unit testing - I can write a unit test to ensure that the value of scope.isCartEmpty is updating correctly. This test can be pure JS without any DOM support. It's much harder to test the DOM manipulation code style.
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
My free time is very limited and valuable. Google sounds interesting, but here are my options:
a) Spend my free time exploring and building small projects with new technologies and techniques. Maybe work on a mobile app that could make some money.
b) Find my old CS textbook and notes and do algorithm studying and exercises just to prepare for an interview.
Doing a) directly improves my skills and has lots of benefits. I've been able to improve projects and gain a lot of good reputation at work because of things I discovered doing a). a) could also lead to making a revenue-generating mobile app. And perhaps most important of all, a) is FUN.
Doing b) just feels like a giant waste of time. Doing b) is a direct opportunity cost of not doing a). The potential return for b) is what? Going through a day long interview with judgmental engineers trying to look smart? And it's boring. It was fun learning in college when it was the first time and I had that aha moment of understanding. Now its just boring to go over it again and again just to rote memorize things. I would rather be building or learning something new.
comment 13y ago · link · parent
https://github.com/jmar777/suspend
will make node.js code more readable.
comment 13y ago · link · parent
1) Drive to rail station for park and ride? About 10 minutes, great.
2) Light rail to station nearest to my work place? About 30 minutes and covers 90% of the distance, awesome.
3) Station to my work place? About 1 hour using bus system...
I'll just drive instead since even with bad morning traffic I'll still get there faster because the bus system is really really bad.
I get a bit upset when I think about it because I can get there 90%, but that last bit is ruined by the stupid bus system.
comment 13y ago · link · parent
comment 13y ago · link · parent