Using c# to connect To Neo4j (Graph database) Part 2

13 במרץ 2013

In the first part I have talked about graph database in general and Neo4j in particular. I have covered the installation of Neo4j and the different ways to connected to it as a c# developer. We talked about the key elements in graph database: nodes and relationships, and how to create them in Neo4j graph database. If you haven't read the first part click here before you continue. In order to use the full functionality of Neo4j you will need to learn to use cypher query language, it is quite simple and most of the code I will...
25 תגובות

Using c# to connect To Neo4j (Graph database) Part 1

5 במרץ 2013

Hey everyone. Graph database, everyone hears about it, everyone talks about it and many solutions out there started to look into it in order to improve performance and start answering questions where relational databases fails to answer (or with really bad performance). There are many graph databases that anyone can use, in my tests I have look at AllegroGraph, FlockDB, Trinity and my favorite and the one I will talk about now Neo4j. I know there are more graph databases that I haven’t really looked at like GraphDB or Infinite Graph but I had to chose...
3 תגובות

How to create enum file dynamically from the database (or any other Data source)

30 באוקטובר 2012

Hey. While we all wait for all the news from 2012 build, I thought about sharing something I did in one of my previews projects. In this project we had two sources for the same enum, from the database and from a constants in the application. Each time you wanted to add an enum entry, you had to change it in two places, both in the code and the database. This is, of course an example of bad design and we thought about a solution that will not change the entire application but remove the...
אין תגובות

Guidelines for better code writing

24 בספטמבר 2012

Hey. In the last few weeks I have seen code written by many developers, each one have it’s own style and almost the same code can be written in different ways by different developers. some asked me what are my guidelines for writing code, without further ado, here it is, divided in categories: Goals: Robust – The code you write shouldn’t fail unexpectedly and stop, only when you intend it to stop it will do so. Only what you...
3 תגובות

How to test generic methods using Microsoft.Fakes

9 באוגוסט 2012

I have started using the Microsoft.Fakes, one of the new testing future in VS2012, some time ago and I found this tool to be very very powerful and many of my new test are written with the help of Stubs and Shims. If you don’t know what I am talking about you can read about Stubs in here, about Shims in here and you can watch the a very good lecture about it (and more new futures on testing in VS2012) in here. At some point I wanted to detour using Shims a generic method, but I couldn’t...
תגובה אחת

Different types of data blocks in TPL dataflow (TDF) part 3

18 ביולי 2012

Hey. In the last 2 posts I have talked about the difference of the data block in the new TPL data flow library that is a part of the new async concept in Microsoft.NET Framework 4.5. In the first post I have talk about the exection data blocks Link and in the second post I have talked about buffering data blocks Link if you haven't read it I encourage to go and read it now before continue reading this post. In this post I would like to talk and explain about the third data block group the:...
2 תגובות

Different types of data blocks in TPL dataflow (TDF) part 2

28 ביוני 2012

Hey.Last post I have talk about different groups of TPL dataflow blocks, I have talked and explained about the execution blocks group and if you haven't read it, please do so before reading this part.In this part I would like to take about the TPL dataflow data blocks group 2, The Buffering blocks. This purpose of the blocks in this group is buffer data, so other parts of the application can pull this data for farther processing, those blocks, unlike the blocks in the execution blocks group, will not change the message inserted into them but simply collect and buffer...
3 תגובות

Different types of data blocks in TPL dataflow (TDF) part 1

11 ביוני 2012

HeyWith the new release of the release candidate of visual studio 11 (now known as visual studio 12), I would like to explain the difference of the TPL dataflow (TDF) built in data blocks and give a short description about them. In TPL dataflow library there are 3 groups of building blocks. In this part I will talk about the first group which contains 3 unique blocks and the most commons ones: The execution blocks.The thing that combines all those blocks together as a group is that each time a massage in inserted to one of those blocks a delegate will be executed on...
אין תגובות

MaxMessages compare with unlinkAfterOne in TPL data flow

4 באפריל 2012

In the Updated TPL DataFlow CTP that was introduced in September 2011 they made a nice change in the method LinkTo, that connects blocks together like Broadcast block and a Actionblock. They remove the Boolean in the method parameter that represented the parameter for UnLinkAfterOne and change it with a class DataflowLinkOptions with a property called MaxMessages. The difference between the UnLinkAfterOne and the MaxMessages in the DataflowLinkOptions are really nice. In the old TPL data flow CTP, way the if you would have set the UnLinkAfterOne into true, if a message would be propagated between the...
תגיות: , , , ,
תגובה אחת

Visual Studio new look

12 במרץ 2012

I have been playing with the new visual studio, VS11, since the release of the beta I like most of new features, but the really dislike the new color themes. The gray theme look really boring and not attractive. At the release of the beta only 2 theme included the Light theme which is the default and the dark theme. To change to dark go to tools –> Options  and under Environment –> Color theme, you can change the theme to Dark. Dark theme is much better in my opinion, but again after some time it  really hurts your...
40 תגובות