Android

2 Repository, enum, data & sealed class, hash code, interface | Android Studio Tutorial Kotlin

Source code:
https://github.com/BracketCove/GraphSudokuOpen/tree/master/app/src/main/java/com/bracketcove/graphsudoku/domain

TIMESTAMPS:
Note: For beginners, focus on following along with the code even if some things don’t make sense. If you are persistent, you will learn new things!
0:00:00 Package Overview
0:00:54 The Repository (Facade) Pattern and benefits
0:02:41 Enum Class (Dictionary) for legible code
0:04:24 Kotlin data classes for user and game data models
0:07:01 How to virtually represent each square in a Sudoku Game
0:09:58 hash code usage for uniqueness a tracking references
(Note: usage of the hash code will make more sense when we start building the UI and Graph algorithms)
0:13:34 Virtually representing a Sudoku Game with a Hashmap of Lists O_O (adjaceny list)
0:16:50 Coding our interfaces to employ the Repository (Facade Pattern)
0:17:17 Some thoughts on when use cases (a.k.a. interactors or transaction scripts) are appropriate
(Note: ignore this rambling if you’re a beginner; it’s not critical to understand yet)
0:18:44 Using Kotlin Function Types for success and error handling
0:24:25 Using Kotlin Sealed Classes for success and error handling
0:27:20 From here on we just write code to finish off the package

Hey! Did this FREE content help you? Likes, Subscribes, Follows and so on are all forms of digital currency. Help a brogrammer out:

https://www.instagram.com/rkay301/​
https://www.facebook.com/wiseassblog/​
https://twitter.com/wiseass301​
http://wiseassblog.com/

Views :2812
android studio

Source by Ryan Michael Kay

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *