background preloader

Programming

Facebook Twitter

TIOBE Software: Tiobe Index. TIOBE Index for January 2016 January Headline: Java is TIOBE's Programming Language of 2015!

TIOBE Software: Tiobe Index

Java has won the TIOBE Index programming language award of the year. This is because Java has the largest increase in popularity in one year time (+5.94%). Java leaves runner ups Visual Basic.NET (+1.51%) and Python (+1.24%) far behind. At first sight, it might seem surprising that an old language like Java wins this award. Java's rise goes hand in hand with Objective-C's decline (-5.88%). So what is the outlook for 2016? The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index can be used to check whether your programming skills are still up to date or to make a strategic decision about what programming language should be adopted when starting to build a new software system. TIOBE Programming Community IndexSource: www.tiobe.com Java Python Visual Basic .NET JavaScript Assembly language Ruby Other programming languages. Threading in C# - Part 4 - Advanced Threading.

Threading in C# Joseph Albahari Last updated: 2011-4-27 Translations: Chinese | Czech | Persian | Russian | Japanese Download PDF Part 4: Advanced Threading Earlier, we said that the need for synchronization arises even in the simple case of assigning or incrementing a field. Writing nonblocking or lock-free multithreaded code properly is tricky! The nonblocking approaches also work across multiple processes. Memory Barriers and Volatility Consider the following example: class Foo{ int _answer; bool _complete; void A() { _answer = 123; _complete = true; } void B() { if (_complete) Console.WriteLine (_answer); }} If methods A and B ran concurrently on different threads, might it be possible for B to write “0”?

The compiler, CLR, or CPU may reorder your program's instructions to improve efficiency. C# and the runtime are very careful to ensure that such optimizations don’t break ordinary single-threaded code — or multithreaded code that makes proper use of locks. Full fences Interlocked. SQL Tutorial - Union. SQL UNION combines two separate SQL queries into one result set.

SQL Tutorial - Union

A JOIN statement adds additional table columns to a result set (horizontally), UNION combines row results from one table with rows of another table (vertically). In order to perform a UNION the columns of table 1 must match those of table 2. This rule ensures that the result set is consistent as rows are fetched by SQL. For these next exercises we suggest creating two different tables that are identical in structure but contain unique rows of data. We challenge you to do this by reviewing the SQL Create queries and modifying them to create two brand new employee tables. Www.objectmentor.com/resources/articles/Naming.pdf. Object Oriented Design. C# Coding Style Guide. Version 0.3 by Mike Krüger icsharpcode.net This document may be read as a guide to writing robust and reliable programs.

It focuses on programs written in C#, but many of the rules and principles are useful even if you write in another programming language. 2.1 C# Sourcefiles Keep your classes/files short, don't exceed 2000 LOC, divide your code up, make structures clearer. Put every class in a separate file and name the file like the class name (with .cs as extension of course). 2.2 Directory Layout Create a directory for every namespace. 3.1 Wrapping Lines When an expression will not fit on a single line, break it up according to these general principles:

How do you convert a string into an enum? - Tim Sneath.