» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with languages + microsoft

Sneak peeks into the new F# project system, part one

We're getting closer to the next major release of F#: our first CTP release out of Developer Division. As a result, now is a good time for me to start talking about some of what I've been working on for the past few months: the F# project system. Over the coming weeks I'll describe some of the new-to-F# project system features we'll deliver in the CTP, providing a "sneak peek" at what's coming.

technology: dzone.com: tech links

4 Features for C# 4.0

Plenty of powerful new language features have fairly recently become mainstream with the launch of VS 2008 in Nov 2007 that supports C# 3.0, amongst which: * Implicitly Typed Local Variables * Extension Methods * Lambda Expressions * Object and Collection Initializers * Anonymous Types * Query Expressions * Automatically Implemented Properties

technology: dzone.com: tech links

Bash vs PowerShell

Marcus Nasarek did a nice comparison of Bash vs PowerShell in Linux magazine HERE. It is only 2 pages but he covers the key elements and has been very fair to it. I appreciate the fact that he took the time to clearly understand PowerShell.

technology: dzone.com: tech links

Windows PowerShell through IronRuby - Writing a custom PSHost

Lately I've been playing quite a bit with DLR technologies, including IronRuby. During some experiments I came to the conclusion that the Kernel.` method isn't implemented yet in the current version. This `backtick` method allows executing OS commands from inside a Ruby program. It's a bit like Process.Start, redirecting the standard output as a string to the Ruby program for further use (actually the Kernel.exec method is precisely implemented like this).

technology: dzone.com: tech links

Getting Started with PowerShell 2 - Part 2

This continues a short series of posts about getting started with PowerShell … with a few tips about things you can do to keep your PowerShell profile safe and organized. Your “profile” is the script that is automatically loaded when you start up PowerShell. Really, I should say that your profile is the set of scripts which are loaded by default when you start up PowerShell. “By default” because you can always skip loading them by passing the -NoProfile switch to PowerShell.exe, and a set because PowerShell does, in fact, attempt to load at least four scripts when you run it.

technology: dzone.com: tech links

Sorting C# String Array Examples and Benchmark

This article aims to explore some aspects of string array sorting and alphabetization of lists and arrays in C#. It presents some benchmarks and I try to draw some best practices from my experiment. It may be helpful for learning basics about string sorting, and gaining more insight into what problems exist in the methods, and which problems don't.

technology: dzone.com: tech links

Announcing the release of Microsoft Source Analysis for C#

We are very excited to announce the release of a new developer tool from Microsoft, Source Analysis for C#. This tool is known internally within Microsoft as StyleCop, and has been used for many years now to help teams enforce a common set of best practices for layout, readability, maintainability, and documentation of C# source code.

technology: dzone.com: tech links

Google Treasure Hunt 2008, second puzzle in F#

The Google Treasure Hunt series continues with this second puzzle, which is focused on filesystem manipulation and scripting. Even if bash or Powershell scripts would provide an easier solution, we'll solve it with F#.

technology: dzone.com: tech links

F# in 20 Minutes - Part I

With the April Refresh hot off the presses, I figured it was time to write a concise, 20-minute introduction to F#. The goal isn't to teach F#, but rather give a quick overview of the language and some of the things you can do with it. I’ll divide the 20 minutes into three parts: * Part I - A slow introduction to F#, explaining your first program * Part II – A brisk overview of the foundational types and concepts in F# * Part III – A quick sampling into advanced topics

technology: dzone.com: tech links

Taking Simple Screenshots with C#

This tutorial walks you through how to take screen-shots in C#, using visual studio. Very simple and includes a Visual Studio solution for those who might want to look at how a screen-shot function can be implemented into an application.

technology: dzone.com: tech links

Who will use F#?

We take a critical look at who people are assuming will use F# and who is actually putting their money where their mouth is when it comes to this exciting new technology. The results are surprising!

technology: dzone.com: tech links

F# 101 Part 8 (Mutables and Reference Cells)

Today we'll manage to look more at regular .NET integration and .NET programming. With the previous efforts, we've looked more at functional programming and in turn F# specific things, but want to show that you can do anything normally in F# that you can in C#. To me, F# is the perfect all-purpose language because it can do a lot of the things C# can do, but in turn, F# can do things much more elegantly than C# can, such as Pattern Matching.

technology: dzone.com: tech links

F# vs Mathschallenge.net

Project Euler is not the only website dedicated to mathematical puzzles. In fact, it started as a subsection of Mathschallenge.net, a website that now has more than 300 exercises, grouped according to their difficulty, which ranges from 1 to 4 stars. We'll use F# to solve these puzzles, starting from an easy one, that asks us to find the smallest multiple of nine containing only even digits.

technology: dzone.com: tech links

Detecting File Changes with FileSystemWatcher

If you are developing a Windows Explorer-style application or integrating with a legacy or third-party system that can only provide information via files, you may need to monitor the files within a folder. The FileSystemWatcher class permits this.

technology: dzone.com: tech links

C# Trick: Load Embedded Resources In A Class Library

If you ever need to distribute and use resources such as text or xml files in a class library, you can use embedded resources. Here's how..

technology: dzone.com: tech links

Why I Love F#: A Refactoring Tale

Recently, I was refactoring some trivial F# code, and the results were so elegant that I felt it would be instructive to share them. My tale begins simply with a list of lists...

