This book would not have been possible without the tireless efforts of dozens—possibly even dozens of dozens!—of people. First, my wife, Laura, who not only tolerated my all-night writing sessions and endless requests for feedback on story ideas, but also at various times pinch hit as literary agent, proofreader, sanity checker, and stop-reading-the-Internet- and-get-back-to-work!-er. This …
Astute readers such as yourself may be wondering whether the title of this book, Safe C++, presumes that the C++ programming language is somehow unsafe. Good catch! That is indeed the presumption. The C++ language allows programmers to make all kinds of mistakes, such as accessing memory beyond the bounds of an allocated array, or reading memory that was never initialized, or allocating memory …
This book was written with the beginner in mind. Each of the 24 hours in this book is short and succinct, usually teaching one basic subject and building on previous hours. The subjects covered in this book are geared primarily toward rendering on the small Windows Phone 7 screen. A lot of attention is given to sprite animation, since this seems to be the main focus of games for this platform. …
When using the SG procedures—PROC SGPLOT, PROC SGPANEL, PROC SGSCATTER, and PROC SGRENDER—the ODS GRAPHICS statement is optional. However, doing so can change a number of important features of the output image (such as the size and file format); and with new SAS versions, ODS Graphics supports new image formats. In particular, this chapter examines the EMF image-file format in more detail, …
Before we start learning Scala, let's first understand what functional programming (FP) is. You may have used a spreadsheet while working. In a spreadsheet, there is a bunch of equations and we enter values in the given cells for these equations. We get the answers through these equations. When you enter the same values again, you get the same answer and there are no fallouts. At the core of FP…
Scala was born from the mind of Martin Odersky, a man who had helped introduce generarics into the Java programming language.
Python is a powerful programming language when considering portability, flexibility, syntax, style, and extendability. The language was written by Guido van Rossum with clean syntax built in. To define a function or initiate a loop, indentation is used insteadofbrackets.Theresultisprofound:aPythonprogrammercanlookatanygiven uncommented Python code and quickly understand its inner workings and…
People learn spoken languages for different reasons. Y o u learned your first language to live. It gave you the tools to get through your everyday life. If you learned a second language, the reasons could be very differ- ent. Sometimes, you might have to learn a second language to further your career or adapt to a changing environment. But sometimes you decide to conquer a new language not bec…
the Shell iS the Standard interface to every Unix and Linux system; users and administrators alike have experience with the shell, and combining commands into shell scripts is a natural pro- gression. However, that is only the tip of the iceberg. The shell is actually a full programming language, with variables and functions, and also more advanced structures such as arrays (including associati…
Software engineering is about the creation of large pieces of software that consist of thousands of lines of code and involve many person months of human effort. One of the attractions of software engineering is that there is no one single best method for doing it, but instead a whole variety of different approaches. Consequently the software engineer needs a knowledge of many different techniq…
Sometimes all one wants is a good example. That’s our motivation for accepting the baton from Joe Sack and revising his excellent work to cover the very latest edition of Microsoft’s database engine—SQL Server 2012. T-SQL is fundamental to working with SQL Server. Almost everything you do, from querying a table to creating indexes to backing up and recovering, ultimately comes down to T-S…
Why, indeed? A good short answer is that you can’t get away from it. Almost everything you do involves economics. Why do people have to earn a living? Why do some people—heavyweight boxers, rock stars, and movie producers, for example—earn vastly more than bus drivers or policemen? What determines the price of a Big Mac, or, for that matter, a Mack truck? Whenever you have to deal with mo…
Programming languages do one very simple thing: they allow you to write programs that tell the computer what to do. You can tell a computer to read a value from the keyboard, add two numbers, save a result in a file on the hard disk, or draw a smiley face on the screen. No matter what programming language you use, the underlying commands that the computer can execute are exactly the same. Wheth…
This book has been created to serve the needs of many SAP Business One users. If you have a chance to browse the SAP business One website between mid-2008 and mid-2011, you will find that my name is always on the top contributor's list. I have solved many SQL Query related problems faced by many users, and some such users have asked me to write a blog or wiki page on the topic. However, the su…
“What an amazing job you have,” a developer recently told me during a break at a conference. “You seem so passionate about it. i wish i could be paid to do something i like, too.” Sadly, he was not the first one to tell me something like this, and he won’t be the last. How can great developers reach the next level and do what they like for a living? How come someone like me, an averag…
This is a practical book that will tell you everything you need to know to solve and create Sudoku puzzles in C. My intention is not to teach you how to become a software developer but rather how to use computer programs to deal with Sudokus. Therefore, you will not find here theoretical analyses of algorithms, solvability problems, or complexity theory. All the code I present and comment on in…
Swift, the new programming language that replaces Objective C, was announced by Apple on June 2, 2014. Since then, there have been many updates to the language. At the time of writing of this book, we are at version 2. Swift is a very well-structured programming language that takes many features from existing modern languages such as C#, Haskell, and Python, and it introduces a few new feature…
As its main theme, the book presents qualitative research from a practical perspective. Such a view reveals insights into how qualitative research is done, at the ground level. The approach should be especially useful if in fact you are actually wanting to conduct a qualitative study—whether it is to be self-standing, part of a larger study, or an academic or training assignment for an underg…
Every program’s user interface is crucial to letting users control a program. It doesn’t matter how powerful your program may be if the user interface frustrates users and discourages them from using the program. Since every user interface needs to respond to changes the user might make to the size of a window, stack views let you group related items together and apply constraints on that e…
Swift is an exciting new language from Apple, first announced at the Apple Worldwide Developers Conference (WWDC) in June 2014. The language started life as the brainchild of Chris Lattner, director of Apple’s Developer Tools Department, and is the next step in the evolution of Apple’s software development ecosystem. Swift brings with it many modern language features, including type safety,…
This chapter will introduce the BASIC-256 environment using the print and say statements. You will see the difference between commands you send to the computer, strings of text, and numbers that will be used by the program. We will also explore simple mathematics to show off just how talented your computer is. Lastly you will learn what a syntax-error is and how to fix them.
In 1849, at a time when classical liberalism was still the dominant ideological force and “economist” and “socialist” were generally considered antonyms, Gustave de Molinari, a renowned Belgian economist, wrote, If there is one well-established truth in political economy, it is this: That in all cases, of all commodities that serve to provide for the tangible or intangible need of the c…
This book is about Tcl, the scripting language developed by John Ousterhout. Tcl stands for tool command language and was originally designed as a simple scripting language interpreter that could be embedded inside applications written in the C language. With the addition of the Tk graphical toolkit and a host of other language extensions supporting such features as graphics, relational databas…
One of the simplest and natural types of information representation is by means of written texts. Data to be processed often does not decompose into independent records. This type of data is characterized by the fact that it can be written down as a long sequence of characters. Such linear sequence is called a text. The texts are central in "word processing" systems, which provide facilities fo…
Bowing to the physics of heat and power, processor clock speeds could not keep doubling every 18 months as they had been doing for the past three decades or more. In order to keep increasing the processing power of the next generation over the current generation, processor manufacturers began producing chips with multiple processor cores. More processors running at a reduced speed generate less…