Zie Scherp Scherper
Zie Scherp Scherper
Object georiënteerd programmeren met C# voor beginners en gevorderden
Over het boek
Programmeren is een beetje zoals fietsen. Van zodra je ermee weg bent verleer je het niet. Maar je moet natuurlijk wel ervoor op een fiets springen. Erover lezen helpt niet. Dit boek hanteert de 'leren fietsen doe je door het te doen'-filosofie om je zo gekend te maken met de basisbeginselen van programmeren in C# ("see sharp").
In dit boek behandelen we eerst de beginconcepten zoals daar zijn : variabelen en expressies, if-else structuren, loops, methoden en arrays. Zeggen die termen je niets, dan is dit het boek voor jou!
Vervolgens gaan we de object oriented programming (OOP) tour op en ontdekken we de magische, maar soms abstracte wereld van klassen, objecten, interfaces, compositie, aggregatie, overerving en polymorfisme. De zijwieltjes worden er afgehaald en we leren C# gevorderde programmeurs dit doen.
Dit boek is een nieuwe uitgave en bestaat uit de eerder verschenen Zie Scherp en Zie Scherper edities.
Inhoudsopgave
-
Welkom
- Over de bronnen
- Dankwoord
-
1 De eerste stappen
- 1.1 Wat is programmeren?
- 1.2 Kennismaken met C# en Visual Studio
- 1.3 Console-applicaties
- 1.4 Fouten oplossen
- 1.5 Kleuren in console
- 1.6 Oefeningen
-
2 De basisconcepten van C#
- 2.1 Keywords: de woordenschat
- 2.2 Variabelen, identifiers en naamgeving
- 2.3 Commentaar
- 2.4 Datatypes
- 2.5 Variabelen
- 2.6 Expressies en operators
- 2.7 Expressiedatatypes
- 2.8 Oefeningen
-
3 Tekst gebruiken in code
- 3.1 Tekst datatypes
- 3.2 String
- 3.3 Escape characters
- 3.4 Optellen van char variabelen
- 3.5 Strings samenvoegen
- 3.6 Vreemde tekens in console tonen
- 3.7 Environment bibliotheek
- 3.8 Oefeningen
-
4 Werken met data
- 4.1 Casting
- 4.2 Conversie
- 4.3 Parsing
- 4.4 Invoer van de gebruiker verwerken
- 4.5 Berekeningen met System.Math
- 4.6 Random getallen genereren
- 4.7 Debuggen
- 4.8 Oefeningen
-
5 Beslissingen
- 5.1 Relationele en logische operators
- 5.2 If
- 5.3 Scope van variabelen
- 5.4 Switch
- 5.5 Enum
- 5.6 Oefeningen
-
6 Herhalingen Herhalingen Herhalingen
- 6.1 Soorten loops
- 6.2 While
- 6.3 Do while
- 6.4 For-loops
- 6.5 Nested loops
- 6.6 Oefeningen
-
7 Methoden
- 7.1 Werking van methoden
- 7.2 Returntypes van methoden
- 7.3 Parameters doorgeven
- 7.4 Bestaande methoden en bibliotheken
- 7.5 Geavanceerde methode-technieken
- 7.6 Oefeningen
-
8 Arrays
- 8.1 Nut van arrays
- 8.2 Werken met arrays
- 8.3 Geheugengebruik bij arrays
- 8.4 System.Array
- 8.5 Algoritmes en arrays
- 8.6 String en arrays
- 8.7 Methoden en arrays
- 8.8 Meer-dimensionale Arrays
- 8.9 Conclusie
- 8.10 Oefeningen
-
9 Object Oriented Programming
- 9.1 Klassen en objecten
- 9.2 OOP in C#
- 9.3 Properties
- 9.4 OOP in de praktijk : DateTime
- 9.5 Oefeningen
-
10 Geheugenmanagement, uitzonderingen en namespaces
- 10.1 Geheugenmanagement in C#
- 10.2 Objecten en methoden
- 10.3 Object referenties en null
-
10.4 Namespaces en
using
- 10.5 Exception handling
- 10.6 Oefeningen
-
11 Gevorderde klasseconcepten
- 11.1 Constructors
- 11.2 Object initializer syntax
- 11.3 Static
- 11.4 Intermezzo: Debug.WriteLine
- 11.5 Oefeningen
-
12 Arrays en klassen
- 12.1 Arrays van objecten aanmaken
- 12.2 List collectie
- 12.3 Foreach loops
-
12.4 Het
var
keyword - 12.5 Dictionary collecties
- 12.6 Oefeningen
-
13 Overerving
- 13.1 Wat is overerving
- 13.2 Overerving in C#
- 13.3 Constructors bij overerving
- 13.4 Virtual en Override
-
13.5 Het
base
keyword - 13.6 Oefeningen
-
14 Gevorderde overervingsconcepten
-
14.1
System.Object
- 14.2 Abstracte klassen
- 14.3 Eigen exceptions maken dankzij overerving
- 14.4 Oefeningen
-
14.1
-
15 Compositie en aggregatie
- 15.1 Heeft een-relatie
- 15.2 Compositie en aggregatie in de praktijk
- 15.3 “Heeft meerdere”- relatie
- 15.4 Compositie of overerving?
-
15.5 Het
this
keyword - 15.6 Oefeningen
-
16 Polymorfisme
- 16.1 De “is een”-relatie in actie
- 16.2 Arrays en polymorfisme
- 16.3 Polymorfisme in de praktijk
-
16.4 De
is
enas
keywords - 16.5 Is, as en polymorfisme: een krachtige bende
- 16.6 Oefeningen
-
17 Interfaces
- 17.1 Interfaces en klassen
-
17.2 Het
is
keyword met interfaces - 17.3 Bestaande interfaces in .NET
- 17.4 Interfaces in de praktijk
- 17.5 Alles samen : Polymorfisme, interfaces en is/as
- 17.6 Oefeningen
-
Conclusie
- En nu? Ken ik nu alles van C#/.NET ?
-
Appendix
-
out
enref
keywords -
Foute invoer van de gebruiker opvangen mbv
TryParse
- Operator overloading
- Expression bodied members
- Generics
- Queue en Stack collectie
- Records
- Spelen met strings
-
- Notities
Andere boeken van deze auteur
De Leanpub 45-dagen 100% Geluksgarantie
Binnen 60 dagen na aankoop kunt u een 100% restitutie op elke Leanpub aankoop krijgen in twee klikken. We verwerken deze restituties handmatig. Het zal dus een paar dagen duren voor ze verschijnen. Zie volledige voorwaarden.
Do Well. Do Good.
Authors have earned$11,600,486writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
Gratis Updates. DRM-vrij.
Als je een Leanpub boek koopt, krijg je gratis aanpassingen aan het boek, zolang de auteur het boek aanpast! Veel auteurs gebruiken Leanpub om hun in wording boeken te publiceren, terwijl ze deze aan het schrijven zijn. Alle lezers krijgen gratis updates, onafhankelijk van het tijdstip wanneer ze het boek kochten of hoeveel ze betaalden (dus ook als ze niets betaalden).
De meeste Leanpub boeken zijn beschikbaar in PDF (voor computers), EPUB (voor telefoon of tablets) en MOBI (voor Kindle). De formaten die bij een boek beschikbaar zijn, worden getoond in de rechter bovenhoek van deze pagina.
Tenslotte, Leanpub boeken hebben geen DRM anti-kopieer nonsense, zodat je de boeken makkelijk kan lezen op elk toestel dat ondersteund wordt.
Lees meer over de e-boekformaten van Leanpub en waar u ze kunt lezen
Top Books
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Cronache di Domain-Driven Design
Francesco Strazzullo, Matteo Baglini, Gianluca Padovani, Emanuele DelBono, Marco Consolaro, Alessandro Colla, Uberto Barbini, Alberto Acerbis, Julie Camosseto, DDD Open, and Alberto BrandoliniCronache di Domain-Driven Design: un libro corale in italiano fatto di storie indipendenti tra loro, che sono il risultato dell’applicazione di Domain-Driven Design su progetti reali.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Jetpack Compose internals
Jorge CastilloJetpack Compose is the future of Android UI. Master how it works internally and become a more efficient developer with it. You'll also find it valuable if you are not an Android dev. This book provides all the details to understand how the Compose compiler & runtime work, and how to create a client library using them.
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
Functional event-driven architecture: Powered by Scala 3
Gabriel VolpeExplore the event-driven architecture (EDA) in a purely functional way, mainly powered by Fs2 streams in Scala 3!
Leverage your functional programming skills by designing and writing stateless microservices that scale, powered by stateful message brokers.
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the first guide around that introduces the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
CCIE Service Provider Version 4 Written and Lab Exam Comprehensive Guide
Nicholas RussoThe service provider landscape has changed rapidly over the past several years. Networking vendors are continuing to propose new standards, techniques, and procedures for overcoming new challenges while concurrently reducing costs and delivering new services. Cisco has recently updated the CCIE Service Provider track to reflect these changes; this book represents the author's personal journey in achieving that certification.
CCIE SP v5.0
Łukasz Bromirski, Piotr Jablonski, and Nicholas RussoAre you striving to prepare to and pass CCIE SP lab exam? Take the opportunity and get this workbook! With the attached initial cfg files you will prepare yourself for the CCIE SP exam as well as learn SP technologies applicable to all kinds of today modern networks! This workbook covers blueprint topics and provides challenging examples.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #3
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #4
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #6
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #7
Modern C++ Collection
3 Books
Get All about Modern C++C++ Standard Library, including C++20Concurrency with Modern C++, including C++20C++20Each book has about 200 complete code examples. Updates are included. When I update one of the books, you immediately get the updated bundle. You can expect significant updates to each new C++ standard (C++23, C++26, .. ) and also... - #9
Retromat eBook Bundle for Agile Retrospectives
2 Books
If you facilitate retrospectives this bundle is for you: "Plans for Retrospectives" helps beginners learn the lay of the land with tried-and-true plans. Once you know your way around, "Run great agile retrospectives" contains all 135+ activities in Retromat for you to mix and match.