Date: 2022-06-21
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
| <svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg"> | |
| <!-- Background --> | |
| <rect width="1200" height="800" fill="#f8fafc"/> | |
| <!-- Logo --> | |
| <image x="50" y="10" width="80" height="80" href="https://res.cloudinary.com/dqarz88r6/image/upload/v1751589662/sb-logo2_vg1dz8.png"/> | |
| <!-- Title --> | |
| <text x="600" y="40" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#1e293b"> | |
| Code Review: Technical Practice & Learning Journey |
Postmortem documents are a ritual designed to examine serious incidents or outages. Google’s book on Site Reliability Engineering says:
A postmortem is a written record of an incident, its impact, the actions taken to mitigate or resolve it, the root cause(s), and the follow-up actions to prevent the incident from recurring.
We practice postmortems to ensure we understand and address the root cause of severe incidents such as outages, data loss, or serious production bugs.
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 'package:flutter/material.dart'; | |
| import 'package:flutter_tdd/home/home_page.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| void main() { | |
| testWidgets('home page is created', (WidgetTester tester) async { | |
| final testWidget = MaterialApp( | |
| home: HomePage(), | |
| ); |
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
| #include "Dialog.h" | |
| #include "ui_Dialog.h" | |
| #include "LCDNumber.h" | |
| #include <QSettings> | |
| Dialog::Dialog(QWidget *parent) : | |
| QDialog(parent), | |
| ui(new Ui::Dialog) |
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
| public class Phone { | |
| private final String unformattedNumber; | |
| public Phone(String unformattedNumber) { | |
| this.unformattedNumber = unformattedNumber; | |
| } | |
| public String getAreaCode() { | |
| return unformattedNumber.substring(0,3); | |
| } | |
| public String getPrefix() { | |
| return unformattedNumber.substring(3,6); |
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
| public bool SubmitCreditCardOrder(String firstName, String lastName, String zipcode, String streetAddress1, String streetAddress2, String city, String state, String country, String phoneNumber, String creditCardNumber, int expirationMonth, int expirationYear, double saleAmount) | |
| { | |
| // … submit order | |
| } |
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
| public class Registration | |
| { | |
| public void Create(double amount, Student student, IEnumerable<Course> courses, | |
| decimal credits) | |
| { | |
| // do work | |
| } | |
| } |
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
| class Order { | |
| // ... | |
| public double price() { | |
| private double primaryBasePrice; | |
| private double secondaryBasePrice; | |
| //this might be needed in the future | |
| private double tertiaryBasePrice; | |
| public double getPrimaryBasePrice() { | |
| return primaryBasePrice; |
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
| public class BankAccount | |
| { | |
| public BankAccount(int accountAge, int creditScore, AccountInterest accountInterest) | |
| { | |
| AccountAge = accountAge; | |
| CreditScore = creditScore; | |
| AccountInterest = accountInterest; | |
| } | |
| public int AccountAge { get; private set; } |
NewerOlder