HNHacker News
TopNewBestAskShowJobs

developer1

229 karma · joined December 21, 2014

submissionscomments
developer1··on HTML is done
It's a visual thing. Frontend isn't very similar to programming for the backend (except for high quality javascript). Most people who can do wonders for frontend tend to be more like designers.
developer1··on On Managing Developers
> few developers like to write tests

I like how this statement completely skips the reason why developers don't like to write tests. The majority of managers refuse to allocate any time to write any tests. Hell, when we come up with a 6-week estimate for a project, they then tell us we must do it in 4. At 4 weeks, the complaints and blame game begins over why the project isn't completed. Why? Because it was a 6 week project, morons.

I've only had one company with management that wanted unit tests written for code. Yet there was no official time dedicated to this process. That 6-week project that would be estimated without unit tests? Still 4 weeks. Huh? What magical world do you live in?

Quality requires time. That 6 week project now needs 8-9 weeks. Not 4. Not 5. Find me management that understands this and actually cares about quality instead of impossible deadlines that fit their fantasy plan for the current quarter, and we'll talk.

To be clear, I love writing tests. I would always have them if the decisions for project deadlines were left to me. Such decisions are out of my control, so the company gets what they are willing to pay for.

developer1··on Last Task After Layoff at Disney: Train Foreign Replacements
You're only looking at this from the single instance of a single individual's point of view with a single company. If more companies get away with this, the result will be that there will BE no "other positions" to apply to, because every company will be abusing this method. The fear is that eventually the ~90 day notice may become notice of the end of your chosen career.
developer1··on Last Task After Layoff at Disney: Train Foreign Replacements
> does it matter the replacement worker was foreign? In other words, would there be less controversy if the worker was replaced with a lower paid American, or what if the foreign worker was paid more

Foreigners on HB-1 will almost always make less. This is why companies do this. You won't find an American willing to earn less, because they know what they are worth and can demand it. If the foreign worker were to be paid the same as an American in the same position, the incentive to replace the worker vanishes completely.

So yes, we'd be happy with your conditions. Because either of those conditions being fulfilled would stop H1-B in its tracks, except for the extremely rare occurrence where a company finds value in importing a foreigner for their talent/skills/experience, as opposed to padding the bottom line.

developer1··on Mongo BSON Injection: Ruby Regexps Strike Again
Eww what the hell. I don't use ruby, and if I did I might very well - as a PCRE half-expert - fall into this trap based purely on the assumption that ruby was using PCRE. I just looked at their Regexp class, and it matches PCRE in most regards. The fact that /m makes . match newline \n is horrible - every PCRE-based implementation uses /s for that, whereas /m only affects ^ and $.

It still falls on the developer to understand the exact flavor of regex available in their language. And yet ruby is doing a disservice to anybody coming to their language with existing PCRE knowledge by having syntax that is almost an exact match to PCRE used in many languages... only to find out someday that it's not. Harsh.

developer1··on PCRE Heap Overflow in Regex Processing Lets Users Execute Arbitrary Code
From the documentation for regex modifiers: "DEPRECATED as of PHP 5.5.0 and REMOVED as of PHP 7.0.0". Not for much longer.
developer1··on Apple I discarded as junk sells for $200k; mystery woman stands to get half
I don't believe it's stretching. People specifically click through to that article to hear the first hand experience of the person who dumped an Apple I. There's an interesting angle to the story in this version; the actual article posted is void of any such angle of interest.
developer1··on Mongo BSON Injection: Ruby Regexps Strike Again
Why is everybody talking about ruby's regex implementation? ^, \A, $, \Z, \z are standard across many languages, based on PCRE syntax. This isn't a ruby problem; this is simply developers who are not experts with regular expressions not fully understanding how to write patterns with the tool they are using. There are no problems with regex implementations, only problems with regex use.

Anybody interested should have a read through http://pcre.org/pcre.txt. The syntax presented here is used in perl, php, ruby, python, and many others.

Also, nobody ever uses \A without the /m flag. You use ^, it has the same meaning unless you specifically add the /m flag to allow ^ to match at the beginning of any line rather than at the front of the string only. This distinction will only bite developers who just add flags like /msig for every regex, because again they don't understand exactly what every flag actually does.

developer1··on Apple I discarded as junk sells for $200k; mystery woman stands to get half
Same, intentional clickbait title. A decent editor would not have allowed that through. "Discarded Apple I sells for $200k; mystery woman stands to get half". Not difficult.
developer1··on CEO of Mandriva says employee lawsuits put the company out of business
The forced upfront payout is probably a good thing in most cases - large companies can play games with the court system for years, purposely drawing out proceedings for no valid reason. Most companies can afford to pay up front, they just don't want to. To force a company into bankruptcy is tough, but then again it's a warning to companies not to make such major mistakes with their employees. The strange aspect is this: what happens if the appeals result in a change of outcome? Would the employees be required to pay back the money?

