This code defines a tuple with an integer status code and string message, a function that returns a tuple with status 200 and message "OK" when called, and calls that function to get the tuple and assign its values to variables. It also defines an Optional enum that can be none or contain a wrapped value.
The document shows an example of converting an external iteration over a list using a for loop into an internal iteration using Java streams. First, a for loop is used to iterate over a list of numbers and add each number multiplied by 2 to a new list. Then, this is rewritten using streams to map each number by multiplying it by 2 and collecting the results into a new list, eliminating the need for an anonymous class.
みんなで Swift 畽氏での丶喘スライド C in 奬始 1st> #minna_de_swiftTomohiro Kumagai
?
This document introduces some basic variable declarations in Swift including let constants for pi and attempts, a var variable for amount, and defines a maxCapacity constant as an Int with an initial value of 100 that is later reassigned to 20. It also declares a price constant as a Double.
This document defines various Swift variables and constants, performs printing operations, and demonstrates string interpolation. It also shows how to extend a type to conform to the CustomPlaygroundQuickLookable protocol.
The document presents an overview of using GraphQL with Swift, highlighting its advantages over REST, such as fewer round trips and the ability to request exactly the needed data. It discusses model structuring for Star Wars characters, the benefits of code generation, and emphasizes the strengthening of types in the backend schema. The speaker concludes by acknowledging the ongoing evolution of tools and best practices in integrating GraphQL with Swift for mobile applications.
The document presents a series of code snippets demonstrating various features of Swift programming, particularly focusing on type casting and optional properties. It illustrates how to manage methods and their dispatching, including dynamic and non-dynamic dispatch, as well as the use of optional chaining when calling methods. Overall, it emphasizes the flexibility of method invocation based on object types and functionality in Swift.
This document contains code snippets from Swift including defining a ViewController class that sets a title label on load, declaring variables and constants of different types, and a struct with methods and a mutable property.
The document discusses Kotlin support in Spring Framework 5. It covers how Kotlin can be used with Spring Boot and Spring's programming model through features like extension functions and reified type parameters. It provides code examples of using Kotlin idioms with Spring components like the application context, JdbcTemplate, and RestTemplate to make the code more concise and readable. It also briefly mentions new features in Spring Framework 5 like reactive support using Spring WebFlux and using router functions with Kotlin.
This document provides an overview of key concepts in Domain-Driven Design (DDD) including the ubiquitous language, bounded contexts, value objects, entities, repositories, collections, mappers, identity maps, units of work, and services. It explains that DDD is a set of principles and patterns that help developers create elegant systems by focusing on the core domain and language of the business. It also emphasizes separating business processes into bounded contexts and using ubiquitous language consistently throughout the code.
The document discusses client-side deep learning and introduces MPSCNN, a library that allows running convolutional neural networks on iOS devices using Metal Performance Shaders. MPSCNN can import trained models from frameworks like TensorFlow and run them to perform tasks like object detection on images at 60 times per second. Client-side deep learning could enable new mobile applications for areas like self-driving cars, AI assistants, and cancer detection by taking advantage of on-device processing power.
The document describes a TimelineTableViewController class that is responsible for displaying a timeline. It initializes a TimelinePresenter when loaded, which handles fetching the timeline data and notifying the view controller. The presenter calls a TimelineUseCase to retrieve the timeline and then uses the view controller as an output to update the UI, such as showing/hiding empty and ad views depending on the timeline contents.
The document presents a series of code snippets demonstrating various features of Swift programming, particularly focusing on type casting and optional properties. It illustrates how to manage methods and their dispatching, including dynamic and non-dynamic dispatch, as well as the use of optional chaining when calling methods. Overall, it emphasizes the flexibility of method invocation based on object types and functionality in Swift.
This document contains code snippets from Swift including defining a ViewController class that sets a title label on load, declaring variables and constants of different types, and a struct with methods and a mutable property.
The document discusses Kotlin support in Spring Framework 5. It covers how Kotlin can be used with Spring Boot and Spring's programming model through features like extension functions and reified type parameters. It provides code examples of using Kotlin idioms with Spring components like the application context, JdbcTemplate, and RestTemplate to make the code more concise and readable. It also briefly mentions new features in Spring Framework 5 like reactive support using Spring WebFlux and using router functions with Kotlin.
This document provides an overview of key concepts in Domain-Driven Design (DDD) including the ubiquitous language, bounded contexts, value objects, entities, repositories, collections, mappers, identity maps, units of work, and services. It explains that DDD is a set of principles and patterns that help developers create elegant systems by focusing on the core domain and language of the business. It also emphasizes separating business processes into bounded contexts and using ubiquitous language consistently throughout the code.
The document discusses client-side deep learning and introduces MPSCNN, a library that allows running convolutional neural networks on iOS devices using Metal Performance Shaders. MPSCNN can import trained models from frameworks like TensorFlow and run them to perform tasks like object detection on images at 60 times per second. Client-side deep learning could enable new mobile applications for areas like self-driving cars, AI assistants, and cancer detection by taking advantage of on-device processing power.
The document describes a TimelineTableViewController class that is responsible for displaying a timeline. It initializes a TimelinePresenter when loaded, which handles fetching the timeline data and notifying the view controller. The presenter calls a TimelineUseCase to retrieve the timeline and then uses the view controller as an output to update the UI, such as showing/hiding empty and ad views depending on the timeline contents.
The document discusses a PHP implementation of a Game Boy emulator that runs in the terminal. It explains how the emulator works, including how it simulates the Game Boy's CPU, memory, display, sound, buttons and communication port in PHP code. It provides code examples for emulating the CPU instructions and reading button input from the keyboard.