HNHacker News
TopNewBestAskShowJobs

DonPellegrino

462 karma · joined November 21, 2012

submissionscomments
DonPellegrino··on The Only Way to Grow Huge
Not true for marketing-oriented companies that grew huge by having a really good salesforce and managing to become the go-to name in slow, bureaucratic markets such as governments.
DonPellegrino··on HTML5 game written in 0 lines of JS
I find it amusing that the content is served from a .su (Soviet Union) domain.
DonPellegrino··on Why I switched from Ruby to Go
If anything, it's a good thing that the cycles are getting shorter. There's more ideas going around between languages, more experimentation, etc. Language evolution is accelerating and it's exciting.
DonPellegrino··on How I faced my fears and learned to be good at math
The thing about math is that you don't know what you're missing until you learn more. It sometimes lets you solve hard problems in an incredibly obvious and simple way because you knew a mathematical solution existed. Ignorance of the existence of that solution would have lead you to build a complicated and clunky chunk of code.

I recently was able to apply a few math techniques in a project to solve a problem elegantly[1][2]. It is useful in my career as a software developer.

[1] https://github.com/SGrondin/map-reporting/blob/master/src/ge... [2] https://github.com/SGrondin/map-reporting

DonPellegrino··on Zeros in JavaScript
Yup, but CoffeeScript introduces 99 other ways for beginners to create awful code, it's way easier to shoot yourself in the foot than with just JavaScript. I still prefer CoffeeScript, though.
DonPellegrino··on Zeros in JavaScript
...and that's why no one but brand new beginners use "==". If it was up to me, "use strict" would turn "===" into "==" and there would be no "===".

It's too late now because it would break a lot of applications, so a new mode might be required, like "use not-completely-broken-comparisons-by-default".

DonPellegrino··on Dogescript
Sadly true.
DonPellegrino··on University of Waterloo: Silicon Valley's Canadian Feeder School
The Montreal office is on Ste-Catherine, near Place Ville-Marie. Afaik they work on Chrome.
DonPellegrino··on University of Waterloo: Silicon Valley's Canadian Feeder School
ETS also makes students do a co-op after only one term and considering that 90%+ of the students there come from a CEGEP degree (technical degree) and have already completed 2 co-op terms, I can safely say that UW isn't alone.
DonPellegrino··on Quebec boy, 12, pleads guilty to hacking government websites
That's actually exactly what happens. Co-op programs are huge in Québec and that's a good thing. Government jobs usually pay 30-40% less and most of the time the less skilled students end up doing their co-op(s)/internship(s) there.
DonPellegrino··on Dr. Arjun Srinivasan: We’ve Reached “The End of Antibiotics, Period”
I'd like to know what this will do for bacteriophage therapy. Georgia has been the center of phage research since the 20s and has a massive bank of phages for all sorts of infections. Can someone more knowledgeable of this topic explain why the end of antibiotics is such a problem if there's already a decent alternative? What are the downsides to phage therapy?

http://www.thelancet.com/journals/lancet/article/PIIS0140-67...

DonPellegrino··on iPad Air
Jobs was strongly against the stylus and famously said something like "God gave us 10 styluses at birth". Maybe part of his legacy is a company filled with people having the same opinion.
DonPellegrino··on Ask HN: I'm afraid I will always be a mediocre developer
Look at the libraries you're using. For me, it was caolan/async. One evening, I sat down and thought about how he was doing it and I recreated all the most interesting features without looking at the code. In passing, I found a lot of opportunities to add more cool features, so I did. It was an enlightening experience, even if no one ever uses my piece of code.

It has also been mentioned by almost every single recruiter I've talked to since I posted it to Github.

