Where to Learn MVC Music Store: http://mvcmusicstore.codeplex.com/ Scott Hansleman: http://www.hanselman.com/blog/CategoryView.aspx?category=ASP.NET+MVC Phil Haack: http://haacked.com/tags/aspnetmvc/default.aspx and our favorite friend MSDN! http://msdn.microsoft.com/en-us/library/gg416514(v=vs.98).aspx Questions Can I use normal Webforms in a MVC Project? Well as I answered in the webinar it is possable since we are still working with the asp.net base classes. Here is a great artical which disc...
Read More
If you haven’t checked out my very basic intro to .net you may want to take a look here . The Question One of the questions that was asked was about, assembles and factories. While I did do spend a great deal of time explaining what assembles are I did mention anything about factories. First of the two items really have nothing in common. An assemble is a compiled library of code, and a factory is a creational pattern which make build something complex in code easier and located in one easy to f...
For many people just beginning to learn how to program, they encounter a wall of confusing jargon, abstract ideas, and sometimes just plain nonsense. Programming languages by definition are tools to encapsulate repeated ideas or machine operations into concepts which are more easily understood by we “simple minded organic creatures that are super creative” . J By breaking down an ideas, such as adding two numbers together, we can make something which in assembly (the closest written version of w...
What is the Entity Framework? The entity framework is an object relational mapper. What is that? Well it provides an abstraction with database development. By pretty much automatically handling database calls and object persistence without the developer having to worry about the details. By generating both the objects and handling persistence it takes a tremendous load off the developer. But quickly I wanted to mention one cool feature in 4.0, which is Dynamic Entities. With the new dynamic CLR ...
Today I wanted to quick mention a technique to bind a one to many in one column as a list of items. I know it has been done before a little differently in previous blogs before on BIDN. The problem? We have three tables Instructors – InstructorClasses - Classes In the instructors table we have the instructors name, ID, and yada yada. Instructor classes is our junction table and links all of the instructors to their list of classes. Finally, classes is our simple list of classes. Now we have a we...
The Clouds Crux: Latency Oh yeah the cloud is pretty awesome! You can store backups, run software, store entire databases. But there is a looming problem, Latency. For any yahoo that doesn’t know what that is latency generally refers to travel time of information between two points i.e. one computer to another. But it can also be how long it takes for a response to be issued from a server, or the amount of time it takes to transfer information from the hard disk into the RAM. So in other words, ...
How to Annoy a Developer One of the key things which will quickly create havoc for developers is when a basic feature is taken (usually with the intent of making it unique with a “new” feature) and mangled beyond all logical use. It now no longer serves the purpose of its original need. I have found this to be very common in many API’s today. An over complication, or a misdirection of a simple task when it should be simple. What has happen to the understanding that the simplest possible solution...
This stackoverflow post below brings up a interesting topic in my mind. When do you go to a ORM? If you dont know what a ORM is it stands form Object Relational Mapping, in a basic sense it allows you persist in memory objects to a database. This is especily great for enterpise level web applications. It allows a middle to upper tier level developer perform any type of bussiness logic without worring about the underlying sql connection propties. http://stackoverflow.com/questions/8676/entity-fra...
I just thought I would share this article. Its fairly short but the techinquie can be very usefull when you need to randomly short though in memory objects. Here is the url: http://www.dailycoding.com/Posts/random_sort_a_list_using_linq.aspx
Today I am going to share the results of some experimentation with the community; I have organized this in the most scientific way I know how. Enjoy! The Question: If there are a large amount of classes within a project, which are also redundantly stored within a list or hashtable. Does this create a sizeable overhead in terms of RAM occupancy? Hypotheses : There will be additional overhead, and some additional space occupied in the RAM, but it will be minimal and not recreate the objects. This ...
Today I wanted to talk about reference –verses- values. First what is a reference or a value? Quite simple, a value is some information. Maybe it’s a name, or a number, or maybe it’s some deep dark secret you never wish to expose, no matter it is a unit of information. A reference to where information is stored. For instance, say you have said “deep dark secret” stored as a class, a class happens to be a reference type container. So if you make a = b, then modified a to equal “spaghetti”. If you...
Normal 0 false false false EN-US X-NONE X-NONE Ah, the age old question we all wake up asking ourselves every morning. How do deal with all of the limitations inherent in SQL Server Compact Edition. Okay maybe we don't actually ask ourselves that every morning. But maybe someday you will encounter SQLCE, and trust me you will be sweating in your sleep after being spoiled with the wonders SQL Server. So here are a few simple tips that may help you out a bit. NO VARCHAR(Max) COLUMN - But we do hav...
Normal 0 false false false EN-US X-NONE X-NONE I don’t know about you, but I’m a C language programmer, and have been one throughout my career. But what I have found is what we are and see ourself as doesn’t always match what we are required to be in the real world. I found myself commonly having to switch from C to other languages such as VB or T-SQL. Yes, me fumbling around with syntax and language nuance trying to make a statement work. But should I be complaining? I think not, if you’re not ...
Parallel Computing: And why it’s awesome and how its revolution data storage As data storage becomes a bigger and bigger issue both data base software developers and hardware engineers are having to find innovative ways to overcome current bottle necks. I don’t claim to be an expert of such matters but I would just like to mention a few things I have picked up that I feel may be relevant to the users here. I know most people are probably somewhat familiar with the concept of parallel computing m...
Why Query When You Can LINQ INTRODUCTION TO LINQ LINQ is a abbreviation for Language Integrated Query, Which is just a fancy way of saying in that while in .net code you can write out your queries as if it were as simple as any other statement in you native programming language. For instance back it that distant past of 2006 a c# programmer would create a data table receiving object or some other in memory container. Then if up to standards create a data read and write object for the particular ...
In our next lovely episode we will go further into the murky depths of programming. We will namely the biggest differences between the ideologies of transactional languages and programmatic languages. Once again I will primarily be using C#, this is mainly due to the scientifically proven fact that it isn’t a true computer language unless there are curly brackets, such as this example ‘}’ ! Okay, as we discussed early in the first part, are variables can contain more than just data, the can also...
Today I figured I go back to basics with this blog since a majority of the visitors to this site are primarily DBA's and Database Guru's. This may turn into a series but for now we will discuss a bit of a feared power of sql server, and that is the fact that sql server in fact sits on top of the .net framework. This allows it to access its immense power and array of options that one just couldn’t do efficiently using traditional tools, in both the BI Stack and SQL’s T-SQL function library. This ...
I know the title of this blog may have invoked the image of somehow tossing that frustrating web site out from an overwhelming height (somewhat of a abstract image I’d say). But unfortunately the topic of this blog is a bit less exciting, and I’m sorry I will try to integrate more death deifying asp.net code at a later time. But the topic today involves the simple matter of pointing files to the root of your website rather than the usual relative path, <img alt="this is a cool pic" src="../im...
Once upon a time (that is how all good blog post begin right), there was a land it was the land of ASP. In order to grab data inline you where provided two flavors for a given situation. Eval() and Bind(); Eval gave you the ability to provide data in read only situations, and Bind could be used for read-write moments. Well now that we have reached the new world of ASP.net we still have some of the legacy abilities of ASP. With the dying world of inline code we are still left with the Eval comman...