Practical Code Smells - Sample 1Take a look a this code, share in comments what are your thoughts/notes about it? struct Bottles { func song() -> String { verses(from: 99, downTo: 0) } func verses(from high: Int, downTo low: Int) -> String { (low...high...Dec 19, 2023 · 3 min readshendy.hashnode.dev
Thoughts on MVC PatternLife started with MVC long time ago. It was clear how to separates responsibility between different components. So the View component is just to communicate with the user and display data, then the Model component will be the data required by certain...Feb 28, 2022 · 1 min readshendy.hashnode.dev
Hilt, The DI Library For Android – PART 2: Basic ConceptsAbout The Series This article is part of the following series: PART 1: Getting To KnowHere I talk little about Hilt, just how to setup Hilt for simple project and inject simple dependency into MainActivity. PART 2: Basic Concepts (This Article)Here...Sep 10, 2020 · 11 min readshendy.hashnode.dev
Hilt, The DI Library For Android – PART 1: Getting To KnowAbout The Series This article is part of the following series: PART 1: Getting To Know (This Article)Here I talk little about Hilt, just how to setup Hilt for simple project and inject simple dependency into MainActivity. PART 2: Basic ConceptsHere...Sep 1, 2020 · 6 min readshendy.hashnode.dev
Arrays.asList(array) Won't Not Give You ArrayList, Here is Why?Whenever you have a primitive array and you would like to convert it to List (collection-based array). You might do this using asList() method of Arrays class of Collections framework. But this doesn't result to ArrayList, instead to an implementati...Jul 17, 2020 · 2 min readshendy.hashnode.dev