technology: dzone.com: tech links

Delegates in C#

This article discusses the delegate type and how it can be used to point to methods in the application which can be invoked at later time. This article demonstrates also the delegate ability to multicast and delegate covariance.

technology: dzone.com: tech links

Creating screenshot with C#

We all know that debugging application or finding errors from 'word of mouth' from end users can be pain, event if you have some complex logging mechanism (like log4net) in your application. For Windows Forms application sometimes the best 'view' on what happened in complex forms/controls may be screenshot of how application looks at the moment errors occurs.

technology: dzone.com: tech links

Pinging a Remote Computer

When developing networked applications that rely on a remote computer being available, it is important to be able to check that the other system is operable. Using the .NET framework's Ping class, an ICMP echo request can be sent for this purpose.

technology: dzone.com: tech links

Run-length encoding in F#

One of the simplest encoding algorithm is called Run-Length Encoding (RLE) and it is adopted in image compression and in fax machines. In this article we'll describe the RLE algorithm and implement in F#, showing how it works step-by-step.

technology: dzone.com: tech links

AJAX-style Asynchronous Progress Dialog for WinForms.

In recent years AJAX on the web has actually pioneered some interesting GUI concepts. I've always liked it when web sites pop-up with a central window that turns the background slightly darker and then ask you for some input. Then you type that input in and press an OK button and then you get a nice little barber pole animation to indicate it has gone off back to the server and is waiting for a reply for the next step

technology: dzone.com: tech links

Why I Love F#: Pattern Matching

Greetings fellow F#-philes! Today we're looking at another reason that I am completely infatuated with the F# language—pattern matching. Pattern matching is a simple idea. Essentially, a pattern match takes an input and a set of rules. Each rule tests the input against a pattern and returns a result if they match.

technology: dzone.com: tech links

F# for numerics beta release

Flying Frog have just announced the launch of their F# for numerics library (beta release).

technology: dzone.com: tech links

Some C# obscurities

I'm sure everyone's tired of hearing about C# 3.0 features like lambda expressions, extension methods, anonymous types and so on. Before you fall in love with the new features, there are a few oldies-but-goodies that revolve around the "?" character. I use a couple of these to stump interviewees who proclaim themselves to be C# experts. These question marks can provide a much cleaner, terser syntax for some fairly common C# usage patterns.

technology: dzone.com: tech links

Fall In Love with Visual Basic All Over Again in Visual Studio 2008

Discover anew why Visual Basic is one of the most successful programming languages in history by exploring some of the new features Microsoft added to Visual Studio and Visual Basic.

technology: dzone.com: tech links

Why I Love F#: Functions, Functions, Functions!

One of the main reasons that I find F# to be so provocative is that it fully embraces three programming paradigms: functional, imperative and object-oriented. Of these, functional programming is the most favored, mostly due to its OCaml heritage. Because of this, we can't move any further in this series without introducing what functional programming is all about: functions!

technology: dzone.com: tech links

Adventures in F#

Matthew Podwysocki writes about his experiences learning F#. Useful links section.

technology: dzone.com: tech links

F# Programming Fast Guide

F# is a functional programming language that runs on Microsoft's Common Language Runtime and the .NET Framework. This means that F# has access to .NET Framework APIs and, conversely, that other .NET languages can use F# libraries. This Fast Guide offers a quick introduction to F# programming best practices and attempts to answer key questions about this new .NET implementation.

technology: dzone.com: tech links

Software Transactional Memory for F#

I have written a library for using software transactional memory in F#. The library exposes memory transactions as a monad using F#’s new computation expression feature. It can be downloaded here.

technology: dzone.com: tech links

Type Aliases in C#

Under the category of "you learn something new every day": While watching dnrTV this morning, I saw something that I've never seen done in C# before.

technology: dzone.com: tech links

Get Ruby-esq Each Iterators in C# 3.0

Yes, Ruby and other dynamic languages are all the rage these days. Yes, using Extension Methods in C# 3.0 is overplayed. But you know what... I don’t care! So I’m going to show you an Extension Method that will bring a little Ruby-goodness to your hum-drum C# world.

technology: dzone.com: tech links

Visio and F# interop: a more complex example

As my VisioAutoExt project on CodePlex slowly evolves, I learned enough about Visio that I wanted to revisit the F# interop scenario and do something more substantial. Using the current version of F# I've provided the F# Visual Studio project that draws the image below.

technology: dzone.com: tech links

The X++ Programming Language

X++ is Microsoft's object-oriented language with similarities to C++ and Java for MorphX, a platform for constructing complex accounting and business management systems. X++ includes a number of common SQL commands as an integrated part of the language. The memory management model is extremely simple: objects are created with a new operator. There are no explicit programmer-defined pointer data types, and there is no pointer arithmetic. X++ provides extensive compile-time checking, followed by a second level of run-time checking. The X++ garbage collector runs automatically; as soon as no references exist to a particular object, that object is deleted and its storage is reclaimed.

technology: dzone.com: tech links

30 Minutes Intro to C# 3.0 Language Enhancements

During a 30 minutes Chopsticks video, Bart De Smet guides you through the most important languages enhancements you'll find in Visual Studio 2008.

technology: dzone.com: tech links

Page 1 | Next >>