» tagged pages
» logout

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

Trends in the IT field

Based on her experience in being in the programme committee at several IT conferences, Aino Vonge Corry takes a guess on the upcoming trends in the IT field as well as she comments on some of the trends from previous years.

technology: dzone.com: tech links

Customization of PowerShell hash table merges

PowerShell provides the += operator to add one hash table to another hash table. By default this operation will result in an error, if both hash tables have at least one key that is common in both collections. In some cases you may want to have a more granular control. For example, you don't want to get an error, if not only the key, but also the value is common in both collections. On top of this somebody might want to allow an overwrite, if the key and the value are going to be identical as result of the merge. This could be useful, if the hash table is used as template for replacing strings. Updating the master table by adding a key value pair that refers to the same string would mean to exclude this particular replacement pair from the replacement transactions.

technology: dzone.com: tech links

Programming Language Beauty: Look Closure

In the past year I have been passionately fighting what Simon Peyton Jones calls "the effects monster", although often it feels like I am fighting windmils instead. No useful programs can be written without effects, but effects turn bad when they are observable from within the program itself. Instead we should strive for encapsulating effects such that they become harmless first class pure values, but more on that in the future. In this first installment in a longer series on the perils of side-effects, we will look at one of the most beautiful examples of observable effects, namely closures and variable capture in imperative languages.

technology: dzone.com: tech links

Multiple Returns from a Single Method

Many people object to the suggestion that multiple return statements in a single method can help simplify code. Where did the idea come from? Is it still valid?

technology: dzone.com: tech links

The Evolution Of LINQ And Its Impact On The Design Of C#

I was a huge fan of the Connections series, hosted by James Burke, when it aired on the Discovery Channel. Its basic premise: how seemingly unrelated discoveries influenced other discoveries, which ultimately led to some modern-day convenience. The moral, if you will, is that no advancement is made in isolation. Not surprisingly, the same is true for Language Integrated Query (LINQ).

technology: dzone.com: tech links

Finding missing and duplicate lines in text files using PowerShell

Every now and then I need to investigate bugs that get exposed because countable "things" are less or more than expected. In my special case I was dealing with an application that manages subscription handles to memory registers of programmable logic controllers (PLC). These programs are called Data Access Servers. Occasionally we get calls form customers reporting that the number of handles is less, or sometimes more than expected. The first step to debug this situation is to find out, which handles are missing or which ones are duplicates. This blog post describes how PowerShell's Compare-Object cmdlet makes this task, which used to be a pain in the "peep" now a piece of cake.

technology: dzone.com: tech links

Extracting errors and warnings from a log file using PowerShell

This blog post shows a simple Powershell command that searches a log file for errors and warnings and adds the matched lines to either to the errors.txt file or to the warnings.txt files. It takes advantage of the most powerful operator in Powershell, which is the switch operator. In my example here I exported the log file from the Wonderware SMC logger.

technology: dzone.com: tech links

Notes from a Tool User: Minimalist Coding Style

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away” - Antoine de Saint Exupéry.

technology: dzone.com: tech links

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

Renaming a series of indexed files with Powershell

I love Powershell. I am only halfway through Bruce's book, but I am getting already a glimpse of its potential. I like especially the dynamic aspect of it. Creating and extending types on the fly is something that is quite exciting. Next I am looking to find a solution for my open issues with sorting hash tables. I think building a custom PSObject type with an integer NoteProperty and a NoteProperty that holds a FileInfo object might get me a few steps closer to solving the sorting challenge.

technology: dzone.com: tech links

The Next Great Language

There has been a lot of talk in the last year or two about Java losing ground to newer languages and about which language is going to replace Java as the dominant language going into the next decade. After all the smoke clears, what should the reasonable person conclude? Is it time to move on?

technology: dzone.com: tech links

Programmers Puzzle: split a filepath

Intersting puzzle, come up with the best way to do some string manipulation, use the language of your choice

technology: dzone.com: tech links

What Is the Future of C# Anyways?

...The question was asked, why bother learning F#, when eventually I'll get these things for free once they steal it and bring it to C#...

technology: dzone.com: tech links

Some guidelines for readable F# code

When learning a new programming language it isn’t enough to know the syntax, you must also take the time to learn the idioms and styles for the language. Unfortunately those idioms and styles develop over years and F# still hasn’t had its ‘official v1'.0’ release. So where do we start?

technology: dzone.com: tech links

A Cross Language Generics Trick - Java, Scala and C#

Given a Pair> type in Java, Scala or C#, such as Map.Entry, Tuple2 or KeyValuePair respectively, you can construct type-checked variadic heterogenous containers that you can write general methods to operate on.

technology: dzone.com: tech links

C# Sorting winforms controls using linq

Use the power of linq Create a form with some controls on it and a textbox called textbox1. then but this in the load event of the form

technology: dzone.com: tech links

Programmer Puzzle: Drawing ASCII Art in the Shortest Code

This weeks programmer puzzle challenge - to draw some ascii art shapes in the shortest possible code... have fun.. :-)

technology: dzone.com: tech links

Concurrency in F# – Part III – Erlang Style Message Passing

