MODEXngine. As mentioned back on August 8th, 2013, the
MODEXngineis intended to not only being a game engine with the usual graphics, audio, input handling etc, but also a cloud platform. With cell phones and tablets establishing themselves as a viable platform to target the last several years, one can no longer simply focus on the PC (Win32/Linux/Mac OSX). With mobility also comes with things that a traditional "PC" developer wouldn't run into: vastly different platform APIs, network drops, "5 minute or less" gameplay and supporting an eco-system that crosses all of those platforms. Coming at this as an enterprise developer who actively develops on virtually every platform (Windows, the Web, Android, iOS, Windows Phone and Windows Store), I feel as though I bring a fairly unique perspective of how everything can exist and bring the experience to each platform natively, putting myself in the shoes of someone who wants to develop a game for every platform, but wants full native control over the platform as opposed to an "Apache Cordova" approach in which it solves the bigger problem of quickly delivering to multiple platforms, but stalls when you have a feature that needs more native functionality (let alone speed). Another advantage I hope to bring is the ease of use. Wrapping native level calls with generic wrappers across the board, it should cut down on the issues of "how do I do that on platform XYZ", similar to how Xamarin Forms has made wrappers for iOS, Android and Windows Phone, but hopefully with less issues.
jarred at jarredcapellman dot com.
Readme.txtwith the instructions for what you would need to update before running the solution:
jarred at jarredcapellman dot com. As stated during the presentation, this is not a production ready solution (there is no caching, error handling etc.), but merely a demo for one who wants to see how you can begin to use Spatial Data in your applications.
TRUNCATEthe tables and call it a day - thus never utilizing C# and there by Entity Framework. So what are your options?
idListyou could get the following error:
PostFactoryclass to interface with the EntityFramework in my Windows Class Library:
getPostListingSPStored Procedure and then using LINQ does a translation to a
Postobject that resides in my PCL library. The
Postobject exists in the Portable Class Library (PCL) to be utilized by the MVC4 app and the eventual Windows Phone 8 app. Planning ahead and doing things right from the get go will save you time - don't rush your initial architecture, you'll pay for it later. Next I create my
PostObject that encapsulates the properties I want exposed to the clients (MVC4 App and Windows Phone). Some might find it silly to not simply reuse the EntityFramework Complex Type object that the stored procedure mentioned above returns. I find that approach to be a lack of separation of concerns and crossing tiers between the data and UI layers. For a simple site I might overlook it, but for 99% of the things I do, I always have an object that acts as a middle man between the data and UI layers. Now onto the code:
SyntaxHighlighter. For those doing Regular Expressions, I find it incredibly useful to use a tool like Regex Hero to build your Regular Expressions since you can test input on the fly without having to constantly rebuild your code and test. Next on the "to code" list was the
Postclass (or others down the road) without mucking up other areas of code. One thing I did do that many might find strange is to use an enumeration to eliminate false positives. I am a huge fan of strongly typed code (thus why I shy away from languages that aren't) so it made perfect sense to again utilize this approach. As I utilize new tags for whatever reason, the logic is contained only here so I won't be hunting around for where to update it. Another less "clean" approach would be to put these in the web.config or in your SQL Database. Though I find both of those more performance intensive and not necessary in this case. Now that the business and data layers are good to go for the time being, let's go back to our MVC4 App. Inside my controller the code is pretty simple still for my
WCF Servicewritten yet so for the time being I am simply referencing the
Windows Class Librarymentioned above, thus why I am referencing the
PostFactoryclass directly in the Controller. Then in my
@(new MvcHtmlString(@Model.Body))line is very important otherwise your HTML Tags will not be parsed as you would expect. When all is said and done I went from this last night: [caption id="attachment_1982" align="aligncenter" width="300"] End Result of an Initial Conversion[/caption] To this tonight: [caption id="attachment_1992" align="aligncenter" width="300"] After applying regular expressions to the Post Content[/caption] Next up is creating the WordPress Sidebar History and extending functionality of the "engine" to support single
coalescewith both a parameter and the column I was writing a conditional on. I had something like the following:
CREATE PROCEDURE dbo.getPeopleSP (@LocationID INT = NULL) AS SELECT dbo.People.ID, dbo.People.Name, dbo.People.LocationID FROM dbo.People WHERE dbo.People.LocationID = COALESCE(@LocationID, dbo.People.LocationID)Thinking that since the
@LocationIDwas optional, the
COALESCEwould take care of the rest if
@LocationIDwas NULL. This is NOT the case. In order do what I had wanted you have to do this:
CREATE PROCEDURE dbo.getPeopleSP (@LocationID INT = NULL) AS SELECT dbo.People.ID, dbo.People.Name, dbo.People.LocationID FROM dbo.People WHERE (@LocationID IS NULL OR dbo.People.LocationID = @LocationID)Not a deal breaker for me, I wish there was an optional parameter in
COALESCEto handle it the way you would think it would, NULL being equal to NULL.