reklama - zainteresowany?

21st Century C. C Tips from the New School. 2nd Edition - Helion

21st Century C. C Tips from the New School. 2nd Edition
ebook
Autor: Ben Klemens
ISBN: 978-14-919-0443-5
stron: 408, Format: ebook
Data wydania: 2014-09-27
Księgarnia: Helion

Cena książki: 152,15 zł (poprzednio: 176,92 zł)
Oszczędzasz: 14% (-24,77 zł)

Dodaj do koszyka 21st Century C. C Tips from the New School. 2nd Edition

Throw out your old ideas about C and get to know a programming language that’s substantially outgrown its origins. With this revised edition of 21st Century C, you’ll discover up-to-date techniques missing from other C tutorials, whether you’re new to the language or just getting reacquainted.

C isn’t just the foundation of modern programming languages; it is a modern language, ideal for writing efficient, state-of-the-art applications. Get past idioms that made sense on mainframes and learn the tools you need to work with this evolved and aggressively simple language. No matter what programming language you currently favor, you’ll quickly see that 21st century C rocks.

  • Set up a C programming environment with shell facilities, makefiles, text editors, debuggers, and memory checkers
  • Use Autotools, C’s de facto cross-platform package manager
  • Learn about the problematic C concepts too useful to discard
  • Solve C’s string-building problems with C-standard functions
  • Use modern syntactic features for functions that take structured inputs
  • Build high-level, object-based libraries and programs
  • Perform advanced math, talk to internet servers, and run databases with existing C libraries

This edition also includes new material on concurrent threads, virtual tables, C99 numeric types, and other features.

Dodaj do koszyka 21st Century C. C Tips from the New School. 2nd Edition

 

Osoby które kupowały "21st Century C. C Tips from the New School. 2nd Edition", wybierały także:

  • Windows Media Center. Domowe centrum rozrywki
  • Ruby on Rails. Ćwiczenia
  • DevOps w praktyce. Kurs video. Jenkins, Ansible, Terraform i Docker
  • Przywództwo w Å›wiecie VUCA. Jak być skutecznym liderem w niepewnym Å›rodowisku
  • Scrum. O zwinnym zarzÄ…dzaniu projektami. Wydanie II rozszerzone

Dodaj do koszyka 21st Century C. C Tips from the New School. 2nd Edition

Spis treści