DonPellegrino··on Free Font: Norwester
I love it. It has that cold war propaganda feel to it. Great for headlines.
DonPellegrino··on Ask HN: I found documents on the backseat of a taxi. Can I legally use them?
Yes, many (most?) accountants that don't specialize in personal accounting and tax filing recognize the value in having someone more knowledgeable than them take care of documents with a large impact on their lives.
DonPellegrino··on PayPal Acquires Braintree for $800M
It doesn't make sense for Ebay to own 2 Paypals. The reason they bought Braintree in the first place is to extend their reach into a different market. Braintree customers chose Braintree because it is NOT Paypal. If I was you I wouldn't be worried too much. Just keep watching the quality of service you get from Braintree and if it starts going down too much, then change.
DonPellegrino··on Edward C++Hands
There is another attempt at it. That language has been in development for a few years and is almost ready. Rust combines the best features of C and functional programming and through a very clever pointer system manages to eliminate race conditions, null pointers and dangling pointers at compile time. It has a powerful type system and smart type inference. It's possible to have some memory be garbage collected, but by default it isn't so it can be used for tasks that prohibit garbage collection. The compiler ensures that freed memory will never be accessed. It's built for modern parallel hardware and offers tons of concurrency features, like lightweight tasks, actors, async, etc. Its structs are compatible with C and Rust can integrate seamlessly with C code and librairies. It compiles to native using LLVM. It's backed by a major non-profit, Mozilla. It's a fantastic project and it seems to have all the right cards to be the perfect alternative to C++.

Check it out. My only disappointment (and the reason why I'm not using it seriously at the moment) is that because the language is still in development, it changes extremely fast and 80% of the documentation online is wrong and won't compile. Even the official documentation contains a lot of outdated syntax. Hopefully that will change once the language reaches version 1.0, in the next 3-6 months.

DonPellegrino··on Frederik Pohl has died
Reddit uses a hellbanning system like HN. Spammers and the like don't realize they are banned until they try to read their own posts from another account. The auto-downvote system along with score caching makes it a lot harder to tell if your upvote/downvote went through or not. It's just one of the many, many anti-bot systems built into Reddit.
DonPellegrino··on Linux 3.9 introduced a new way of writing socket servers
That's exactly how I do it for my Node programs. Any service that I want to have 100% is using the cluster module, resulting in multiple processes listening to the same port. When I want to update, I replace the files and kill the processes one by one.
DonPellegrino··on JavaScript right on the hardware
It takes less than an hour to learn and get used to it if you know the standard Java-style OOP already. It's worth it and it'll give you a whole new opinion on what OOP means.

I made this a while ago, see if you can figure out how it works: http://jsfiddle.net/AXTdj/

DonPellegrino··on Ask HN: Who is hiring? (August 2013)
> Is this you?

Yes! That's exactly me! Unfortunately, I'm unable to submit the form as both the Resume file upload and the Role drop down list return errors upon submission.

Role error when selecting Backend API Architect: This field is required. Please enter a value.

Resume error when trying to upload a PDF: Please reattach this file:<filename>

DonPellegrino··on LLVM is One Thread Holding Apple and Google Together
LLVM is truly a wonder of modern software. By making the development of new programming languages easier, it's accelerating the development of new tools and techniques.
DonPellegrino··on JS Objects: Inherited a Mess
I wrote this snippet of code to explain the concept of function/hashmap/object/class to javascript beginners. http://jsfiddle.net/AXTdj/
DonPellegrino··on Fertilizer plant explodes near Waco, Texas, causing numerous injuries
Apparently, the plant exploded while firefighters were trying to stop a fire?

EDIT: "Fire officials fear that the number of casualties could rise as high as 60 to 70 dead, said Dr. George Smith, the emergency management system director of the city." http://www.cnn.com/2013/04/18/us/texas-explosion/index.html

Also, I really don't like sounding like a conspiracy theorist, but it's the 20th anniversary of the Waco siege. https://en.wikipedia.org/wiki/Waco_siege

DonPellegrino··on 8 days. 8,000 forums
I'd pay to be able to host my own.
DonPellegrino··on Real-World Concurrency (2008)
It has been able to for a while! Check out the cluster module, processes listening to the same port are load balanced and communication between processes is obviously (since each process only has 1 thread due to the event loop) done by message passing.
DonPellegrino··on The Idea That Launched a Thousand Civilisations (2012) [pdf]
The article makes it clear that religious ones lasted much longer.
DonPellegrino··on Ask HN: Who is meeting up? (December 2012)
I am!
DonPellegrino··on Ask HN: What's the Catch - CheapSSLs looks like the real deal. Really?
I bought a certificate from them a few weeks ago, it was delivered to my email in just a few minutes. No problems whatsoever.
← PreviousPage 3 of 3