Skip to main content

Home/ Coders/ Group items tagged .net Expression

Rss Feed Group items tagged

Joel Bennett

MoQ - Google Code - 0 views

  •  
    Moq (pronounced "Mock-you" or just "Mock") is a mocking library for .NET developed to take advantage of .NET 3.5 and C# 3.0 features (i.e. LINQ expression trees and lambda expressions) ... they claim it's the most productive, type-safe and refactoring-friendly mocking library available.
fspore

Values, Types, and Operators :: Eloquent JavaScript - 0 views

  • Not all operators are symbols. Some are written as words. One example is the typeof operator, which produces a string value naming the type of the value you give it.
  • Having such numbers is useful for storing strings inside a computer because it makes it possible to represent them as a sequence of numbers. When comparing strings, JavaScript goes over them from left to right, comparing the numeric codes of the characters one by one.
  • There is only one value in JavaScript that is not equal to itself, and that is NaN, which stands for “not a number”.
  • ...16 more annotations...
  • In practice, you can usually get by with knowing that of the operators we have seen so far, || has the lowest precedence, then comes &&, then the comparison operators (>, ==, and so on), and then the rest. This order has been chosen such that, in typical expressions like the following one, as few parentheses as possible are necessary:
  • The difference in meaning between undefined and null is an accident of JavaScript’s design, and it doesn’t matter most of the time. In the cases where you actually have to concern yourself with these values, I recommend treating them as interchangeable (more on that in a moment).
  • . Yet in the third expression, + tries string concatenation before numeric addition
  • When something that doesn’t map to a number in an obvious way (such as "five" or undefined) is converted to a number, the value NaN is produced.
  • Further arithmetic operations on NaN keep producing NaN, so if you find yourself getting one of those in an unexpected place, look for accidental type conversions.
  • g ==, the outcome is easy to predict: you should get true when both values are the same, except in the case of NaN.
  • But when the types differ, JavaScript uses a complicated and confusing set of rules to determine what to do. In most cases, it just tries to convert one of the values to the other value’s type. However, when null or undefined occurs on either side of the operator, it produces true only if both sides are one of null or undefined.
  • That last piece of behavior is often useful. When you want to test whether a value has a real value instead of null or undefined, you can simply compare it to null with the == (or !=) operator.
  • The rules for converting strings and numbers to Boolean values state that 0, NaN, and the empty string ("") count as false, while all the other values count as true.
  • where you do not want any automatic type conversions to happen, there are two extra operators: === and !==. The first tests whether a value is precisely equal to the other, and the second tests whether it is not precisely equal. So "" === false is false as expected.
  • The logical operators && and || handle values of different types in a peculiar way. They will convert the value on their left side to Boolean type in order to decide what to do, but depending on the operator and the result of that conversion, they return either the original left-hand value or the right-hand value.
  • The || operator, for example, will return the value to its left when that can be converted to true and will return the value on its right otherwise. This conversion works as you’d expect for Boolean values and should do something analogous for values of other types.
  • This functionality allows the || operator to be used as a way to fall back on a default value. If you give it an expression that might produce an empty value on the left, the value on the right will be used as a replacement in that case.
  • The && operator works similarly, but the other way around. When the value to its left is something that converts to false, it returns that value, and otherwise it returns the value on its right.
  • Another important property of these two operators is that the expression to their right is evaluated only when necessary. In the case of true || X, no matter what X is—even if it’s an expression that does something terrible—the result will be true, and X is never evaluated. The same goes for false && X, which is false and will ignore X. This is called short-circuit evaluation.
  • - to negate a number
Joel Bennett

Guide to creating Expression blend 3 addins « Burela's house-o-blog - 1 views

  •  
    "There isn't much information available for creating Expression blend 3 addins. There is some information on creating blend 2 plugins, but the addin model has changed between versions."
Joel Bennett

Microsoft F# Developer Center - 0 views

  •  
    F# is a functional programming language for the .NET Framework. It combines the succinct, expressive, and compositional style of functional programming with the runtime, libraries, interoperability, and object model of .NET. -- and it had a new CTP in September 2008
