Posted in December 29, 2009 ¬ 09:30h.Justin Lee2 Comments »
I encourage everyone who is still sitting on the fence about whether to learn a functional language to read this Beautiful Code – The Manifesto article written by Lau B. Jensen.
To summarize, his point of writing beautiful code essentially avoids a lot of the pitfalls you get from Imperative languages.
Beautiful Code is…
Concise – Free from both obvious and hidden ceremony
Expressive – Compartmental in its architecture, showing intent
Safe – Being explicit about state and time, defaulting to immutability
Of course, functional languages do all that. Therefore, functional languages create beautiful code. Trust me, you want to learn a functional language.
Try Haskell for size and read this book Real World Haskell which is a fantastic book to learn Haskell.
Or learn F# for those in the Microsoft space. I highly recommend Chris Smith’s Programming F# book to learn F#.
Posted in December 28, 2009 ¬ 11:30h.Justin Lee1 Comment »
I hope everyone had a great holidays last week. This week we don’t have any events except our usual hack time as usual on Mondays.
Hackerspace Hack Time
Mon, Dec 28 6:00 pm Tue, Dec 28 12:00 am
Our regular scheduled reserved time for our members to get anything done is back on Monday again. We currently have the following projects being worked on – Security Access System, Sucktionator, Water Rocket, Stop Motion Animation, and many other miscellaneous projects currently worked on by our members. So come join in and hack on any of your projects!
=====
Since there isn’t anything much to report, I’ll like to take this chance to write about how the events process is like.
As of this writing, this is the process of getting an event or a meetup into hackerspacesg. It will evolve over time as the place grows.
Send an email to events AT hackerspace DOT sg with the date and time and details of your event. Any additional details will be much appreciated.
Indicate whether if your event is open to public, or private. Indicate whether your event is free, or there’s an entrance fee.
If any answers are the latter (private or paid), then there will be a need to discuss rental fees before approving. If both answers are the former (public and free), then it will go ahead to the approval process.
The events coordinator for hackerspacesg will evaluate the event and gather more information if required in order to build a supporting case to host the event.
The event will then be posted on both calendar and the google groups for our members to object. Silence means consent. Monitor this thread in case there are any objections.
After a few days (a week maximum), if there are no objections, the event is approved. If there are, the event will be rejected based on the reasons discussed and you will be informed.
Here are some guidelines to help convince people at hackerspacesg not to object to your event. These guidelines do not indicate that the event will be approved even though it fulfils all these points, but it will help greatly.
The event is community focused (e.g. user groups).
The event is about learning, sharing, thinking out of the box, creativity, etc.
The event is in-line with what hackerspacesg is all about.
It might seem like a tedious process, but do not worry because the events coordinator will be doing most of the work.
Posted in December 24, 2009 ¬ 09:30h.Justin Lee2 Comments »
This is a special Christmas Eve “Code You Should Not Be Writing” post that I think is special enough to flip over your chair.
This is a common mistake C# developers make, which is forgiveable. You should use string.IsNullOrEmpty() method instead, which was introduced only in .NET Framework 2.0. It is understandable that most developers haven’t gotten up to speed yet.
string duration;
// ... some code assignment for duration
if (duration == string.Empty || duration == null)
{
// ... some error handling code
}
But this just blew my mind. Can anyone guess why this is so very wrong?
string finalTitle;
// ... some code assignment for finalTitle
if (finalTitle == string.Empty == null)
{
// ... some error handling code
}
Yes. You should never write code like this. Heaven’s me, this is valid code! The condition is just WRONG.
Merry Christmas everyone, and I hope you like this edition of “Code You Should Not Be Writing”.
Posted in December 23, 2009 ¬ 11:14h.Justin LeeNo Comments »
This is my Christmas gift exchange for DK’s Christmas Party yesterday, and it so happens that DK was lucky (or unlucky) enough to get it. Watch this video, and laugh. Laugh real hard.
Posted in December 23, 2009 ¬ 09:30h.Justin LeeNo Comments »
2 weeks ago during our recording, we met up and basically dumped all our gadgets we carried on that day. Be it regularly, or review units, or whatever we had on hand at that moment. Here’s a photo of what we Tech65 own, or review. Can you guess who owns which gadget, and which gadget are review units?
There are 3 laptops missing from the table. 1 Macbook Pro, 1 HP Mini 1000, and Samsung N410.
Posted in December 22, 2009 ¬ 17:10h.Justin LeeNo Comments »
Finished my presentation on “What’s new with .NET Framework 4.0″ last Saturday at CTU 2009v2. I hope everyone enjoyed the talk. Here are the slides and demo available for you.
Posted in December 21, 2009 ¬ 10:10h.Justin Lee1 Comment »
We had an awesome Christmas party last Friday, and we’d like to thank everyone for coming and we hope you enjoyed yourself. This week’s is a little slow because of Christmas and the New Year, but I’m sure we’ll be back with more events in January.
Just a quick reminder to everyone. If you want to host any community meetup which is open to public at HackerspaceSG, send an email to events A-T hackerspace D-T sg. We’re happy to have you at our humble house. So without further ado, here are the events for the week.
Hackerspace Hack Time
Mon, Dec 21 6:00 pm Tue, Dec 22 12:00 am
Our regular scheduled reserved time for our members to get anything done is back on Monday again. We currently have the following projects being worked on – Security Access System, Sucktionator, Water Rocket, Stop Motion Animation, and many other miscellaneous projects currently worked on by our members. So come join in and hack on any of your projects!
CodeAndroid Christmas Party / Hackfest
Sat, Dec 26 1:00 pm Sat, Dec 26 5:00 pm
Another Christmas Party?!? Yes, that’s right. But this time we’re not the host. CodeAndroid is having a chill out session at HackerspaceSG with no agenda except to talk, discuss, and have some fun. RSVP here if you’re interested.
Posted in December 21, 2009 ¬ 10:10h.Justin LeeNo Comments »
Phew, I’m exhausted. Getting all these episodes out within such a short period of time. Well, never fear we have this other episode out with an interesting twist of a buzzer-like to switch topics. I wonder if this is the kind of format people will like. Anyway, it’s out and there’s still 1 more episode left which will be our Christmas special, before we end the year off with another interested DigressCast. Continue to listen to us and look out for our regular episodes again.