I'm also curious as to what exactly the lawsuit claims were. Surely it's not just "he didn't need to lay people off because he had money" - if that's the case, I believe the outcome was too harsh. I am wondering if what really happened is something I've seen over and over again: the company lays people off, and then starts massive rehires only months later. This is illegal in many places, but companies often get away with it anyway. They just want to improve the bottom line for the current quarter to appease shareholders, and then go back to hiring at the beginning of the next quarter after shareholders are no longer looking at expense reports.

developer1··on Hola VPN turns 10M users into exit nodes
For technically inclined people, setting up your own SOCKS proxy is the simplest method possible.

1. Get a cheap server (ex: DigitalOcean $5/month) in the city/country you want to connect through.

2. Add these 2 lines to /etc/ssh/sshd_config:

AllowTcpForwarding yes

GatewayPorts yes

3. Restart sshd (service ssh restart), or restart the server.

4. Connect to the server setting a dynamic port forward. On linux or Mac, this is just "ssh -D 8000 user@domain.com". On Windows, putty lets you set a dynamic port forward.

5. Personally I use Chrome for my real browsing, and then use Firefox for the proxy since it allows configuring a proxy for the browser only rather than the entire operating system. You just set the SOCKS proxy under advanced networking settings (host 127.0.0.1, port 8000).

6. If you want all internet traffic to go over the proxy rather than just Firefox, this is easy on Mac through the Network Preferences panel. I'm not able to comment on linux/Windows in this regard.

developer1··on Unhappy Birthday
To be a little more specific, there is no risk when a group of friends sing happy birthday to someone they know in a restaurant. However, if a restaurant's staff routinely sings the song to customers, then people will come to that restaurant specifically to receive this service - which is profiting off the song.
developer1··on Can a Font Make Us Believe Something Is True?
Did this too. That eye is doing a disservice to that site - if wasn't a web developer who knows how to remove that, I would not have finished reading the article and left that page. Annoying things chase people away, guarantee that site gets less return visitors because of it.
developer1··on What I’m Teaching my Son about Money
You make your kid ask you... every. single. night... to please give him his 2%? You are warping that child's mind with your mind games.
developer1··on Improve your touch typing
Can you please edit your comment to add some spaces? This comment makes the comment section horizontally scroll and very difficult to read other comments. Why doesn't HN force wrap long lines? :/
developer1··on Clinkle Implodes as Employees Quit in Protest of CEO
Probably not a popular opinion to pin this against someone nobody knows... but just that photo they used to headline the article makes the guy look like a typical sociopathic marketing type who talks smoothly but has no real game. He probably sold investors with fancy dinners and a great pitch with no tangible skills to back it up with. Just saying.
developer1··on Ask HN: I just got $100k in AWS credits, how should I use it?
As strange as it sounds, that much bandwidth would probably suck up $100k faster than you'd imagine. There's a reason a lot of large companies that deal in video have their own data centres and crazy bandwidth deals that make it cheap. I don't think $100k at Amazon's prices would last more than a few months if the service became popular.
developer1··on Ask HN: I just got $100k in AWS credits, how should I use it?
IIRC, it takes about 50% of the network to do so. This is a waste of $100k though, as the network is only used by a small number of people, and this would be a permanent sinkhole of the money and these added servers would simply disappear after a year.

This guy/gal definitely needs something more interesting. Perhaps something meaningful, or perhaps just something insanely cool. A temporary addition to an existing worker farm is not a great idea.

developer1··on Show HN: A random startup generator
This thing is hilarious. The best ones I've seen:

YOUR RIGHTEOUS FUNERAL. Funeralable is the last word in righteous funerals. We know you never settle for less than the best and neither do we. Drive with professional grade tools and strike your future.

SWEATING YOUR DEPRESSION. Share your favorite depressions and discover new ones. With DepressionBenefit you never know what you might find!

start sinning. Sinning. Everyone talks about it but only the truly dashing are able to sin day in and day out. Here at Sin we understand your commitment and want to give you what you need to take your sinning to the next level.

Like No Other Black. Share your favorite blacks and discover new ones. With Blacky you never know what you might find!

FOR THOSE WHO VANISH. Vanishstr is why you'll never vanish the same way again.

developer1··on A Grand Juror Speaks: The inside story of how prosecutors always get their way
The way you describe it though, it sounds pretty... disgusting... that grand juries nearly always indict. This would indicate that there is nearly no point in holding a trial if the norm is to always convict.
developer1··on Make This in an Hour
Haha that's awesome, I do the same thing. Though I just wind up typing "mysql" instead of "myself" or "mysqlf". I type the word "mysql" much more frequently than "myself" that the muscle memory takes over on the keyboard. Glad to see I'm not alone. :D
developer1··on How to save datetimes for future events
This is the right solution. You don't check for any changes every single time you read out a timestamp - that's just unnecessary overhead and removes the ability to write simple queries to search for timestamps within a certain range.

You store the timestamp, and a foreign key to the timezone as it was defined at the time the timestamp was inserted (orginal revision). You then schedule a sweep (every day, say) that simple detects which timezones have received an actual update, then select/update any rows which were created with the previous timezone entry. Not very difficult to implement, and generates the minimal amount of overhead possible.

