Skip to content

Instantly share code, notes, and snippets.

View lif-wtag's full-sized avatar
🏠
Working from home

Fazle Rabbi Linkon lif-wtag

🏠
Working from home
  • WellDev
  • Dhaka, Bangladesh
View GitHub Profile
@Catherine-K-George
Catherine-K-George / UILabel+Extensions.swift
Created June 6, 2021 09:49
UILabel extension with ReadMore/ ReadLess action
import UIKit
enum TrailingContent {
case readmore
case readless
var text: String {
switch self {
case .readmore: return "...Read More"
case .readless: return " Read Less"
@wojteklu
wojteklu / clean_code.md
Last active June 20, 2024 21:37
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules