mercoledì, maggio 18, 2005

MSDN Nuggets

MSDN Nuggets: Microsoft pubblica una serie di video dedicati a un compito specifico di programmazione. In dieci minuti si può imparare una cosa dalla voce di un insegnante e con il video davanti, un po' come capiterebbe partecipando a un corso. Le pillole di corso di Microsoft possono risolvere situazioni in cui serve un risultato subito, ma prima bisogna acquisire una determinata abilità. Complimenti. "Don't have the time to read a 10 - page how-to article or watch a full length webcast? Try an MSDN Nugget, a webcast that takes you step-by-step to discovering new functionality or exploring a hot developer topic, all in 10-15 minutes. View them online now or download for later reference. To view MSDN Nuggets you need Windows Media Player 9 Screen codec support on WMP 7 and above."

martedì, maggio 10, 2005

Emacs, Lisp packages and related resources

Emacs, Lisp packages and related resources: "Important Emacs links" Può sempre servire una copia di Emacs, no? Ecco un altro posto interessante dove orientarsi in questa scienza oscura.

giovedì, maggio 05, 2005

Storia di Objective Caml

Ocaml è un linguaggio interessante, che sta spuntando in contesti diversi, anche in un progetto di ricerca in Microsoft, chiamato Fsharp. Back in the 1940's, the mathematician Alonzo Church (possibly inspired by ideas in Gödel's Incompleteness Theorem) proposed the theory of Lambda Calculus, as an alternative basis for computational theory to Turing's Machine. Now, Lambda Calculus has about as much to do with learning Ocaml as Turing Machines have to do with learning Java (i.e. nothing at all), but Lambda Calculus and Fortran- which originally stood for FORmula TRANslator, and was intended to allow scientists and engineers to simply write formulas, and not code- combined in the mind of John McCarthy to form Lisp, in about 1958.

lunedì, maggio 02, 2005

Un potente Javascript per .NET

This is probably the biggest leap in functionality for JScript since the 1996 introduction of JScript version 1.0 with Internet Explorer 3.0. JScript has traditionally been used to develop client-side scripts due to its ubiquitous, cross-platform support on the Internet, but we've been seeing a steady increase in the usage of JScript on the server?particularly in Active Server Pages (ASP). For example, your favorite Web site (MSDN) uses a large amount of server-side JScript, as do many other sites on the Internet. Un ottimo tutorial sul nuovo Javascript, capace di cose interessanti, come in questo esempio
// Wrap the function inside a class statement.
class Car
{
  // Declare the class members. I've used types in this example,
  // but they are not required. I could have also marked the class
  // as being 'expando' and not had to declare these members.
  var make : String;
  var color : String;
  var year : int;

  // Old constructor function, unchanged.
  function Car(make, color, year)
  {
     this.make = make;
     this.color = color;
     this.year = year;
  }

  // Move the function inside the class
  function GetDescription()
  {
     return this.year + " " + this.color + " " + this.make;
  }
}

// Create and use a new Car object
var myCar = new Car("Accord", "Maroon", 1984);
print(myCar.GetDescription());
Aggiungiamo che il compilatore JScript (jsc.exe) è in tutte le macchine su cui è installato il Framework .NET e il discorso si fa molto interessante.

domenica, maggio 01, 2005

Microsoft e Open Source

Un'analisi più approfondita delle aperture di Microsoft all'open source e come, in effetti ha beneficato un progetto. Microsoft began pushing the idea of "shared source" a few years ago as a way to talk about source code sharing exercises they continue to develop in the face of open source software practices. The idea holds the premise that they will share the source code of their software appropriately with appropriate audiences. Il progetto che Microsoft ha condotto con successo come open source è un installer per Windows WiX.

La riga di comando di XP riserva delle sorprese

La riga di comando di XP riserva delle sorprese. Prendiamo il comando FOR, la sintassi tipica è for %i in (questo quello quellaltro) do echo %i. Esistono anche sintassi alternative, per fare un ciclo sul contenuto di una variabile delimitata da separatori, o l'output di un comando. Ecco un esempio del primo for %i in (%path%, delim=; ) do echo %i Mentre il secondo for /f %i in ('dir') do echo "trovato " %i Alcuni dei trucchi tipici degli shell script di Unix diventano possibili su Windows.