Citi Walks from Wachovia; Suing Wells Fargo (1)
share
digg
VB Catch ... When: Why so special? (1)
share
digg
by
Jared Parsons (2)
on
jaredpar's WebLog (2)
3 days, 12 hours
ago
permalink
The VB Catch syntax has a particular feature not present in C#: When. It allows users to filter expressions based on something other than their type. Any arbitrary code can enter a When block to decide whether or not to handle an Exception Sub Sub1() Try DoSomeAction() Catch ex As Exception When Filter(ex) Stop End Try End Sub Newsgroups often ask, "Why's this so special? I could effectively get the same behavior out of C# ...
Why boxing doesn't keep me awake at nights (1)
share
digg
by
skeet (14)
on
Jon Skeet: Coding Blog (14)
4 days, 4 hours
ago
permalink
I'm currently reading the (generally excellent) CLR via C#, and I've recently hit the section on boxing. Why is it that authors feel they have to scaremonger about the effects boxing can have on performance? Here's a piece of code from the book: using System;public sealed class Program { public static void Main() { Int32 v = 5; // Create an unboxed value type variable.#if INEFFICIENT // When compiling the following line, v is boxed ...
便签墙 (1)
share
digg
by
疯狂的设计 (4)
on
有意思 (4)
4 days, 19 hours
ago
permalink
一个很棒的创意。网格形式的便签之墙,每块有四层,都属于灰色调慢慢的加深。当取下一张又一张时,变幻而成的马赛克样式又是不同的特色。当我们在讲电话需要记录的时候,可以直接在墙上写好,然后撕下来就OK了;也可以向朋友进行留言等等。一个很方便的存在。还可以防止小朋友在上面乱画,或者允许他们在上面涂鸦,然后撕下来带走吧。
Richmond Code Camp 2008.2 - Functional C# Recap - Matthew Podwysocki (3)
share
digg
by
Matthew.Podwysocki (26)
on
CodeBetter.Com - Stuff you need to Code Better! (191)
5 days
ago
permalink
Thanks to everyone who attended my session "Functional C# or how I lost the foreach and learned to love LINQ". This is still an ongoing passion of mine that I hope to expand upon in the upcoming posts. Some of these topics include favoring functional composition over inheritance and implementing patterns such as the Specification Pattern using these techniques. I'll be posting all code snippets from the functional posts up to date on the MSDN ...
DotNetRocks interview (1)
share
digg
by
skeet (14)
on
Jon Skeet: Coding Blog (14)
5 days, 7 hours
ago
permalink
Last Monday evening I had a chat with the guys from DotNetRocks, and today the show has gone live. I wouldn't claim to have said anything particularly earth-shattering, and regular readers will probably be familiar with many of the themes anyway, but I thoroughly enjoyed it and hope you will too. Amongst other things, we talked about: Protocol buffers Implicit typing and anonymous types Why it doesn't bother me that Office hasn't been ported to ...
Beautiful code (1)
share
digg
by
Marek Krj (2)
on
On Software and Languages (2)
5 days, 11 hours
ago
permalink
What is beatiful code? The shortest answer (which I've read somewhere but can't remember where) is:we all know what "ugly code" is: code that someone else wrote...But beautiful code? Isn't it in the eye of the beholder? Well, for me, beautiful equals readable. You have to see on the first sight what the overall idea of the piece of code is. On the other side, the idea itself might be crap (!!!) but then we ...
Formatting strings (2)
share
digg
by
skeet (14)
on
Jon Skeet: Coding Blog (14)
5 days, 21 hours
ago
permalink
A while ago I wrote an article about StringBuilder and a reader mailed me to ask about the efficiency of using String.Format instead. This reminded me of a bone I have to pick with the BCL. Whenever we make a call to String.Format, it has to parse the format string. That doesn't sound too bad, but string formatting can be used a heck of a lot - and the format is almost always hard-coded in ...
Big Losers: 15 large stocks that have plummeted (1)
share
digg
by
Melly Alazraki (2)
on
BloggingStocks (48)
6 days
ago
permalink
Filed under: Google (GOOG), Apple Inc (AAPL), Dell (DELL), eBay (EBAY), General Electric (GE), Motorola (MOT), Sirius Satellite Radio (SIRI), Citigroup Inc. (C), Sprint Nextel Corp (S), Alcoa Inc (AA), American Express (AXP), Boeing Co (BA), Whole Foods Market (WFMI), Research in Motion (RIMM), Merck and Co (MRK)After Monday, there are probably no more doubters left. We are in a bear market and we are in a recession and anyone arguing otherwise is living in ...
Non-nullable reference types (1)
share
digg
by
skeet (14)
on
Jon Skeet: Coding Blog (14)
6 days, 3 hours
ago
permalink
I suspect this has been done several times before, but on my way home this evening I considered what would be needed for the reverse of nullable value types - non-nullable reference types. I've had a play with an initial implementation in MiscUtil (not in the currently released version) and it basically boils down (after removing comments, equality etc) to this: public struct NonNullable<T> where T : class{ private readonly T value; public NonNullable(T value) ...
The Repository Pattern – I’m Sold! (1)
share
digg
by
Joel Ross (2)
on
RossCode.com (2)
6 days, 23 hours
ago
permalink
Lately, I've been playing with NHibernate and the Repository pattern - and struggling with it a bit. I understand the concept, but it's the implementation that's been bothering me. I was questioning whether to use one repository, or to have many - essentially one per entity. You can see me questioning it a bit in the Entities And Repositories Discussion I posted a while ago, where I asked Nate Kohari whether he used one repository ...
Taras Strypko shared as favorite Book Review: Programming C# 3.0 by Jesse Liberty and Donald Xie (2)
share
digg
by
skeet (14)
on
Jon Skeet: Coding Blog (14)
1 week, 1 day
ago
permalink
Resources The O'Reilly page (errata etc) Jesse Liberty's page for his various books Buy it from Amazon or Barnes and Noble Disclaimer One reader commented that a previous book review was too full of "this is only my personal opinion" and other such disclaimers. I think it's still important to declare the situation, but I can see how it can get annoying if done throughout the review. So instead, I've lumped everything together here. Please ...
In stunning turnabout, Wells Fargo will acquire Wachovia for $15B (1)
share
digg
Using the ASP.NET MVC ModelBinder attribute - Second part (1)
share
digg
by
maarten.nospam@nospam.maartenballiauw.be (maartenba) (8)
on
Maarten Balliauw {blog} (8)
1 week, 3 days
ago
permalink
Just after the ASP.NET MVC preview 5 was released, I made a quick attempt to using the ModelBinder attribute. In short, a ModelBinder allows you to use complex objects as action method parameters, instead of just basic types like strings and integers. While my aproach was correct, it did not really cover the whole picture. So here it is: the full picture. First of all, what are these model binders all about? By default, an ...
Дизайн / Корпус зеркалки своими рукам (1)
share
digg
by
Tylerskald (15)
on
Хабрахабр: (449)
1 week, 3 days
ago
permalink
Компания Canon предложила энтузиастам собрать DSLR-камеру (ну хотя бы ее корпус) своими руками. Из пробкового дерева. Для этого на сайте Canon открыт целый раздел, где представлено пошаговое руководство. ( Подробности в картинках )
Script# (1)
share
digg
by
Gianni Malanga (2)
on
edit (38)
1 week, 3 days
ago
permalink
Script# è un compilatore C# che in pratica fa una cosa tanto semplice quanto utile: permette di compilare codice C# in JavaScript invece che in codice MSIL. Questo codice JavaScript (comprensibile e quindi facilmente manutenibile) prodotto a partire da codice C# può quindi facilmente essere utilizzato in applicazioni web e nello specifico in applicazioni AJAX. In questo modo Script# ci permette di sviluppare codice AJAX potendo sfruttare tutte quelle caratteristiche tipiche dell’ambiente di sviluppo rappresentato ...