Why is the introduction of Erlang style message passing into F# interesting? Well you may have never heard of Erlang but if you’ve ever used a cell phone you’ve probably used an Erlang system. Erlang was originally built by Ericsson and released as open source in 1998, it was built to support the highly distributed and fault-tolerant systems required to support mobile phone networks. Many people consider Erlang to be the language that gets concurrency right.

technology: dzone.com: tech links

Don't be clever 2 - The cost of cleverness

A while back I made a post entitled don't be clever. In this post I postulated that in the modern world of programming we need to be more cognizant of making our code readable and grokkable than to make it clever or sneaky. In this post I also used one of my favorite programming quotes of all time (which I will put here again because it is awesome):

technology: dzone.com: tech links

Performance Tweaks For Your Cache

One of the areas we found was with how we cache data. We cache results fully scored and ranked, which is fine. The problem lies in how we were populating the cache. It's something we would never notice in development, because when you're just firing up the debugger, you aren't running multiple threads against that code.

technology: dzone.com: tech links

Enum - the good, the bad, the ugly and how to kill them

The blessed enumeration I remember when I first learned about enumerations; they opened a whole world of easy coding and I think they have their place….CommandType anyone? But really, let's kill them. How often have you seen this…

technology: dzone.com: tech links

The Fan programming language

I just came across a language that I never heard of before: Fan. [code snippet] After a few hours surveying the language, I have to say that Fan seems to get a lot of things right.

technology: dzone.com: tech links

LessThanDot - Friday the Thirteenths

We've decided to do a recurring feature at LessThanDot and have a "Programmer Puzzles" section with interesting puzzles published. This week the challenge has been set to "identify all friday the thirteenths for a given timeframe". You can use any programming language you like, just please let people know which one you have decided to use!

technology: dzone.com: tech links

SQL Server Programming Hacks

This is a collection of SQL hacks, right now we there are 8 sections and between 70 and 80 hacks.

technology: dzone.com: tech links

Generic Classes don't share static members

Using Generic classes together with static members might not always work exactly as you would expect. In fact it works a little differently compared to the same non generic code! If you are coming from a non-generic coding background this might feel strange at first. Even if you are an ‘advanced generics user’, I consider myself to be on one, you might fool yourself into this devious trap. I recently did and when I later discovered the error I felt that it was worth writing it up as an article and share. I have the problem space as well as one way to solve the problem outlined in this article together with runnable code.

technology: dzone.com: tech links

Java: The Last Big Language

The question is: "Will Polyglotism and DSLs make Java the Last Big Language?" While I think the post is interesting, it's a funny question to ask. Even today I use a minimum of 3 languages: Java, SQL and JavaScript. Then one could argue that perhaps XHTML and CSS each has a place among "languages". If you're working with any RIA technology, you're most likely to encounter ActionScript. If you're a committed Java fan, you might see some JavaFX Script in the future... that is if Sun's tragic branding skills don't kill before it's released (first Java, then JavaScript, then JavaFX Script? WTF). Anyway, check out the article... :-) [Nitpick: I would argue that C# would be "The Last Big Language", as it was introduced 7 years after Java. It's arguably as "big", at least in terms of trying to be everything to everyone and having libraries available for everything from medical imaging to star mapping.]

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

Building an F# powered indexing system (part 2)

The second development chunk focuses on creating documents to index, and munging them into a format to hand off to an external library. There are examples of calling a .NET library from F#, mutable values, function composition, and several other spiffy sounding things.

technology: dzone.com: tech links

Exception Handling - Do's and Dont's

Exceptions provide a consistent mechanism for identifying and responding to error conditions. Effective exception handling will make code more robust and easier to debug. Exceptions are a tremendous debugging aid because they help answer:

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

10 Hours in F#: Exploring Concurrency Through An Ant Colony Simulation

I gave an hour long talk today, here at Atalasoft, on Concurrency in F#. It featured some slides and a small ant colony simulation to demonstrate different kinds of threading. Overall, I liked developing in F# quite a bit; however, puzzling through the interpreter errors was a brutal process indeed. You can grab my slides here and my ant colony simulation here.

technology: dzone.com: tech links

F#: Immutability and tail recursion

I was in Amanda Laucher's F# talk yesterday and I asked about whether F# was able to tell if a function was pure or semi-pure. (A pure function is simply a function with no side effects, and a semi-pure function is one that only modifies locals) I was just a bit curious if F# was able to tell if there were any immutable variables that had been introduced into method, or if any mutable variables had been changed during a method. Well, I got my answer and then I made a statement that I probably definitely should have shut my mouth on. I essentially asked if introducing mutable variables would cause the F# compiler to not do its tail recursion optimization.

technology: dzone.com: tech links

Integrating .Net with Erlang, part 4

So where are we going from here with the Otp.Net code? First off, if we bring the codebase into .Net 2.0 from its '04-'06 vintage, and make all the data classes in the Otp.Erlang namespace immutable -- returning ReadOnlyConnection(of T)rather than arrays as needed -- we can get rid of the ICloneable support. That lets us make Otp.Erlang.Object into an interface containing just the encode method(dropping the decode method, or making it an extension method as per C# 3.0).

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

Page 1 | Next >>