Razor is a great way to create views with ASP.NET MVC. One feature I use quite often are custom helpers. Instead of duplicating the same few lines of markup I simply create a reusable helper to generate HTML. For example, you could create a helper to do something simple like render out a series of values… @helper tabs(params Tab[] tabs) {<ul> @foreach(var tab in tabs) { <li><a href=”@tab.Url” >@tab.Text</a></li> }</ul>} Then use the helper by providing the parameters it needs… @tabs( new Tab { Text = “Google.com”, Url = “https://google.com”…
Month: February 2015
IDC: Android and iOS accounted for 96.3% of global smartphone shipments in Q4 2014 and the whole year
Android and iOS accounted for 96.3 percent of all smartphone shipments in Q4 2014, and coincidentally, 96.3 percent for all of last year as well. That means the duopoly grew 0.6 percentage points compared to the same period last year (95.7 percent in Q4 2013) and 2.5 percentage points on an annual basis (93.8 percent in 2013). iCharts The latest figures come from IDC, which puts together these estimates every quarter. Here is the breakdown for the full year: Above: Volume units are in millions. Google’s mobile operating system…
Introducing ASP.NET 5
The first preview release of ASP.NET 1.0 came out almost 15 years ago. Since then millions of developers have used it to build and run great web applications, and over the years we have added and evolved many, many capabilities to it. I’m excited today to post about a new release of ASP.NET that we are working on that we are calling ASP.NET 5. This new release is one of the most significant architectural updates we’ve done to ASP.NET. As part of this release we are making ASP.NET leaner, more…
SQL Server: how to convert INTEGER to TIME
I have a very simple solution. If you have a field in database in int format and you want to know how many seconds it’s, the query is: SELECT CONVERT(char(5), DATEADD(second, AVG(Avg_time), ‘20150101’), 108) as myAverageFROM T_GoogleAnalytics_dataHAVING (AVG(Avg_time) IS NOT NULL)
What is HTTP/2 and is it going to speed up the web?
The web is about to get faster thanks to a new version of HTTP – the biggest change since 1999 to the protocol that underpins the world wide web as we know it today. Hypertext Transfer Protocol is familiar to most as the https:// at the beginning of a web address. It governs the connections between a user’s browser and the server hosting a website, invented by the father of the web Sir Tim Berners-Lee. What is HTTP/2? HTTP/2 is the next version of HTTP and is based on Google’s…
Implementing Scrum (Agile) and CMMI Together
IntroductionIf you are a software engineer or IT professional, your group has very likely shown a strong interest in reducing costs, improving quality and productivity. Your group might also have looked at various pre-packaged frameworks, such as Agile (e.g., Scrum and Extreme Programming), CMMI1, and Six Sigma. At first glance, each of these frameworks might look at odds with each other, making it difficult to use two or more. This typically occurs because much of the information shared regarding these frameworks is from success and failure stories, rather than understanding…
CoreCLR is now Open Source
We’re excited to announce that CoreCLR is now open source on GitHub. CoreCLR is the .NET execution engine in .NET Core, performing functions such as garbage collection and compilation to machine code. .NET Core is a modular implementation of .NET that can be used as the base stack for a wide variety of scenarios, today scaling from console utilities to web apps in the cloud. To learn how .NET Core differs from the .NET Framework, take a look at the Introducing .NET Core blog post. You can check out the…