21st Century C. C Tips from the New School. 2nd Edition eBook -- spis treści

  • Preface
    • C Is Punk Rock
    • Q & A (Or, the Parameters of the Book)
    • Standards: So Many to Choose From
      • The POSIX Standard
    • Some Logistics
      • The Second Edition
      • Conventions Used in This Book
      • Using Code Examples
      • Safari Books Online
      • How to Contact Us
      • Acknowledgments
  • I. The Environment
  • 1. Set Yourself Up for Easy Compilation
    • Use a Package Manager
    • Compiling C with Windows
      • POSIX for Windows
      • Compiling C with POSIX
      • Compiling C Without POSIX
    • Which Way to the Library?
      • A Few of My Favorite Flags
      • Paths
      • Runtime Linking
    • Using Makefiles
      • Setting Variables
      • The Rules
    • Using Libraries from Source
    • Using Libraries from Source (Even if Your Sysadmin Doesnt Want You To)
    • Compiling C Programs via Here Document
      • Include Header Files from the Command Line
      • The Unified Header
      • Here Documents
      • Compiling from stdin
  • 2. Debug, Test, Document
    • Using a Debugger
      • A Debugging Detective Story
      • GDB Variables
      • Print Your Structures
    • Using Valgrind to Check for Errors
    • Unit Testing
      • Using a Program as a Library
      • Coverage
    • Error Checking
      • What is the Users Involvement in the Error?
      • The Context in Which the User is Working
      • How Should the Error Indication Be Returned?
    • Interweaving Documentation
      • Doxygen
        • The narrative
      • Literate Code with CWEB
  • 3. Packaging Your Project
    • The Shell
      • Replacing Shell Commands with Their Outputs
      • Use the Shells for Loops to Operate on a Set of Files
      • Test for Files
      • fc
    • Makefiles vs. Shell Scripts
    • Packaging Your Code with Autotools
      • An Autotools Demo
      • Describing the Makefile with Makefile.am
        • Form variables
        • Content variables
        • Adding testing
        • Adding makefile bits
      • The configure Script
        • More Bits of Shell
  • 4. Version Control
    • Changes via diff
    • Gits Objects
      • The Stash
    • Trees and Their Branches
      • Merging
      • The Rebase
    • Remote Repositories
  • 5. Playing Nice with Others
    • Dynamic Loading
      • The Limits of Dynamic Loading
    • The Process
      • Writing to Be Read by Nonnatives
      • The Wrapper Function
      • Smuggling Data Structures Across the Border
      • Linking
    • Python Host
      • Compiling and Linking
      • The Conditional Subdirectory for Automake
      • Distutils Backed with Autotools
  • II. The Language
  • 6. Your Pal the Pointer
    • Automatic, Static, and Manual Memory
    • Persistent State Variables
    • Pointers Without malloc
      • Structures Get Copied, Arrays Get Aliased
      • malloc and Memory-Twiddling
      • The Fault Is in Our Stars
      • All the Pointer Arithmetic You Need to Know
      • Typedef as a teaching tool
  • 7. Inessential C Syntax that Textbooks Spend a Lot of Time Covering
    • Dont Bother Explicitly Returning from main
    • Let Declarations Flow
      • Set Array Size at Runtime
    • Cast Less
    • Enums and Strings
    • Labels, gotos, switches, and breaks
      • goto Considered
      • switch
    • Deprecate Float
    • Comparing Unsigned Integers
    • Safely Parse Strings to Numbers
  • 8. Important C Syntax that Textbooks Often Do Not Cover
    • Cultivate Robust and Flourishing Macros
      • The Preprocessor
      • Test Macros
      • Header Guards
    • Linkage with static and extern
      • Externally Linked Variables in Header Files
    • The const Keyword
      • Noun-Adjective Form
      • Tension
      • Depth
      • The char const ** Issue
  • 9. Easier Text Handling
    • Making String Handling Less Painful with asprintf
      • Security
      • Constant Strings
      • Extending Strings with asprintf
    • A Pan to strtok
    • Unicode
      • The Encoding for C Code
      • Unicode Libraries
      • The Sample Code
  • 10. Better Structures
    • Compound Literals
      • Initialization via Compound Literals
    • Variadic Macros
    • Safely Terminated Lists
    • Multiple Lists
    • Foreach
    • Vectorize a Function
    • Designated Initializers
    • Initialize Arrays and Structs with Zeros
    • Typedefs Save the Day
      • A Style Note
    • Return Multiple Items from a Function
      • Reporting Errors
    • Flexible Function Inputs
      • Declare Your Function as printf-Style
      • Optional and Named Arguments
      • Polishing a Dull Function
    • The Void Pointer and the Structures It Points To
      • Functions with Generic Inputs
      • Generic Structures
  • 11. Object-Oriented Programming in C
    • Extending Structures and Dictionaries
      • Implementing a Dictionary
      • C, with fewer seams
    • Functions in Your Structs
      • Vtables
        • The hash function
        • Type checking
        • Putting it all together
    • Scope
      • Private Struct Elements
    • Overload
      • _Generic
    • Count References
      • Example: A Substring Object
      • Example: An Agent-Based Model of Group Formation
      • Conclusion
  • 12. Parallel Threads
    • The Environment
      • The Ingredients
    • OpenMP
      • Compiling OpenMP, pthreads, and C atoms
      • Interference
      • Map-reduce
      • Multiple Tasks
    • Thread Local
      • Localizing Nonstatic Variables
    • Shared Resources
      • Atoms
    • Pthreads
    • C atoms
      • Atomic structs
  • 13. Libraries
    • GLib
    • POSIX
      • Parsing Regular Expressions
      • Using mmap for Gigantic Data Sets
    • The GNU Scientific Library
    • SQLite
      • The Queries
    • libxml and cURL
  • Epilogue
  • A. C 101
    • The Structure
      • C requires a compilation step, which consists of running a single command
      • Theres a standard library, and its part of your operating system
      • Theres a preprocessor
      • There are two types of comment
      • There is no print keyword
    • Variable Declarations
      • Variables have to be declared
      • Even functions have to be declared or defined
      • Basic types can be aggregated into arrays and structs
      • New structure types can be defined
      • You can find out how much space a type takes
      • There is no special string type
    • Expressions
      • The scoping rules for C are very simple
      • The main function is special
      • Most of what a C program actually does is evaluate expressions
      • Functions are evaluated using copies of the inputs
      • Expressions are delimited by semicolons
      • There are many shortcuts for incrementing or scaling a variable
      • C has an expansive definition of truth
      • Dividing two integers always produces an integer
      • C has a trinary conditional operator
      • Branching and looping expressions are not very different from any other language
      • The for loop is just a compact version of the while loop
    • Pointers
      • You can directly request a block of memory
      • Arrays are just blocks of memory; any block of memory can be used like an array
      • A pointer to a scalar is really just a one-item array
      • There is a special notation for elements of pointed-to structs
      • Pointers let you modify function inputs
      • Everything is somewhere, so everything can be pointed to
  • Glossary
  • References
  • Index

Dodaj do koszyka 21st Century C. C Tips from the New School. 2nd Edition

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.