Showing posts with label Databases. Show all posts
Showing posts with label Databases. Show all posts

Sunday, November 10, 2013

Learn and Practice LINQ & C# with LINQPad


After a much needed day off yesterday, I'm back at it today studying C# Fundamentals and LINQ (language integrated query). Thumbing through the pages of O'Reilly's C# 4.0 Pocket Reference by Joseph Albahari, I discovered that the author is actually the creator of a handy LINQ/C# scratchpad called LINQPad

During the second week of camp (seems like years ago, now!), one of our camp-mates, Danyal Mahmud told us about using LINQPad to practice writing LINQ queries. I didn't start using it right away because we were so busy learning new material. But now I wish I had, because not only is LINQPad great for LINQ, it's also great for learning and practicing C#, from a beginner level to advanced.

Here's why... 

Included in the Samples tab of the program are code snippets from C# 5.0 in a Nutshell, another highly rated book by Joseph Albahara. When you install LINQPad, you get snippets from Chapters 8, 9, 10 & 26. Then you can click "Download/import more samples...", and get even more samples from Nutshell, along with snippets from other books like C# in Depth & Asynchronous Functions in C# (I won't even pretend I know what those are... Yet!)

You can view, clone, edit & run these snippets right in the application without having to create new console apps in Visual Studio and you can practice LINQ directly on your own databases with the Add Connection feature. Starting out in C# and LINQ can be intimidating, and overwhelming at times. With tools and resources like these, however, the learning curve starts looking more like a hill than a mountain.

Tuesday, October 8, 2013

Got SQL?

Day 6 we covered the nuts and bolts of SQL (often pronounced "sequel" ), which is a special-purpose programming language used for managing databases. Today (Day 7), we're going deeper into working with databases in Visual Studio and play around with Entity Framework. I say play with caution, however, as databases are a critical component of web development because they hold all the important stuff. Our instructor showed us how easy it it to delete an entire database by accident, so we're sitting on the edge of our seats for this one.