background preloader

Programming

Facebook Twitter

Clean Code: A Handbook of Agile Software Craftsmanship: Robert C. Martin: 9780132350884: Amazon.com: Books. Code Complete: A Practical Handbook of Software Construction, Second Edition: Steve McConnell: 0790145196705: Amazon.com: Books. Jon Skeet's C# and .NET articles and links. The code in all articles is C#-based, as that's the background I come from.

Many of the concepts in the C# articles will be applicable to other .NET languages, but there may be some wrinkles which are C#-specific. The framework articles should be more language-agnostic, even though they are couched in C# terms. I have a book called C# in Depth, published by Manning. Hopefully if you find these articles useful, you'll find the book handy too. The third edition covers C# 2-5. I have a blog about C#, Java and other technologies. Many posts in the blog may well end up as full-blown articles. This page itself now has its own RSS feed. Back to my homepage. C# - How to abstract a singleton class? C# in Depth: Implementing the Singleton Pattern. Table of contents (for linking purposes...) Introduction The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, and usually gives simple access to that instance.

Most commonly, singletons don't allow any parameters to be specified when creating the instance - as otherwise a second request for an instance but with a different parameter could be problematic! (If the same instance should be accessed for all requests with the same parameter, the factory pattern is more appropriate.) This article deals only with the situation where no parameters are required. Typically a requirement of singletons is that they are created lazily - i.e. that the instance isn't created until it is first needed. There are various different ways of implementing the singleton pattern in C#. All these implementations share four common characteristics, however: First version - not thread-safe.

SoftUni - TeamProject - June_2016

Transparency - C# Picturebox transparent background doesn't seem to work. New Language Features in C# 6 · dotnet/roslyn Wiki. This document describes the new language features in C# 6, the next version of C#. All of these are implemented and available in VS 2015. Auto-property enhancements Initializers for auto-properties You can now add an initializer to an auto-property, just as you can in a field: public class Customer { public string First { get; set; } = "Jane"; public string Last { get; set; } = "Doe"; } The initializer directly initializes the backing field; it doesn’t work through the setter of the auto-property.

The initializers are executed in order as written, just as – and along with – field initializers. Just like field initializers, auto-property initializers cannot reference this – after all they are executed before the object is properly initialized. Getter-only auto-properties Auto-properties can now be declared without a setter. public class Customer { public string First { get; } = "Jane"; public string Last { get; } = "Doe"; } Expression-bodied function members Using static Extension methods int? Int? За свободата, програмиста, и менажерията - Николай Цветинов.

SoftUni-Java

A/esr-sharing. Date: Tue, 22 Aug 2000 16:00:52 -0400 From: "Eric S. Raymond" <esr@thyrsus.com> To: Linus Torvalds <torvalds@transmeta.com> Subject: Re: [PATCH] Re: Move of input drivers, some word needed from you Linus Torvalds <torvalds@transmeta.com>: > > > On Tue, 22 Aug 2000, Eric S. Raymond wrote:> >> > Linus Torvalds <torvalds@transmeta.com>:> > > But the "common code helps" thing is WRONG.

Face it. It can hurt. Бази данни - юни 2015 - Софтуерен университет. Бази данни - юни 2015 Бази данни - юни 2015 16 June 2015 4 седмици 6 Курсът по бази данни ще ви запознаe с широко използвани системи за управление на бази данни (DBMS), използвани при разработката на съвременни информационни системи - SQL Server, MySQL и MongoDB. Курсът обръща сериозно внимание на релационния модел, моделирането на данни с ER диаграми (таблици и релационни връзки) и работата езика SQL (извличане на данни, селекция, проекция, съединения, агрегация, групиране, промяна, изтриване и вмъкване), както и на документния модел при NoSQL базите. Какви умения ще придобия? Работа с MongoDb, Redis, E/R Diagrams Познания по SQL, T-SQL, MySQL, NoSQL Database Fundamentals Крайният срок за записване е 14 юни 2015 г. Обучението завършва на 12 юли 2015 г. с практически изпит (по желание). 10 places where anyone can learn to code.

Teens, tweens and kids are often referred to as “digital natives.” Having grown up with the Internet, smartphones and tablets, they’re often extraordinarily adept at interacting with digital technology. But Mitch Resnick, who spoke at TEDxBeaconStreet, is skeptical of this descriptor. Sure, young people can text and chat and play games, he says, “but that doesn’t really make you fluent.” Mitch Resnick: Let's teach kids to code Fluency, Resnick proposes in this TED Talk, comes not through interacting with new technologies, but through creating them. The former is like reading, while the latter is like writing. He means this figuratively — that creating new technologies, like writing a book, requires creative expression — but also literally: to make new computer programs, you actually must write the code. The point isn’t to create a generation of programmers, Resnick argues.

At Codecademy, you can take lessons on writing simple commands in JavaScript, HTML and CSS, Python and Ruby. Programming problems and Competitions :: HackerRank. [C#] useful nippets C# for advanced. [C#] useful nippets C# for beginners. Introduction-to-Programing-with-Java-Book-v2014.pdf. Sublime Text: The text editor you'll fall in love with. Low Level Bit Hacks You Absolutely Must Know. I decided to write an article about a thing that is second nature to embedded systems programmers - low level bit hacks. Bit hacks are ingenious little programming tricks that manipulate integers in a smart and efficient manner. Instead of performing some operation (such as counting the 1 bits in an integer) by looping over individual bits, these programming nuggets do the same with one or two carefully chosen bitwise operations.

To get things going I'll assume that you know what the two's complement binary representation of an integer is and also that you know all the the bitwise operations. I'll use the following notation for bitwise operations in the article: & - bitwise and | - bitwise or ^ - bitwise xor ~ - bitwise not << - bitwise shift left >> - bitwise shift right The numbers in the article are 8 bit signed integers (though the operations work on arbitrary length signed integers) that are represented as two's complement and they are usually named 'x'.

The result is usually 'y'. 1. Lecture 1 | Programming Paradigms (Stanford)