Better HN
topnewbestaskshowjobs
Log inSign up

CodeCube

1,941 karma · joined Mar 12, 2011 (15y ago) · 780 submissions

http://codecube.net

[ my public key: https://keybase.io/joelmartinez; my proof: https://keybase.io/joelmartinez/sigs/3udT7QdoUAnBCYb4OoHodNKMh-7uVqH524yGsU57qSE ]

Submissions

comment 13y ago · link · parent

Kind of along the same lines in the sense of being my biggest facepalm moment; many years ago in my first professional programming gig we had full SA access to our sql server. We regularly did troubleshooting via direct SQL statements (a practice I've since shied away from). One particular day, we were troubleshooting a problem in our monthly billing process. I went to delete a few rows and foolishly forgot to include a limiting statement on the WHERE clause, which resulted in most of the data being blown away.

Thankfully, we were able to restore that table from a backup and rerun everything to rebuild the table's state to a correct place ... but suffice to say the experience taught me many things about attention to detail, and how debugging in production should happen.

Good times!

comment 13y ago · link · parent

aaahahaha ... the part when the angler fish was comparing it's camouflage slayed me.

comment 13y ago · link · parent

It depends, are you trying to get a job contributing to SVN? I would say no.

Bringing it back on topic, I was just thinking the other day how I've been using git for the last two years straight, and still have to google Every.Single.Time when I have to do a command I don't often do, like unstaging a deleted file. And it's usually the same link to a StackOverflow post that my eye instantly zooms to because it's purple.

comment 13y ago · link · parent

Good god man! between the anglers (http://i.imgur.com/zTHuT.jpg), and the goblin sharks (http://i.imgur.com/40WP8.jpg) ... stuff of nightmares!

comment 13y ago · link · parent

Well yeah, but if you've got an iPhone, chances are you have a cell connection. If he can't access the internet, even over the cell network, I'd be curious to know what kind of environment he's working in.

comment 13y ago · link · parent

agreed ... the animation and art direction for it was superb.

comment 13y ago · link · parent

Chris Sells added reference counting to the open source "Rotor" release years ago. This was to test whether GC overhead was indeed an overhead over deterministic finalization.

http://www.sellsbrothers.com/writing/refcount_rotor.doc

I'll let you come to your own conclusions about the results :)

comment 13y ago · link · parent

You say things like "google scares me", and "kurzweil ... isn't exactly comforting". Is this a bad thing?

comment 13y ago · link · parent

GCD is very similar to writing against the TPL ... so you have the choice of writing async/await code which makes the execution flow very easy to grok; or if that doesn't make sense in a given scenario you can just fire of a task. Best of both worlds :)

comment 13y ago · link · parent

for #1, there's a bit more to asynchronous programming in C# these days than the TPL. Take a look at the new async/await keywords in C# 5. Lets you write asynchronous code without having to deal with callbacks.

comment 13y ago · link · parent

Good for them! I've been a fan of zipcar ever since I moved to work in NY for a few years. Made my time in the city without a car really convenient.

comment 13y ago · link · parent

A good intro to this frame of mind (and also relevant, since the dude works at Google ;) ) is to watch this video of a talk by Chade-Meng Tan - http://www.youtube.com/watch?v=r8fcqrNO7so

And then if that interests you, see if you get through this one: http://www.youtube.com/watch?v=3nwwKbM_vJc

comment 13y ago · link · parent

It may sound awful, but so does everything else at first :)

comment 13y ago · link · parent

Maybe .. but I can't imagine anyone sitting there designing a menu to actually say to themselves, "you know what would look awesome repeated on every line and column of this menu? 32 QR codes!"

comment 13y ago · link · parent

But at that point it becomes a UX issue. There's only so much space on a printed menu. Calories are an easy to print, single data point.

comment 13y ago · link · parent

Congrats on meeting your goals!

comment 13y ago · link · parent

OMG, something similar to this has happened to me twice over the last few years! I came down with a real bad case of, I don't know, something; but I had a bad fever and was just in a dazed state of half-sleep. The last time I just remember that "I" kept trying to parse some XML and was getting some parsing exceptions. It was so weird the next day remembering back, it was literally like I was in a different state, not really myself. very strange.

comment 13y ago · link · parent

Just because others have come before doesn't negate the fact that someone else may have reached a broader audience through the use of marketing and branding.

comment 13y ago · link · parent

On the side ... I work full time as a mobile application developer. Of course, I had to stop all other side-projects. I usually (against my better judgement) work on at least 2 other things on the side at any given moment, but this book took all of my extracurricular attention.

comment 13y ago · link · parent

Indeed ... and it is also open source and works on Mono, should you choose to host it on linux/apache - http://aspnetwebstack.codeplex.com/

comment 13y ago · link · parent

Actually, I temporarily forgot (it was in the book :P ) ... you can actually target .NET 4 and still use C# 5 if you use the Async Targeting Pack for Visual Studio 2012 - http://www.microsoft.com/en-us/download/details.aspx?id=2957...

comment 13y ago · link · parent

Thanks so much!

Great news on the book, we definitely need to start seeing more books out there on Mono/Xamarin tech. Hopefully we can help people understand what a great opportunity C# can be when you embrace it :)

comment 13y ago · link · parent

Thanks!

PacktLib is their online repository of titles, similar to Safari Books Online - http://packtlib.packtpub.com/

comment 13y ago · link · parent

Glad to hear it ... definitely planning on digging into Xamarin.Mac soon :)

comment 13y ago · link · parent

Sure, this will be my 3rd published title (http://amazon.com/author/joelmartinez), though first as the sole author. From first contact with the publisher to today was about six months, actual writing time was approximately 3-4 months, and the rest of the time was the editing process (still have to review/approve the final laid-out PDF tonight, actually).

Process-wise, the first step is to have a solid outline and target audience in mind. That will inform the book's style and keep you on track as you put the proverbial pen to paper. When working on an individual chapter, I like to write most of it longhand. That forces me to rewrite it as I transcribe it to the computer and I find the end-result requires many fewer iterations to complete when I do that. Aside from all that, it's all the same things any author will deal with, things like writer's block, etc. Just make sure you are prepared to really focus on getting it done once you decide to write it ... because there's nothing worse than starting a project like this, and then letting it languish. It will always be on the back of your mind and you won't be able to enjoy relaxation time until you get back to it.

Anyways, hope that helped, happy to answer any other questions you might have :)

comment 13y ago · link · parent

Language-wise, C# 5 comes with .NET 4.5, which is supported on Windows 7, but not XP. You can probably use Mono 3.0 on XP to write C# 5 though.

comment 13y ago · link · parent

No, the book doesn't really focus on individual libraries (EF, MVC, etc.) as much as it just tries to focus on the language itself. I wanted to drive home the point that if you use C#, you can target all the major platforms :)

658.

Show HN: Wrote a Book – C# 5 First Look(codecube.net ↗)

52 points · by CodeCube · 13y ago · 25 comments

comment 13y ago · link · parent

Not sure if kidding, or serious :P http://asp.net/mvc
1
212223
26