Development Architecture blog is designed for developers who have some troubles in their code.
This blog will be mainly on web development, though many of it's posts can be used also on software design.
I wish you nothing but the best,
First Steps In F Sharp
F# - also known as F Sharp.
As you know, there are some OOP languages out there. You probably know VB.Net, C# and Java but I'm about to talk about relatively new one.
I would like to talk a little about F Sharp.
Similar to C Sharp and VB.Net, F# is also targeting the .Net Framework and is also Object Oriented.
The main difference in F# is not it's unique syntax but rather the new point of view and better state of mind it brings to the Object Oriented Programming.
F Sharp uses "type inference" - meaning, the programmer doesn't need to keep his mind in the needed data type parameter and can just use the word "let" (similar to "var").
The data type will be deduce by the compiler itself during compilation (F# also allows explicit data types declaration).
After this short introduction to F# (very short) I would like to start the practical section. and this post will be all about Lists in F Sharp.
Let’s make a small experiment:
Create a List of Ints in C#
List<int> newList = new List<int>();
Add the following values to this list:
Now please try to sort it using "Absolute Value".
You'll probably find out that if you -did- manage to do this - you've used functionality programming.
In F# it's almost the same and as easy as can be once you get the point:
The only way to avoid the unfairness of a copyright tax that funds benefits for criminals is to decriminalize the benefit and make "piracy" legal for everyone. The public good provided by the tax then corresponds to the provision of free content for everyone. What are the advantages and disadvantages of decriminalizing piracy? Please see the following for a description of copyright tax: http://www.1729.com/ip/CopyrightLevies.html 8 Advantages and Disadvantages of Decriminalizing Privacy The intentional violation of the Copyrights Act, in relation to commercial products like music, software, and so on, is known as ‘privacy’. For instance, if you use a music recording or software without a license or make a copy of it to distribute without permission from the creator, you are violating the Copyright Act (Dorrel 2005). The main objective of copyrighting is for the creator to be able to recover all the costs he/she invested in producing the work. Thus copyrighting becomes
Split String in SQL Server. NVARCHAR and VARCHAR Split in MS SQL. For all of you there who wishes to preform a simple "split" on a varchar on nvarchar input in ms sql (sql server) this is for you: Basically, this post's gonna contain a Create Function Script which you will to execute in your server. It will also contain the simplest way to use it. There will be more examples in a different post I'll upload soon... CREATE FUNCTION dbo.Split ( @RowData nvarchar(2000), @SplitOn nvarchar(5) ) RETURNS @RtnValue table ( Id int identity(1,1), Data nvarchar(100) ) AS BEGIN Declare @Cnt int Set @Cnt = 1 While (Charindex(@SplitOn,@RowData)>0) Begin Insert Into @RtnValue (data) Select Data = ltrim(rtrim(Substring(@RowData,1,Charindex(@SplitOn,@RowData)-1))) Set @RowData = Substring(@RowData,Charindex(@SplitOn,@RowData)+1,len(@RowData)) Set @Cnt = @Cnt + 1 End