"Architecture" is often used in the context of something at a high level, whereas "design" more often seems to imply structures and decisions at lower level. But this usage is nonsensical. In software design the low-level details and the high-level stucture are all part of the same whole, there is a continuum of decisions from the highest to the lowest levels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; htmlize.el --- Convert buffer text and decorations to HTML. -*- lexical-binding: t -*- | |
;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012,2014,2017,2018 Hrvoje Niksic | |
;; Author: Hrvoje Niksic <[email protected]> | |
;; Homepage: https://github.com/hniksic/emacs-htmlize | |
;; Keywords: hypermedia, extensions | |
;; Version: 1.56 | |
;; This program is free software; you can redistribute it and/or modify |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTest | |
class AwesomeAppUITests: XCTestCase { | |
func test_whenUserTapsThroughMoreThanTwoScreens_itShouldTakeThemToLastScreen() { | |
let app = XCUIApplication() | |
app.launch() | |
XCTAssertTrue(app.staticTexts["First screen"].exists) | |
app.buttons["Tap me!"].tap() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@main | |
struct AwesomeApp: App { | |
var body: some Scene { | |
WindowGroup { | |
MainView() | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ButtonView: View { | |
let message: String | |
let buttonTitle: String | |
let onTap: () -> Void | |
var body: some View { | |
VStack { | |
Text(message).padding() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
struct ContentView: View { | |
@State private var selection: String? | |
var body: some View { | |
NavigationView { | |
VStack { | |
ButtonView( | |
message: "First screen", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'CREATE DATABASE member' | |
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'member')\gexec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
my-service-db: | |
image: "postgres:11.5-alpine" | |
restart: always | |
volumes: | |
- my-service-volume:/var/lib/postgresql/data/ | |
- ./db:/docker-entrypoint-initdb.d/ | |
networks: | |
- my-service-network |
OlderNewer