Joel Bennett

The 30 Minute (.Net) Regex Tutorial - CodeProject - 0 views

  •  
    A guide to getting started with regular expressions in .Net for begginers all the way through named captures, backreferencing, and lookaround. Barely mentions balancing matches -- which are one of the best features of .Net regex ... but otherwise very good.
Joel Bennett

Persistor.NET - 0 views

  •  
    The Express Edition of Persistor.NET® means carefree database storage -- "it is the right tool for all developers who just don't want to care about the database."
htmlslicemate.com

30 Awesome and Creatively Expressive Graffiti Artworks - 0 views

  •  
    How're you all doing mates? In this post we will be featuring a little bit of Graffiti Art. Technically, Graffiti is defined as any writings or drawings that are usually sprayed, illegitimately, on public places. Although detested for its unapproved activities, graffiti artists find this kind of art as a way to show their artistic expression for their emotion, opinions, and personal messages. It is said that graffiti originated way back the ancient times and with no doubt, is still alive and sprayin' until today. To share to you some cool works, we have gathered 30 Awesome and Creatively Expressive Graffiti Artworks. Have a glimpse on some of the amazing artworks made by different graffiti artists around the world. You might want to have a pair of artistic eyes and open mindedness to appreciate these daring works of art. Come, take a peek, and your mind be sprayed. Enjoy!
Joel Bennett

Tweetsharp - 0 views

  •  
    TweetSharp is a complete .NET library for microblogging platforms that allows you to write short and sweet expressions that convert automatically to web queries and fly to Twitter on your behalf.
Joel Bennett

Code Contracts - MSDN DevLabs - 0 views

  •  
    Code Contracts provide a language-agnostic way to express coding assumptions in .NET programs. The contracts take the form of pre-conditions, post-conditions, and object invariants. Contracts act as checked documentation of your external and internal APIs.
Joel Bennett

autofac - Project Hosting on Google Code - 4 views

  • Autofac is based on strongly component-oriented principles. It will change the way you approach dependency injection in .NET.
  •  
    Autofac is based on strongly component-oriented principles. It will change the way you approach dependency injection in .NET.
Joel Bennett

Coding4Fun Developer Kit - 0 views

  •  
    Lots of useful controls here for .Net devs
Joel Bennett

claribole.net - ZGRViewer - 0 views

  • ZGRViewer is a 2.5D graph visualizer implemented in Java and based upon the Zoomable Visual Transformation Machine. It is specifically aimed at displaying graphs expressed using the DOT language from AT&T GraphViz and processed by programs dot, neato or others such as twopi.
  •  
    A slick zoomable viewer for graphviz graphs
Joel Bennett

Nregex v/0.1 - 0 views

  •  
    A slick web-based tool for testing and perfecting .net regular expressions
Matteo Spreafico

LINQPad - 1 views

  •   LINQPad lets you interactively query SQL databases in a modern query language: LINQ.  Kiss goodbye to SQL Management Studio!
  • it's a highly ergonomic code snippet IDE that instantly executes any C#/VB expression, statement block or program – the ultimate in dynamic development.
  • Best of all, LINQPad standard edition is free and can run without installation (or with a low-impact setup)
htmlslicemate.com

30 Cool Designs of Face Logo for your Inspiration - 0 views

  •  
    A human face can be a nice inspiration for logo design since it is thought to be among the most noticeable and viewed features that any of us stumble upon in our everyday life. We interact with lots of persons every single day. We come across some of their emotional behavior such as annoyance, joy as well as sadness. All of these emotional expressions can certainly be employed as an image in designing a logo. If you want to develop a brand that illustrate reliability and emotional aspect of business then face logo designs are definitely the ideal choice.
Joel Bennett

GENNIT Code Generation - 0 views

  • Access to tested generators, a designer for building your project, FXCOP'd source files, XHTML, NUnit Testing Code, VS.NET 2005/Express solution files and SQL scripts.
  •  
    An early beta of a code-generation webservice which lets you create UML-like diagrams and generate code (with tests and everything).
1 - 18 of 18
Showing 20 items per page