The only exception is the one raised by laut regarding an event scheduled for say 02:30, and where 02:30 simply does not exist after a rules update. The sweep can detect these and in theory should alert the user to the inconsistency. An annoying edge case to be sure. :/

developer1··on CSS Sans – A pure CSS font
Not as much effort as you might think. Command-line rendering of html (including css and js) and taking a screenshot is not very difficult. If a site used this method, and someone is highly motivated to break that captcha, the effort put in would be nothing compared to the benefit of bypassing the "security".
developer1··on End the Ethanol Rip-Off
You're putting words in his mouth. He never said to not eat meat. He said not to eat it at every meal. You don't need to eat sausage and bacon at breakfast, a rack of ribs and half a chicken at lunch, and a 1/2 lb steak at supper to get your daily intake of meat-provided nutrients. The sad truth is that far too many people eat meat at every single meal, and it's just not natural for us. Balance.
developer1··on Show HN: Slack Meets GitHub Issues
I created an account, which is apparently more than half the people commenting here were willing to do (most people apparently took one look at your landing page, didn't understand the product, and closed the tab).

1. The first page after logging in says "To get started, type something in the Edit Box above and hit ENTER when you are done. Everything you create here will be visible to you and I because we are the only members of this loop." The last point on the page says "If you have any questions or feedback, just add a note in the Edit Box above and I'll make sure I forward it to the right people!"

Which is it? Private testing ground or feedback form? This isn't a good start, confusing and contradicting your new users.

2. The default/showcase loops are annoying. I don't want my account to be cluttered with tutorial content. An intuitive interface and clean documentation should be enough.

Worse, you cannot delete these default loops. I spent 10 minutes simply trying to remove the tutorial content without receiving "not found" or "permission denied" errors. Turns out you can only remove the shortcuts from the menu, not the loops themselves. I imagine this is because you implemented these as a single loop shared across all accounts rather than importing a copy of these loops per new account. Bad implementation - why are you presenting me with the functionality to delete the loop only to prevent me from doing so?

I would not clutter every new account with tutorial content. A new account should be perfectly clean so I can start using it, rather than wasting time trying to determine what are core pages vs. tutorial content. Also cannot remove the annoying "Loopy" page.

3. The transitions and animations are not cool. They are very distracting and slow down the use of the application by several factors. You said this project started a long time ago, and the way the UI tries to be fancy in my face seems to confirm this. An animation on every single mouse click is not acceptable since 2010+.

4. The hassle of just trying to kill the tutorial content imported to my new account, coupled with the in-my-face transition animations wasted the full amount of time I invest in trying out a new web app. The initial process frustrated me and chased me away from checking out the real product.

Sorry, I spent 15 minutes reading the landing page and exploring the first steps after logging in and got nowhere. That is too much time spent trying to evaluate a product and not seeing any progress.

developer1··on Universal copy/paste in Linux
In OS X's Terminal application, copy/paste works universally. There is no tweaking for specific tools or programs. CMD+C and CMD+V work at all times. Everywhere. CMD+X for cut is a different manner.
developer1··on [dead]
This is entirely off-topic for HN, and yet I believe this is important. Normally one does not try to send a video viral for negative reasons, but this is absolutely ridiculous. Please dislike this video and report it for being abusive. Youtube is prioritizing this video in its primary advertising spot due to its popularity. Utterly disgusting behaviour.

I take this sort of thing to heart, as I - and I suspect other like-minded individuals who hang out here - find targeting people for being different to be above-and-beyond abhorrent. These people have physically assaulted strangers for the purpose of entertainment and views on youtube. This video is either a social experiment designed to enrage the public and cause controversy (ie: the "victims" are willing participants), or these are real people people assaulted in public for their choice of hairstyle. Either way, this is unacceptable and it is not ok for youtube to be providing this kind of socially unacceptable junk prime advertising space. Please make your voice be heard.

developer1··on Google Is Shutting Down Google Helpouts, Its Expert Video Chat Service
Haha the funny feels. Too bad you can't reply to old comments; there are a few there worth replying to just to mock Google's commitment. One guy says "You cannot be sure they're going to shut this down soon", another says "Why would they kill helpouts. Helpouts is build upon hangouts and hangouts is here to stay.".

Cause Google. Cause Google.

developer1··on Google Is Shutting Down Google Helpouts, Its Expert Video Chat Service
One word: illegal. Sounds like a smart way to incentivize, but those relatives of yours are seriously risking the worst type of landlord-tenant conflict. If the tenant can provide some form of proof of this extortion... it will not have been worth the attempt.
developer1··on Nginx optimization: Understanding sendfile, tcp_nodelay and tcp_nopush
Haha omg this issue. I came across this about a year ago, and it took forever to diagnose the problem. Who would think to look for a specific declaration in the web server config? I thought for the longest time it was a problem with my host<->guest mount. Glad to see other people suffering similarly :p
← PreviousPage 4 of 5Next →