ksh2dotnetkicks

Stories kicked by ksh2dotnetkicks

Absent Value (codingroute.blogspot.com)

submitted by ksh2dotnetkicksksh2dotnetkicks(135) 2 years, 3 months ago

The most common way for representing an absent value is 'null' (Null, Nil, Nothing, (), ...). But in some languages the absent value have an actual representation. That helps avoiding many problems that has their root in 'null'. Unfortunately those tools can not be easily mocked in C# because C# lacks ADT (Algebraic Data Types). There are many other entries on the web on the matter if more details are needed; yet, in simple it's about controlling absence of a value (more) explicitly in type-system itself. read more...

add a comment |category: |Views: 2

tags: another

Paranoidal Singleton (codingroute.blogspot.com)

submitted by ksh2dotnetkicksksh2dotnetkicks(135) 2 years, 3 months ago

1 - If one object must have at most one instance in an application, then no one must be able to capture a pointer to it in any other scope. In other word's it should have at most one pointer to it in whole application, too. Otherwise it's lifetime and service access can not be controlled. So there must be a proxy to that object and at any time, just one of these proxies has access to the actual instance. 2 - In Singleton pattern, if the single instance object have any kind of changing states then it will become a source of disaster (as any other global state in the application). So it is not just enough to provide a thread-safe pointer access. Instead we need a working scope for our singleton object. Using proxy pattern we can achieve this goal: at anytime there is just one pointer to singleton and there is just one user for it. read more...

add a comment |category: |Views: 2

tags: another

Straighce; a straight tracing tool (a thread-safe, non-blocking, file-(code.google.com)

submitted by ksh2dotnetkicksksh2dotnetkicks(135) 2 years, 3 months ago

I needed this; so I have wrote it; and now share it. This is a low-featured, cyclic (log files reside in appname\1.txt to at mose 31.txt), thread-safe and non-blocking TraceListener with some extension methods for System.String to ease tracing which are in fact some wrapper around Trace.Write(...) and Trace.Write(...) functionality (So you can change your TraceListener later!). read more...

add a comment |category: |Views: 25

tags: another

A New Look for Visual Studio 2010!(blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 3 years, 3 months ago

At the PDC and TechEd EMEA last year we described our new editor support built on the WPF technology in .NET Framework 4.0. Today I’m happy to reveal the new UI for Visual Studio, also built on WPF: read more...

add a comment |category: |Views: 1214

tags: another

Interest in ASP.NET MVC is Rising(codeclimber.net.nz)

submitted by keyvankeyvan(4086) 3 years, 3 months ago

Simone Chiaretta extracts some Google Trends stats to show the rising interest in ASP.NET MVC in the past few months. read more...

add a comment |category: |Views: 335

tags: another

How I'm learning F# - Writing the First Program(randomactsofcoding.blogspot.com)

submitted by JamesEggersJamesEggers(1250) 3 years, 3 months ago

The second post of a series on how I'm learning the F# language. In this post, I write the proverbial Hello, World! application and discuss a few core F# features. read more...

add a comment |category: |Views: 406

tags: another

8 ways to be a better programmer in 6 minutes.(secretgeek.net)

submitted by Tr3vTr3v(376) 3 years, 3 months ago

It's always nice to read a post where you already follow some of the suggestions but find the odd useful nugget, I dislike seeing literals in my source code and the hint about making them stand out with nasty color coding is something I'll be giving a go! read more...

5 comments |category: |Views: 1306

tags: another

9 Examples of creating a fast and responsive UI with multi-threading(goneale.wordpress.com)

submitted by gonealegoneale(1055) 3 years, 3 months ago

9 C# examples of creating a fast and responsive UI with multi-threading, very clear and streamlined examples to get up and running quickly. read more...

add a comment |category: |Views: 907

tags: another

Don't wait for C# 5, use Nemerle Now !!!(reverseblade.blogspot.com)

submitted by onorinonorin(155) 3 years, 3 months ago

Nemerle is a fantastic .net language with meta programming capabilities! read more...

add a comment |category: |Views: 982

tags: another

Install SQL Server (Express) with your Application(nablasoft.com)

submitted by GuardianGuardian(1104) 3 years, 3 months ago

A bootstrap to allow the deployment of SQL Server Express along with your Application read more...

add a comment |category: |Views: 356

tags: another

C# 4.0 Development Enhancements I Like To See!(hcoding.blogspot.com)

submitted by ksh2dotnetkicksksh2dotnetkicks(135) 3 years, 6 months ago

Thoughts around having some features in C# 4.0 read more...

add a comment |category: |Views: 16

tags: another

A case study of bad API design: ASP.Net MVC Routing(ayende.com)

submitted by LordLord(3737) 3 years, 6 months ago

I am doing a spike in ASP.Net MVC now (and I'll talk about this at length at another time). I hit the wall when I wanted to do something that is trivially simple in MonoRail, limit a routing parameter to be a valid integer. read more...

add a comment |category: |Views: 15

tags: another

C# Tip: Use StringBuilder(frugalcoder.us)

submitted by tracker1tracker1(135) 3 years, 6 months ago

It's easy to overlook some of the built in functionality in the .Net framework. In this entry I cover the use of StringBuilder instead of appending to existing string variables. read more...

add a comment |category: |Views: 28

tags: another

The Dummy Provider: Testing membership and roles(jeffgaroutte.com)

submitted by kayoskayos(890) 3 years, 6 months ago

Asp.net has a wonderful system built in for handling user accounts and roles. The administration interface is encapsulated in a separate web site that can be accessed from within Visual Studio but it is difficult to integrate into the site. This often leads to building a new user administration area in each site. The problem I have with this is going into the data store and deleting the incomplete test data and not having "known good" data for testing. read more...

add a comment |category: |Views: 35

tags: another

Custom Error Handling in ASP.Net(dotnet-magic.blogspot.com)

submitted by ketanbeceketanbece(20) 3 years, 6 months ago

Custom Error Handling in ASP.Net, User friendly Error Handling in ASP.net read more...

add a comment |category: |Views: 24

tags: another

Using Active Directory to authenticate users to your ASP.NET Web Site(blog.evonet.com.au)

submitted by bartekmbartekm(485) 3 years, 6 months ago

ASP.NET membership provides the ability to authenticate users to your web application using forms based authentication against a database of users or directory services. This article explains the steps required to provide authentication against Active Directory, either for new sites with no authentication, or for existing sites using database authentication. read more...

2 comments |category: |Views: 478

tags: another