<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tanvi Patel on Medium]]></title>
        <description><![CDATA[Stories by Tanvi Patel on Medium]]></description>
        <link>https://medium.com/@tanusonani123?source=rss-a7fbd6f45d19------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xiSH3G1kyD2jhHPejg0cdQ.jpeg</url>
            <title>Stories by Tanvi Patel on Medium</title>
            <link>https://medium.com/@tanusonani123?source=rss-a7fbd6f45d19------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:10:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tanusonani123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Chapter 1: Introduction to UIKit and the iOS App Structure]]></title>
            <link>https://medium.com/@tanusonani123/chapter-1-introduction-to-uikit-and-the-ios-app-structure-32d193c1c5bd?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/32d193c1c5bd</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 01:20:35 GMT</pubDate>
            <atom:updated>2025-01-10T01:20:35.959Z</atom:updated>
            <content:encoded><![CDATA[<p>This chapter lays the foundation for understanding how iOS apps are built. It introduces the essential framework, UIKit, and outlines the fundamental structure that defines every iOS application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rCmYUO4CchQjetn8" /><figcaption>iOS development uikit tutorial</figcaption></figure><h3>What is UIKit?</h3><h3>Definition</h3><p>UIKit is Apple’s fundamental framework for building user interfaces (UI) on iOS, iPadOS, tvOS, and watchOS. It is the bedrock upon which the visual and interactive elements of your apps are built.</p><h3>Key Responsibilities</h3><ul><li><strong>UI Elements</strong>: Provides classes and protocols for creating UI elements like buttons, labels, text fields, tables, collection views, and more.</li><li><strong>Event Handling</strong>: Manages user interactions, such as taps, swipes, and gestures.</li><li><strong>Screen Management</strong>: Handles transitions between views and manages the overall visual presentation.</li><li><strong>Drawing &amp; Animation</strong>: Offers capabilities for drawing custom graphics and implementing animations.</li><li><strong>Accessibility</strong>: Enables you to make your app usable by people with disabilities.</li><li><strong>Document Handling</strong>: Provides support for displaying and interacting with documents.</li><li><strong>App Lifecycle</strong>: Works in conjunction with the app delegate to manage the application’s lifecycle events.</li></ul><h3>Core Concepts Within UIKit</h3><ul><li><strong>Views (UIView)</strong>: Fundamental building blocks for UI. Every visible element is a view or a subclass of UIView.</li><li><strong>View Controllers (UIViewController)</strong>: Manage a single view or a hierarchy of views and their data. Responsible for how views are presented on-screen and interactions.</li><li><strong>Controls (UIControl)</strong>: Interactive views like buttons, sliders, and switches.</li><li><strong>Layout</strong>: Techniques for arranging views on the screen (Auto Layout, Constraints, Frames).</li><li><strong>Delegation and Data Sources</strong>: Patterns for communicating between objects and providing data to UI elements (e.g., UITableViewDataSource).</li><li><strong>Animations</strong>: Mechanisms to make the UI more dynamic and engaging.</li><li><strong>Gestures</strong>: Handling user interactions such as taps, pans, pinches, and rotations.</li></ul><h3>II. The iOS App Structure</h3><p>Understanding the fundamental components of an iOS app is crucial before diving into coding.</p><h3>Project Organization</h3><ul><li><strong>Xcode Project</strong>: A container for all your source code, resources (images, sounds, etc.), and build settings.</li><li><strong>Folders &amp; Files</strong>:</li><li><strong>Source Files</strong>: .swift, .m, .h (for Swift, Objective-C) files containing your application logic.</li><li><strong>Asset Catalogs (.xcassets)</strong>: Store image and other media resources.</li><li><strong>Storyboard (.storyboard) or XIB (.xib) Files</strong>: Define the visual layout of your app’s user interface.</li><li><strong>Info.plist</strong>: Configuration file for app metadata, permissions, etc.</li><li><strong>Launch Screen Files</strong>: Defines the initial screen shown while your app is launching.</li><li><strong>Frameworks/Packages</strong>: External libraries or tools used by the project.</li><li><strong>Build Settings</strong>: Configure how your project is compiled.</li></ul><h3>Key Components</h3><ul><li><strong>App Delegate (AppDelegate)</strong>: The main entry point for your application. It manages application-level events (launch, termination, backgrounding) and is often an implementation of UIApplicationDelegate.</li><li><strong>Scene Delegate (SceneDelegate)</strong>: Since iOS 13, responsible for managing scenes (windows) in the app. If there is no SceneDelegate, the AppDelegate handles all scenes.</li><li><strong>View Controller (UIViewController)</strong>: Each screen or visual component in your app is usually represented by one or more view controllers.</li><li><strong>Model-View-Controller (MVC)</strong> Architecture:</li><li><strong>Model</strong>: Holds the application data and business logic.</li><li><strong>View</strong>: Presents the data to the user (often a UIView or a UIViewController).</li><li><strong>Controller</strong>: Manages the flow of data between the model and the view.</li></ul><h3>The App Lifecycle</h3><ul><li><strong>Not Running</strong>: The app is not currently running.</li><li><strong>Inactive</strong>: The app is running in the foreground but is not receiving user events.</li><li><strong>Active</strong>: The app is running in the foreground and receiving user events.</li><li><strong>Background</strong>: The app is running in the background.</li><li><strong>Suspended</strong>: The app is running in the background but will not execute any code and may be terminated at the OS’s discretion.</li></ul><h3>III. Proper Ways to Work with UIKit</h3><h3>Adopt MVC Architecture</h3><ul><li>Maintain a clear separation of concerns between models, views, and controllers to make code organized, testable, and maintainable.</li></ul><h3>Use Auto Layout</h3><ul><li>Leverage constraints to build adaptable UIs that work across different screen sizes and orientations. This is the primary and preferred method in iOS development.</li></ul><h3>View Hierarchy Management</h3><ul><li>Organize views in a structured hierarchy. addSubview, removeFromSuperview, and bringSubviewToFront are fundamental methods for manipulating views within the hierarchy.</li></ul><h3>Utilize Storyboards (and XIBs) Effectively</h3><ul><li><strong>Storyboards</strong>: Visually represent your app’s navigation and UI. Use them for less complex UIs as large, heavily populated storyboards can become difficult to manage.</li><li><strong>XIBs</strong>: Useful for specific UI component configurations or reusable custom views.</li></ul><h3>Coding Approach</h3><ul><li><strong>Programmatic UIs</strong>: Offer more control but require more coding.</li><li><strong>Storyboards/XIBs</strong>: Good for quicker prototypes but harder to share/merge in teams.</li><li><strong>Modern Approach</strong>: Combine programmatic UIs and storyboards for a modular design.</li></ul><p><strong>Best Practices</strong>:</p><ul><li>Use proper naming conventions for variables and classes.</li><li>Include comments and documentation for clarity.</li></ul><h3>Delegation and Data Sources</h3><ul><li>Understand and effectively implement these patterns to handle communication between objects and populate UI elements.</li></ul><h3>Animation and Transitions</h3><ul><li>Create smooth and engaging user interfaces using built-in animation APIs like UIView.animate(withDuration:) or UIViewPropertyAnimator.</li></ul><h3>Memory Management</h3><ul><li>Be conscious of memory usage, especially when loading large images or other resources.</li><li>Avoid strong reference cycles to prevent memory leaks.</li></ul><h3>Accessibility</h3><ul><li>Build apps that are usable for people with disabilities by using accessibilityLabel, accessibilityHint, etc.</li></ul><h3>Guard Statements</h3><ul><li>Use guard statements for cleaner code when handling optional values and early exits.</li></ul><h3>Testing</h3><ul><li>Always test functionality and UI in the simulator and on a real device.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32d193c1c5bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ios UIkit Tutorial (View, View controllers)]]></title>
            <link>https://medium.com/@tanusonani123/ios-uikit-tutorial-view-view-controllers-02675eae8903?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/02675eae8903</guid>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[iostoken]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 00:49:52 GMT</pubDate>
            <atom:updated>2025-01-10T00:49:52.741Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to the View</h3><p><em>Note: This article is part of the course</em> <strong>Introduction to iOS using UIKit</strong> <em>I’ve given many times in the past. The course was originally in Spanish, and I decided to release it in English so more people can read it and hopefully it will help them.</em></p><h3>SwiftUI? UIKit?</h3><p>When we develop apps for iOS, we have two base frameworks we can choose from. <strong>SwiftUI</strong> and <strong>UIKit</strong>.<br>Both of them allow us to develop user interfaces (UIs).</p><h3>SwiftUI</h3><p>Released in 2019. It’s a framework for building <strong>declarative user interfaces</strong>. It’s modern and its approach is similar to React, Flutter and Jetpack Compose in other platforms.</p><p><strong>It’s clearly the future of iOS development.</strong></p><p>You might be forced to use UIKit, because of backwards compatibility, or because it’s the framework used in the company you work for. If not, I recommend closing this course and start learning SwiftUI using some the great tutorials in the web, like Paul Hudson’s <a href="https://www.hackingwithswift.com/100/swiftui">100 days of SwiftUI</a>.</p><h3>UIKit</h3><p>UIKit is the framework all iOS user interfaces are based upon. SwiftUI uses many UIKit components under the hood when compiling for iOS, so knowing UIKit is a great knowledge to have, even if you aren’t directly using it in a daily basis.</p><p>Another important thing is that SwiftUI can be extended using UIKit components. And you can embed SwiftUI in UIKit if needed. So both of them are complementary to some extent.</p><p>In this course we’ll focus on UIKit, using MVC as the design pattern for organizing our code.</p><h3>Model — View — Controller</h3><p>Design patterns are solutions for software design problems. If many people experience the same problems over and over again, it makes sense to document the ways that problem can be solved, regardless of the specific language or platform you’re working on.</p><p>Model View Controller (MVC) is the design pattern Apple recommends to use in order to design iOS applications.</p><p>The MVC pattern divides classes in three different groups or layers:</p><p>In the <strong>Model</strong> we have all the classes that are responsible for managing the data for your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*GdvpAe39N-7VRIWK.png" /></figure><p>In the <strong>View</strong> we include all the classes that are responsible for showing the data (or anything needed) to your users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*4NYDPNkeHJOasZRD.png" /></figure><p>So we have a model that holds our data and a view that shows that data to our users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*lQCkZkv-4k9lG2EP.png" /></figure><p>So, the question here becomes: how does the view know the model and what subset of the model data it should be showing to the user?</p><p>As iOS developers, we are developers of user interfaces. The goal of any user interface is to provide a consistent representation of the internal state of a system in a visual way to a user.<br>The internal state is known as a <strong>model</strong>, and can be as simple as plain Swift classes.<br>The visual representation is known as <strong>view</strong> and we’ll develop it using components defined in UIKit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*4A_G80h3hSXiaupC.png" /></figure><p>As user interfaces developers we have two goals:</p><ul><li>First, we must <strong>send the data from the model to the view</strong>. The view must always reflect the current model state.</li><li>Second, we must reflect the user actions in model data changes. We have to modify the data in the model according to what happens in the user interface.</li></ul><p>Both of those actions are done in the <strong>controller</strong>. At least at the beginning, you can assume that every screen is controlled by a controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*QERoUXjE67P4cG_9.png" /></figure><p>Each <strong>view</strong> is a subclass of <strong>UIView</strong>, defined in UIKit.<br>Each <strong>controller</strong> is a subclass of <strong>UIViewController</strong>, defined in UIKit.<br>Each <strong>controller</strong> has a <strong>root view</strong>. That root view can be accessed through the <strong>.view</strong> property in <strong>UIViewController</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02675eae8903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What ia app delegate and what is scene delegate explain in swift IOS]]></title>
            <link>https://medium.com/@tanusonani123/what-ia-app-delegate-and-what-is-scene-delegate-explain-in-swift-ios-680598d07680?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/680598d07680</guid>
            <category><![CDATA[ios-interview-question]]></category>
            <category><![CDATA[scene-delegate]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[app-delegate]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 10:49:05 GMT</pubDate>
            <atom:updated>2024-12-03T10:49:05.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>App Delegate</h3><p>The <strong>AppDelegate</strong> is a class that conforms to the UIApplicationDelegate protocol. It is responsible for managing high-level app lifecycle events that apply to the entire application.</p><h4>Key Responsibilities:</h4><ol><li><strong>Application Launch:</strong> Setting up the app when it is launched.</li><li><strong>Lifecycle Events:</strong> Handling events such as transitioning to the background or foreground.</li><li><strong>Remote Notifications:</strong> Managing push notification registration and handling.</li><li><strong>Core Data Stack:</strong> Often initializes and manages the Core Data stack.</li><li><strong>Global Configuration:</strong> Configuring services like analytics or logging.</li></ol><h3>Example :</h3><p><a href="http://twitter.com/UIApplicationMain">@UIApplicationMain</a><br>class AppDelegate: UIResponder, UIApplicationDelegate {</p><p>func application(<br> _ application: UIApplication,<br> didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?<br> ) -&gt; Bool {<br> // Perform initial setup<br> print(“App launched”)<br> return true<br> }</p><p>func applicationWillResignActive(_ application: UIApplication) {<br> // App is moving from active to inactive state<br> }</p><p>func applicationDidEnterBackground(_ application: UIApplication) {<br> // App entered the background<br> }</p><p>func applicationWillEnterForeground(_ application: UIApplication) {<br> // App is transitioning back to foreground<br> }</p><p>func applicationDidBecomeActive(_ application: UIApplication) {<br> // App became active again<br> }</p><p>func applicationWillTerminate(_ application: UIApplication) {<br> // App is about to terminate<br> }<br>}</p><h3>Scene Delegate</h3><p>The <strong>Scene Delegate</strong> was introduced in iOS 13 as part of a multi-scene architecture. It is responsible for managing individual “scenes” (instances of your app’s UI). This allows for better handling of multitasking on iPad and support for multiple windows in an app.</p><h4>Key Responsibilities:</h4><ol><li><strong>Scene Lifecycle:</strong> Managing the creation, configuration, and destruction of scenes.</li><li><strong>Window Management:</strong> Creating and managing the app’s main window (UIWindow) for each scene.</li><li><strong>State Restoration:</strong> Saving and restoring the state of a specific scene.</li></ol><p>class SceneDelegate: UIResponder, UIWindowSceneDelegate {</p><p>var window: UIWindow?</p><p>func scene(<br> _ scene: UIScene,<br> willConnectTo session: UISceneSession,<br> options connectionOptions: UIScene.ConnectionOptions<br> ) {<br> // Configure and attach the UIWindow to the provided UIWindowScene<br> guard let windowScene = (scene as? UIWindowScene) else { return }<br> let window = UIWindow(windowScene: windowScene)<br> window.rootViewController = ViewController() // Set your initial view controller<br> self.window = window<br> window.makeKeyAndVisible()<br> }</p><p>func sceneDidDisconnect(_ scene: UIScene) {<br> // Scene has been destroyed; clean up resources<br> }</p><p>func sceneDidBecomeActive(_ scene: UIScene) {<br> // Scene moved to active state<br> }</p><p>func sceneWillResignActive(_ scene: UIScene) {<br> // Scene is about to become inactive<br> }</p><p>func sceneWillEnterForeground(_ scene: UIScene) {<br> // Scene is transitioning from background to foreground<br> }</p><p>func sceneDidEnterBackground(_ scene: UIScene) {<br> // Scene moved to background<br> }</p><h3>Example Interaction Between App Delegate and Scene Delegate</h3><ol><li>When the app launches, the <strong>App Delegate</strong> sets up global resources like configuration and services.</li><li>The <strong>Scene Delegate</strong> creates and manages a window for the app’s UI.</li><li>Each scene has its own lifecycle, separate from the app’s overall lifecycle.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=680598d07680" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we will used oops concepts]]></title>
            <link>https://medium.com/@tanusonani123/why-we-will-used-oops-concepts-f881607a95bf?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/f881607a95bf</guid>
            <category><![CDATA[oops-interview-questions]]></category>
            <category><![CDATA[oops-i-did-it-again]]></category>
            <category><![CDATA[oops-in-java]]></category>
            <category><![CDATA[oop]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Mon, 07 Oct 2024 09:52:34 GMT</pubDate>
            <atom:updated>2024-10-07T09:52:34.728Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Encapsulation</h3><ul><li><strong>Definition</strong>: Bundling data (attributes) and methods (functions) that operate on the data into a single unit, or class, while restricting access to some components.</li><li><strong>Benefits</strong>:</li><li>Protects the integrity of the data.</li><li>Simplifies the interface for the user, making the code easier to use and maintain.</li></ul><h3>2. Abstraction</h3><ul><li><strong>Definition</strong>: Hiding complex implementation details and exposing only the necessary features of an object.</li><li><strong>Benefits</strong>:</li><li>Simplifies the interaction with objects.</li><li>Reduces code complexity by focusing on high-level functionalities without getting bogged down by intricate details.</li><li>Improves code maintainability and reduces errors.</li></ul><h3>3. Inheritance</h3><ul><li><strong>Definition</strong>: A mechanism where one class (subclass or derived class) can inherit attributes and methods from another class (superclass or base class).</li><li><strong>Benefits</strong>:</li><li>Promotes code reusability. You can create new classes based on existing ones, avoiding redundancy.</li><li>Facilitates polymorphism, allowing methods to be overridden for more specific behavior in derived classes.</li><li>Creates a natural hierarchy between classes, making code easier to understand.</li></ul><h3>4. Polymorphism</h3><ul><li><strong>Definition</strong>: The ability of different classes to be treated as instances of the same class through a common interface, primarily achieved through method overriding (runtime polymorphism) and method overloading (compile-time polymorphism).</li><li><strong>Benefits</strong>:</li><li>Increases flexibility and scalability in the code.</li><li>Allows for the implementation of dynamic behavior and enables a single interface to represent different underlying forms (data types).</li></ul><h3>5. Modularity</h3><ul><li><strong>Definition</strong>: Organizing code into distinct modules or classes, each responsible for a specific part of the functionality.</li><li><strong>Benefits</strong>:</li><li>Enhances readability and maintainability by breaking down complex systems into smaller, manageable pieces.</li><li>Encourages better collaboration in teams, as different developers can work on different modules simultaneously.</li></ul><h3>6. Reusability</h3><ul><li><strong>Definition</strong>: The ability to use existing code (classes and methods) in new programs.</li><li><strong>Benefits</strong>:</li><li>Saves development time and reduces bugs, as tested and proven code can be reused.</li><li>Facilitates the creation of libraries and frameworks that can be shared across projects.</li></ul><h3>7. Flexibility and Scalability</h3><ul><li><strong>Definition</strong>: OOP principles enable easier modification and extension of existing code.</li><li><strong>Benefits</strong>:</li><li>New features can be added with minimal changes to existing code, making systems easier to upgrade.</li><li>Helps in managing large codebases more effectively.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f881607a95bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the hell is OOP ??!!]]></title>
            <link>https://medium.com/@tanusonani123/what-the-hell-is-oop-ed7c7fcff7fd?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed7c7fcff7fd</guid>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[oops-in-java]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[oops-interview-questions]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Mon, 07 Oct 2024 06:39:09 GMT</pubDate>
            <atom:updated>2024-10-07T06:39:09.730Z</atom:updated>
            <content:encoded><![CDATA[<h3>What the hell is OOP ??!!</h3><p>Object-Oriented Programming (OOP) is a programming paradigm based on the concept of “objects,” which can contain data and code. Data in objects are stored in fields (also known as attributes or properties), and code is in the form of procedures (often known as methods). OOP focuses on using objects to design and build applications. This approach promotes greater flexibility and maintainability in programming by structuring software around objects rather than actions and logic.</p><h3>What is OOP made up of ?!</h3><p>The core building blocks of OOP are:</p><ol><li>Objects: Instances of classes that represent entities with state and behavior.</li><li>Classes: Blueprints for creating objects. They encapsulate data for the object and methods to manipulate that data.</li><li>Methods: Functions defined inside a class that describe the behaviors of the objects.</li><li>Attributes: Variables defined inside a class that hold the data for the objects.</li></ol><h3>Real World Example:</h3><p><strong>1. Objects</strong><br>Analogy: A Specific Car</p><p>Think of a specific car you own, like a red Tesla Model S. This car is an object. It has specific attributes such as its color (red), make (Tesla), and model (Model S). It also has behaviors, like the ability to start, stop, and accelerate.<br>In OOP, an object is a specific instance of a class, containing real values for its properties and the ability to perform actions defined by its methods.</p><p><strong>2. Classes</strong><br>Analogy: Car Blueprint</p><p>Consider the blueprint or template for a car. This blueprint defines the general attributes and behaviors any car should have, like wheels, engine, color, and the ability to drive, stop, and honk.<br>In Oop, a class is like this blueprint. It provides the structure and behavior that objects created from the class will have, but it doesn’t represent any one specific car by itself.</p><p><strong>3. Methods</strong><br>Analogy: Car Functions</p><p>A car has various functions like starting the engine, honking the horn, or accelerating. Each of these functions describes a specific behavior that the car can perform.<br>In Oop, methods are the functions defined within a class that describe the behaviors of the objects. For example, the startEngine() method would define the actions that occur when a car’s engine is started.</p><p><strong>4. Attributes</strong><br>Analogy: Car Specifications</p><p>Each car has specific details or specifications, such as its color, make, model, and engine size. These details are what make each car unique.<br>In Oop, attributes (also known as properties or fields) are the variables that hold data specific to an object. For a car object, attributes could include <strong>color, make, and model.</strong></p><p>Code for better understanding:</p><pre>// Define the Car class<br>public class Car {<br>    // Attributes of the Car class<br>    String color;<br>    String make;<br>    String model;<br>    <br>    // Method to start the car<br>    void start() {<br>        System.out.println(&quot;Car is starting&quot;);<br>    }<br>    <br>    // Method to stop the car<br>    void stop() {<br>        System.out.println(&quot;Car is stopping&quot;);<br>    }<br>    <br>    // Method to accelerate the car<br>    void accelerate() {<br>        System.out.println(&quot;Car is accelerating&quot;);<br>    }<br>}</pre><pre>// Main class to create and interact with Car objects<br>public class Main {<br>    public static void main(String[] args) {<br>        // Creating an object of the Car class<br>        Car myCar = new Car();<br>        myCar.color = &quot;Red&quot;;<br>        myCar.make = &quot;Tesla&quot;;<br>        myCar.model = &quot;Model S&quot;;<br>        <br>        // Using the methods of the Car object<br>        myCar.start();<br>        myCar.accelerate();<br>        myCar.stop();<br>        <br>        // Displaying the details of the Car object<br>        System.out.println(&quot;Car: &quot; + myCar.make + &quot; &quot; + myCar.model + &quot;, Color: &quot; + myCar.color);<br>    }<br>}</pre><p>In this example:</p><ul><li>The class <strong>Car</strong> serves as the <strong>blueprint</strong>.</li><li>The object <strong>myCar</strong> is a specific <strong>instance</strong> of the <strong>Car class</strong>.</li><li>The attributes <strong>color, make, and model</strong> hold the <strong>details</strong> of this specific <strong>car</strong>.</li><li>The methods <strong>start(), stop(), and accelerate()</strong> define the <strong>behaviors</strong> of the <strong>car</strong>.</li></ul><h3>Principles/Pillars of OOP:</h3><p>There are majorly 4 principles on which OOP is based on:</p><ul><li>Encapsulation</li><li>Abstraction</li><li>Inheritance</li><li>Polymorphism</li></ul><p>To be continued in next post….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed7c7fcff7fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Interview Questions & Answers]]></title>
            <link>https://medium.com/@tanusonani123/android-interview-questions-answers-b29bd8960481?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/b29bd8960481</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-interviews]]></category>
            <category><![CDATA[androidinter]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 08:51:43 GMT</pubDate>
            <atom:updated>2024-09-25T08:51:43.084Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/805/0*p7d1dI8eXSlqy_Kb" /></figure><h3>Common</h3><h3>1. OOPS Concept</h3><p>OOPS stands for Object-Oriented Programming, consisting of four key concepts:</p><ul><li>Encapsulation: Wrapping data and methods into a single unit (class).</li><li>Inheritance: One class acquires the properties of another class (extends keyword in Java/Kotlin).</li><li>Polymorphism: Ability to take many forms. Achieved via method overloading and overriding.</li><li>Abstraction: Hiding implementation details and showing only functionality (using abstract classes or interfaces).</li></ul><p>Example:</p><pre>open class Animal {<br>    open fun sound() {<br>        println(&quot;Animal makes a sound&quot;)<br>    }<br>}</pre><pre>class Dog : Animal() {<br>    override fun sound() {<br>        println(&quot;Dog barks&quot;)<br>    }<br>}</pre><h3>2. Multiple Inheritance in Android</h3><p>Java/Kotlin does not support multiple inheritance to avoid ambiguity. However, multiple inheritance is achieved using interfaces.</p><p>Example:</p><pre>interface Movable {<br>    fun move()<br>}</pre><pre>interface Flyable {<br>    fun fly()<br>}</pre><pre>class Bird : Movable, Flyable {<br>    override fun move() {<br>        println(&quot;Bird is moving&quot;)<br>    }</pre><pre>    override fun fly() {<br>        println(&quot;Bird is flying&quot;)<br>    }<br>}</pre><h3>3. What is Abstract Class?</h3><p>An abstract class is a class that cannot be instantiated and may contain abstract methods (methods without a body).</p><p>Example:</p><pre>abstract class Shape {<br>    abstract fun draw()<br>}</pre><pre>class Circle : Shape() {<br>    override fun draw() {<br>        println(&quot;Drawing Circle&quot;)<br>    }<br>}</pre><h3>1. Explain Activity Lifecycle</h3><p>Activity lifecycle includes the following methods:</p><ul><li>onCreate(): Called when the activity is first created.</li><li>onStart(): Called when the activity becomes visible.</li><li>onResume(): Called when the activity starts interacting with the user.</li><li>onPause(): Called when the activity is partially obscured.</li><li>onStop(): Called when the activity is no longer visible.</li><li>onRestart(): Called after the activity is stopped, prior to being started again.</li><li>onDestroy(): Called before the activity is destroyed.</li></ul><p>Example:</p><pre>override fun onCreate(savedInstanceState: Bundle?) {<br>    super.onCreate(savedInstanceState)<br>    // Activity initialization code<br>}</pre><h3>2. Explain Fragment Lifecycle</h3><p>Fragment lifecycle includes:</p><h3>01. onAttach()</h3><p>Called when the fragment is first attached to its parent activity. Use this to obtain a reference to the activity or context.</p><h3>02. onCreate()</h3><p>Called when the fragment is being created. Used to initialize non-UI components like data or saved states.</p><h3>03. onCreateView()</h3><p>Called to inflate the fragment’s layout. It returns the root view of the fragment’s UI.</p><h3>04. onActivityCreated()</h3><p>Called when the host activity’s onCreate() has completed. Useful for final UI setup and interacting with the activity.</p><h3>05. onStart()</h3><p>Called when the fragment is visible to the user. You can set up observers or register components here.</p><h3>06. onResume()</h3><p>Called when the fragment is active and interacting with the user. This is where you handle UI interactions.</p><h3>07. onPause()</h3><p>Called when the fragment is partially obscured. Use it to pause ongoing tasks (e.g., animations, sensors).</p><h3>08. onStop()</h3><p>Called when the fragment is no longer visible. Useful for stopping background processes or saving data.</p><h3>09. onDestroyView()</h3><p>Called when the view hierarchy of the fragment is being destroyed. Clean up view references to avoid memory leaks.</p><h3>10. onDestroy()</h3><p>Called to perform any final cleanup of the fragment’s state, such as releasing resources.</p><h3>11. onDetach()</h3><p>Called when the fragment is detached from the parent activity. Typically used for cleanup related to the activity’s context.</p><p>Example:</p><pre>override fun onCreateView(<br>    inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?<br>): View? {<br>    return inflater.inflate(R.layout.fragment_example, container, false)<br>}</pre><h3>3. What is Context?</h3><p>Context is the handle to system resources, such as databases, preferences, and UI.</p><p>Example:</p><pre>val sharedPreferences = context.getSharedPreferences(&quot;MyPrefs&quot;, Context.MODE_PRIVATE)</pre><h3>4. What are the Building Blocks of Android?</h3><ul><li>Activity</li><li>Service</li><li>Broadcast Receiver</li><li>Content Provider</li></ul><h3>5. Which is the Non-SQL Database in Android?</h3><p>Realm and Firebase Realtime Database are popular NoSQL databases for Android.</p><h3>6. What is ADB?</h3><p>ADB stands for Android Debug Bridge. It is a command-line tool to communicate with Android devices/emulators.</p><h3>7. What is ANR?</h3><p>ANR stands for Application Not Responding. It happens when an application takes too long (over 5 seconds) to respond to user input.</p><h3>8. What is a Singleton?</h3><p>A Singleton is a design pattern where only one instance of a class is created.</p><p>Example:</p><pre>object Singleton {<br>    fun doSomething() {<br>        println(&quot;Singleton instance&quot;)<br>    }<br>}</pre><h3>9. What is AndroidManifest file?</h3><p>It is an XML file that contains essential information about the app, such as permissions, activities, services, etc.</p><h3>10. What is Content Provider in Android?</h3><p>Content providers manage access to shared data like contacts or images, and allow apps to query or modify the data.</p><h3>11. Difference between Service and Thread?</h3><ul><li>Service: A component that runs in the background, performing long-running operations.</li><li>Thread: A low-level component for concurrent execution inside the same process.</li></ul><h3>12. Difference between compileSdkVersion and targetSdkVersion?</h3><ul><li>compileSdkVersion: The Android API level used to compile the app.</li><li>targetSdkVersion: The Android API level the app is designed to run on.</li></ul><h3>13. What is JobScheduler?</h3><p>JobScheduler is an API for scheduling background tasks in Android.</p><h3>14. What is Retained Fragment</h3><p>A retained fragment allows fragment data to be retained across configuration changes.</p><h3>15. Difference between LiveData and MutableLiveData?</h3><ul><li>LiveData: Observable data that cannot be changed externally.</li><li>MutableLiveData: A subclass of LiveData that allows data modification.</li></ul><h3>16. Example when Activity’s onRestart method is called?</h3><p>It is called when the activity comes back to the foreground after being stopped, like when returning from another activity.</p><h3>17. What are the Types of Intent? (with example)</h3><ul><li>Explicit Intent: Used to launch a specific component.</li><li>Implicit Intent: Used to perform general actions like sharing data.</li></ul><p>Example:</p><pre>val intent = Intent(this, SecondActivity::class.java)<br>startActivity(intent) // Explicit intent</pre><h3>18. Types of Service?</h3><ul><li>Foreground Service</li><li>Background Service</li><li>Bound Service</li></ul><h3>19. What is Socket? How to connect with socket?</h3><p>A socket is an endpoint for communication. In Android, use Socket class to create a connection.</p><p>Example:</p><pre>val socket = Socket(&quot;serverAddress&quot;, portNumber)</pre><h3>20. What is Gradle File?</h3><p>Gradle is a build system that manages dependencies, compiles code, and packages the app.</p><h3>21. Difference between ViewBinding and DataBinding?</h3><ul><li>ViewBinding: Easier, faster view reference binding.</li><li>DataBinding: More advanced, allows binding expressions and two-way data binding.</li></ul><h3>22. Difference between commit and apply in SharedPreferences?</h3><ul><li>commit(): Synchronous and returns a boolean value.</li><li>apply(): Asynchronous and does not return a value.</li></ul><h3>23. What are Dangerous Permissions?</h3><p>Permissions that involve sensitive user data like location, contacts, or camera.</p><h3>24. What are Signature Permissions?</h3><p>Permissions granted only if the requesting app is signed with the same certificate as the app defining the permission.</p><h3>25. Types of Sensors Available in Android?</h3><ul><li>Accelerometer</li><li>Gyroscope</li><li>Proximity sensor</li></ul><h3>26. What is Broadcast Receiver?</h3><p>A component that listens for and responds to system-wide broadcast announcements.</p><h3>27. What is Notification Channel? (API levels)</h3><p>From API 26 (Android 8.0), notifications must be assigned to a channel to display.</p><h3>28. Primitive and Non-Primitive Data Types?</h3><ul><li>Primitive: int, float, boolean, etc.</li><li>Non-Primitive: String, Arrays, Classes.</li></ul><h3>29. What is a Higher-Order Function?</h3><p>A function that takes another function as a parameter or returns a function.</p><h3>30. Types of Launch Modes in Android?</h3><ul><li>Standard</li><li>SingleTop</li><li>SingleTask</li><li>SingleInstance</li></ul><h3>31. When ANR occurs and how to prevent it?</h3><p>ANR happens when the main thread is blocked. Prevent it by using background threads for long-running tasks.</p><h3>32. Which Method is Called Only Once in a Fragment Lifecycle?</h3><p>onAttach() and onDetach().</p><h3>33. Difference between Serializable and Parcelable?</h3><ul><li>Serializable: Simpler but slower.</li><li>Parcelable: Android-specific, faster for passing data.</li></ul><h3>34. Difference between Service and IntentService?</h3><ul><li>Service: Runs on the main thread.</li><li>IntentService: Runs on a background thread.</li></ul><h3>35. What is Dependency Injection?</h3><p>A design pattern used to inject dependencies into a class, making it more modular and testable. Popular frameworks: Dagger, Hilt.</p><h3>36. What is AsyncTask?</h3><p>AsyncTask was used for background operations but has been deprecated due to inefficiency in managing background tasks.</p><h3>37. Alternative for AsyncTask?</h3><p>Use Executors, Coroutines, or WorkManager.</p><h3>38. Difference between Support Fragment Manager and Child Fragment Manager?</h3><ul><li>Support Fragment Manager: Manages parent fragments.</li><li>Child Fragment Manager: Manages child fragments inside a parent fragment.</li></ul><h3>39. Types of View Animations?</h3><ul><li>Tween Animation</li><li>Frame Animation</li><li>Property Animation</li></ul><h3>Kotlin</h3><h3>01 : Why choose Kotlin over Java?</h3><p>Kotlin offers several advantages over Java:</p><ul><li>Conciseness: Kotlin reduces boilerplate code significantly.</li><li>Null Safety: Kotlin has built-in null safety, reducing NullPointerException risks.</li><li>Interoperability: Kotlin is 100% interoperable with Java, meaning you can use both in the same project.</li><li>Coroutines: Kotlin supports coroutines for asynchronous programming, which simplifies managing background threads.</li><li>Smart Casts: Kotlin automatically casts variables without requiring explicit checks.</li></ul><p>Example: Null safety in Kotlin:</p><pre>val name: String? = null  // Nullable type<br>val length = name?.length ?: 0  // Uses the Elvis operator to provide a default value</pre><h3>02. What is the difference between val and var keywords?</h3><ul><li>val: Immutable reference, similar to final in Java. Once assigned, its value cannot change.</li><li>var: Mutable reference. Its value can be changed after initialization.</li></ul><p>Example:</p><pre>val name = &quot;Kotlin&quot;  // Immutable<br>var age = 25         // Mutable</pre><h3>03. What are the scoped functions in Kotlin?</h3><p>Kotlin provides several scoped functions to work with objects in concise and readable ways:</p><ul><li>let: Executes a block of code and returns its result.</li><li>run: Executes a block and returns the last expression.</li><li>apply: Modifies the receiver and returns the object itself.</li><li>also: Similar to apply but for additional actions.</li><li>with: A non-extension function used for context object access.</li></ul><p>Example:</p><pre>val result = &quot;Kotlin&quot;.let {<br>    it.uppercase()<br>}<br>println(result) // KOTLIN</pre><h3>04. What is the Companion Object code block?</h3><p>A companion object is used to define members that are tied to the class rather than to instances of the class, similar to static members in Java.</p><p>Example:</p><pre>class MyClass {<br>    companion object {<br>        fun create() = MyClass()<br>    }<br>}</pre><pre>val instance = MyClass.create()</pre><h3>05. What is the Elvis operator?</h3><p>The Elvis operator (?:) is used to provide a default value if the left-hand expression is null.</p><p>Example:</p><pre>val length: Int = name?.length ?: 0</pre><h3>06. What is a nullable type?</h3><p>In Kotlin, you can declare a variable that can hold a null value by appending a ? to its type.</p><p>Example:</p><pre>val name: String? = null</pre><h3>07. What is Coroutine?Coroutines are Kotlin’s way of handling asynchronous programming. They allow execution of long-running tasks without blocking the main thread, ensuring smooth UI interactions.</h3><p>Example:</p><pre>GlobalScope.launch {<br>    delay(1000L)<br>    println(&quot;Coroutine!&quot;)<br>}</pre><h3>08. Difference between async and launch in Coroutine?</h3><ul><li>launch: Launches a coroutine that doesn’t return a result.</li><li>async: Launches a coroutine that returns a Deferred object, which holds a result.</li></ul><p>Example:</p><pre>val result = GlobalScope.async {<br>    delay(1000L)<br>    &quot;Hello&quot;<br>}.await()</pre><pre>GlobalScope.launch {<br>    println(&quot;World&quot;)<br>}</pre><h3>09. Example for filter function usageThe filter function is used to filter elements from a collection based on a predicate.</h3><p>Example:</p><pre>val numbers = listOf(1, 2, 3, 4, 5)<br>val evenNumbers = numbers.filter { it % 2 == 0 }<br>println(evenNumbers)  // Output: [2, 4]</pre><h3>10. What is an Open class?</h3><p>In Kotlin, classes are final by default. To allow a class to be inherited, you must declare it as open.</p><p>Example:</p><pre>open class Parent<br>class Child : Parent()</pre><h3>11. What is a Data Class?</h3><p>A data class in Kotlin is a class primarily used to hold data. It automatically provides equals(), hashCode(), toString(), and copy() methods.</p><p>Example:</p><pre>data class User(val name: String, val age: Int)</pre><h3>12. How to use Lambda function?</h3><p>A lambda function is a function literal, which can be passed as an argument or stored in a variable.</p><p>Example:</p><pre>val sum: (Int, Int) -&gt; Int = { a, b -&gt; a + b }<br>println(sum(2, 3))  // Output: 5</pre><h3>13. What is a Suspend function?</h3><p>A suspend function is a special type of function that can be paused and resumed. It’s used in coroutines for long-running tasks.</p><p>Example:</p><pre>suspend fun fetchData() {<br>    delay(1000L)<br>    println(&quot;Data fetched&quot;)<br>}</pre><h3>14. Available scopes of Coroutine?</h3><ul><li>GlobalScope: A coroutine scope that spans the entire application’s lifecycle.</li><li>CoroutineScope: Allows the creation of a custom scope tied to lifecycle components.</li><li>viewModelScope: Used with ViewModel in Android.</li><li>lifecycleScope: Tied to the lifecycle of an Android component.</li></ul><p>Example:</p><pre>lifecycleScope.launch {<br>    // Coroutine within lifecycle scope<br>}</pre><h3>15. What is a Sealed class?</h3><p>A sealed class is a restricted class hierarchy where all possible subclasses are known at compile time. This makes it useful for handling restricted options like in a state machine.</p><p>Example:</p><pre>sealed class Shape<br>class Circle : Shape()<br>class Rectangle : Shape()</pre><h3>16. How to handle exception in Coroutine?</h3><p>You can handle exceptions in coroutines using try-catch or by using a CoroutineExceptionHandler.</p><p>Example:</p><pre>val exceptionHandler = CoroutineExceptionHandler { _, exception -&gt;<br>    println(&quot;Caught $exception&quot;)<br>}</pre><pre>GlobalScope.launch(exceptionHandler) {<br>    try {<br>        throw Exception(&quot;Error&quot;)<br>    } catch (e: Exception) {<br>        println(&quot;Caught in catch: ${e.message}&quot;)<br>    }<br>}</pre><h3>MVVM</h3><h3>01. What is two-way data binding?</h3><p>Two-way data binding allows changes in the UI to automatically update the underlying data, and vice versa. It ensures that if the data changes, the UI reflects the change, and if the user interacts with the UI (e.g., input in a text field), the underlying data model gets updated.</p><p>Example:</p><pre>&lt;EditText<br>    android:id=&quot;@+id/editText&quot;<br>    android:text=&quot;@={viewModel.userName}&quot; /&gt;</pre><p>In the above, any change in userName in the ViewModel will reflect in the EditText, and any user input in the EditText will update userName in the ViewModel.</p><h3>02. What is the ViewModel?</h3><p>The ViewModel is a component in the MVVM architecture that holds and manages UI-related data. It survives configuration changes (like screen rotations) and interacts with the Model to get data for the View. It ensures the separation of UI logic from business logic.</p><p>Example:</p><pre>class MyViewModel : ViewModel() {<br>    val userName = MutableLiveData&lt;String&gt;()<br>}</pre><h3>03. Difference between MVVM and MVP?</h3><p>The MVVM (Model-View-ViewModel) and MVP (Model-View-Presenter) architectures are both popular design patterns for structuring Android applications, but they have key differences in how they separate concerns and handle communication between components.</p><h3>1. Structure and Responsibilities:</h3><ul><li>MVVM (Model-View-ViewModel):</li><li>MVP (Model-View-Presenter):</li></ul><h3>2. Communication Flow:</h3><ul><li>MVVM:The View binds to properties in the ViewModel using data-binding or observing LiveData.The ViewModel communicates with the Model to retrieve or update data but doesn’t directly update the View. Instead, the View observes the ViewModel for changes.</li><li>MVP:The Presenter communicates with both the View and the Model. The Presenter takes user input from the View and updates the View with changes in the Model. This direct communication between the Presenter and View can lead to tighter coupling.</li></ul><h3>3. Coupling and Testability:</h3><ul><li>MVVM:</li><li>MVP:</li></ul><h3>4. Use of Data Binding:</h3><ul><li>MVVM:</li><li>MVP:</li></ul><h3>04. How to use MVVM?</h3><p>To implement MVVM:</p><ol><li>Model: Define your data source or repository.</li><li>ViewModel: Create ViewModel classes to hold and manage UI data.</li><li>View: Use XML layouts and data binding to connect UI elements to ViewModel properties.</li></ol><p>Example:</p><ol><li>Model: Data class or repository fetching from an API or database.</li><li>ViewModel: LiveData holds data.</li><li>View: XML with data binding or observing LiveData.</li></ol><h3>Jetpack</h3><h3>01. What is the Navigation Component?</h3><p>The Navigation Component in Jetpack is a framework for navigating between fragments or activities, providing a consistent and declarative way to manage app navigation and handle deep links.</p><p>Example: Using a navigation graph:</p><pre>&lt;fragment<br>    android:id=&quot;@+id/firstFragment&quot;<br>    android:name=&quot;com.example.FirstFragment&quot;<br>    tools:layout=&quot;@layout/fragment_first&quot; /&gt;</pre><h3>02. What is the Room database?</h3><p>Room is an abstraction over SQLite in Android that provides an easy way to create, manage, and query databases. It offers compile-time checking of SQL queries and integrates with LiveData and coroutines.</p><p>Example:</p><pre>@Entity<br>data class User(@PrimaryKey val id: Int, val name: String)</pre><pre>@Dao<br>interface UserDao {<br>    @Query(&quot;SELECT * FROM user&quot;)<br>    fun getAllUsers(): LiveData&lt;List&lt;User&gt;&gt;<br>}</pre><pre>@Database(entities = [User::class], version = 1)<br>abstract class AppDatabase : RoomDatabase() {<br>    abstract fun userDao(): UserDao<br>}</pre><h3>03. What are the Jetpack components?</h3><p>Jetpack components are a suite of libraries to help in app development, such as:</p><ul><li>Architecture: ViewModel, LiveData, Room, Data Binding, WorkManager.</li><li>UI: Navigation, MotionLayout, RecyclerView.</li><li>Behavior: CameraX, Notification, Permissions.</li><li>Foundation: AppCompat, Android KTX, etc.</li></ul><h3>04. What is View Binding?</h3><p>View Binding is a feature that generates binding classes for XML layouts, enabling type-safe interactions with UI elements. It replaces findViewById().</p><p>Example:</p><pre>val binding = ActivityMainBinding.inflate(layoutInflater)<br>setContentView(binding.root)<br>binding.textView.text = &quot;Hello, View Binding!&quot;</pre><h3>Design</h3><h3>01. What is the difference between guideline and barrier in ConstraintLayout?</h3><h3>Guideline: A static, invisible line used to align views. Can be horizontal or vertical.</h3><ul><li>Barrier: A dynamic constraint that adjusts based on the size of other views. It pushes other views and adjusts according to the content size.</li></ul><p>Example:</p><ul><li>Use a guideline for aligning views to a specific point.</li><li>Use a barrier when the position depends on the size of another view.</li></ul><h3>02. What is the ems property of TextView?</h3><p>The ems property defines the width of a TextView in terms of the width of a capital “M” in the current text size. It essentially sets a fixed width for the text element.</p><p>Example:</p><pre>&lt;TextView<br>    android:ems=&quot;10&quot;<br>    android:text=&quot;Hello&quot; /&gt;</pre><h3>03. What is chainStyle in ConstraintLayout?</h3><p>chainStyle defines the behavior of views that are part of a chain in ConstraintLayout. There are three styles:</p><ul><li>spread: Views are evenly distributed.</li><li>spread_inside: First and last views are attached to the parent, and the rest are distributed evenly.</li><li>packed: Views are packed together.</li></ul><p>Example:</p><pre>app:layout_constraintHorizontal_chainStyle=&quot;packed&quot;</pre><h3>04. Can we use Material Components in layouts with AppCompat themes?</h3><p>Yes, Material Components can be used with AppCompat themes, but it’s recommended to use Material themes (Theme.MaterialComponents.*) for full compatibility.</p><h3>05. What is Motion Layout?</h3><p>MotionLayout is a subclass of ConstraintLayout that provides animation and transition capabilities. It allows you to define complex animations and layout transitions in XML.</p><p>Example:</p><pre>&lt;MotionScene&gt;<br>    &lt;Transition&gt;<br>        &lt;KeyFrameSet&gt;<br>            &lt;KeyPosition ... /&gt;<br>        &lt;/KeyFrameSet&gt;<br>    &lt;/Transition&gt;<br>&lt;/MotionScene&gt;</pre><h3>#Playstore</h3><h3>01. Difference between Alpha testing, Beta testing, Internal testing?</h3><h3>Alpha Testing: Initial testing phase with limited internal users for identifying critical bugs.</h3><ul><li>Beta Testing: Testing with a wider audience outside the organization to gather feedback before final release.</li><li>Internal Testing: For a small group of testers within the organization for early testing.</li></ul><h3>02. What is App Signing?</h3><p>App Signing is the process of securing your app using a cryptographic key to ensure its authenticity and prevent unauthorized modifications.</p><h3>03. Which information is included in Google Play Store listing?</h3><p>App name, description, icon, screenshots, version details, category, content rating, privacy policy, and more.</p><h3>04. What is Keystore file?</h3><p>A Keystore file is a secure container that holds certificates and private keys used for signing Android apps.</p><h3>05. How to set up In-App Purchase in Playstore?</h3><p>Integrate the Google Play Billing Library into your app.</p><ul><li>Configure products in the Google Play Console.</li><li>Implement purchase flow in the app to handle transactions.</li></ul><h3>#Firebase</h3><h3>01. What is FCM? How to Implement FCM?</h3><p>FCM (Firebase Cloud Messaging): A service that allows you to send notifications and messages to Android, iOS, and web apps.</p><ul><li>Implementation: Add Firebase to your project, configure notifications, and send messages using Firebase Console or server API.</li></ul><h3>02. What is Remote Config?</h3><p>Firebase Remote Config allows you to update your app’s behavior and appearance by changing server-side parameters without releasing a new version.</p><h3>03. Which types of database are provided by Firebase?</h3><p>Firebase Realtime Database: A NoSQL cloud database for real-time data syncing.</p><ul><li>Cloud Firestore: A scalable, flexible NoSQL database for structured data storage.</li></ul><h3>04. Usage of Firebase Analytics?</h3><p>Firebase Analytics tracks user behavior in your app, such as events, user demographics, and in-app purchases, helping you improve user experience.</p><h3>05. What is Dynamic Link? How can we use it?</h3><p>Dynamic Links are smart URLs that work across different platforms. They direct users to specific content inside your app and can survive installation.</p><h3>#Google Map</h3><h3>01. What is Geo-fencing?</h3><p>Geo-fencing creates a virtual boundary around a geographic area, triggering specific actions (e.g., sending notifications) when the user enters or exits.</p><h3>02. Which permissions are required to show current location on Map or to access the location?</h3><ul><li>ACCESS_FINE_LOCATION: For precise GPS-based location.</li><li>ACCESS_COARSE_LOCATION: For approximate location using network data.</li></ul><h3>#Scenarios</h3><h3>Describe a scenario where onPause() and onStop() would not be invoked.</h3><p>When the activity is abruptly terminated by the system (e.g., due to low memory) or by killing the app process directly, onPause() and onStop() may not be called before onDestroy().</p><h3>#VCS</h3><h3>01. CI/CD</h3><p>Continuous Integration/Continuous Deployment: A process of automating code integration, testing, and deployment in software development.</p><h3>02. Commit</h3><p>Saving code changes to a local repository with a message describing the updates.</p><h3>03. Push</h3><p>Uploading committed changes from a local repository to a remote repository.</p><h3>04. Clone</h3><p>Copying a repository from a remote server to your local machine.</p><h3>05. Merge</h3><p>Combining changes from different branches into a single branch.</p><h3>06. Rebase</h3><p>Reapplying commits on top of another base branch, often used to maintain a clean project history.</p><h3>#Project Management Tools</h3><h3>01. Have you used any project management tools?</h3><p>Yes, tools like Jira, Trello, and Asana help manage tasks, track project progress, and collaborate with teams.</p><h3>#Testing</h3><h3>01. What is Unit Testing?</h3><p>Testing individual units or components of code in isolation to ensure they work as expected.</p><h3>02. What is Integration Testing?</h3><p>Testing the integration of different units to ensure they work together correctly.</p><h3>03. What is Espresso Testing?</h3><p>Espresso is an Android testing framework for writing UI tests to simulate user interactions within an app.</p><h3>04. What is UI Automator?</h3><p>UI Automator is a testing framework for interacting with and automating UI across apps and the Android system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b29bd8960481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile Interview Quetions List]]></title>
            <link>https://medium.com/@tanusonani123/agile-interview-quetions-list-84414b8e645e?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/84414b8e645e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[agile-development]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Sat, 21 Sep 2024 04:39:49 GMT</pubDate>
            <atom:updated>2024-09-21T04:39:49.048Z</atom:updated>
            <content:encoded><![CDATA[<p>Agile Fundamentals</p><p>What is Agile methodology?<br>What are the core values and principles of Agile?<br>How does Agile differ from traditional project management approaches?<br>What are the benefits of using Agile in software development?<br>Scrum Framework</p><p>What is Scrum and how does it relate to Agile?<br>What are the three roles in Scrum: Product Owner, Scrum Master, and Development Team?<br>What is a Sprint and how long does it typically last?<br>What is a Daily Scrum and what are its purposes?<br>Agile Estimation and Planning</p><p>What is story pointing and how is it used in Agile estimation?<br>How do you estimate the complexity of a user story?<br>What is a product backlog and how is it prioritized?<br>How do you plan an Agile project and create a release plan?<br>Agile Development and Testing</p><p>What is Test-Driven Development (TDD) and how is it used in Agile?<br>How do you implement Continuous Integration (CI) and Continuous Deployment (CD) in Agile?<br>What is refactoring and how is it used in Agile development?<br>How do you handle defects and bugs in an Agile project?<br>Agile Team and Collaboration</p><p>What is a self-organizing team and how does it work in Agile?<br>How do you facilitate collaboration and communication among team members in Agile?<br>What is a retrospective and how is it used in Agile team improvement?<br>How do you handle conflicts and disagreements within an Agile team?<br>Real-World Scenario-Based Questions</p><p>How would you handle a situation where the product owner is not available to answer questions about the product backlog?<br>What would you do if a team member is not contributing to the team’s velocity?<br>How would you prioritize a list of user stories with conflicting priorities?<br>What would you do if a stakeholder requests a change to the project scope mid-sprint?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84414b8e645e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile Computing Theory]]></title>
            <link>https://medium.com/@tanusonani123/agile-computing-theory-df94db42ffe8?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/df94db42ffe8</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[agile-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[computing]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Sat, 21 Sep 2024 04:34:42 GMT</pubDate>
            <atom:updated>2024-09-21T04:34:42.818Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learn about Agile</h3><p>■ Agile is a real, sustainable, and effective way of solutions to solve problems that generations of software development teams have been struggling with.</p><p>■ Agile provides some of the following solutions:</p><p><strong><em>Agile projects come in on time</em></strong><em>, which is great for teams that have struggled with projects delivered very late and far over budget.</em></p><p><strong><em>Agile projects deliver high-quality software</em></strong><em>, which is a big change for teams that have</em></p><p><em>been bogged down by buggy, inefficient software.</em></p><p><strong><em>Code built by agile teams is well constructed and highly maintainable</em></strong><em>, which should relieve teams accustomed to maintaining convoluted and tangled spaghetti code.</em></p><p><strong><em>Agile teams make their users happy</em></strong><em>, a huge change from software that fails to deliver user value.</em></p><p><em>Developers on an effective agile team find themselves working normal hours and can spend their nights and weekends with their friends and families — possibly for the first time in their careers.</em></p><h3>What is Agile?</h3><p>■ Agile is a set of methods and methodologies that help your team to think more effectively, work more efficiently, and make better decisions.</p><p>■ Agile is a methodology and mindset used in software development and project management that emphasizes iterative development, collaboration, customer feedback, and flexibility.</p><p>■ Agile aims to deliver high-quality products quickly and efficiently, adapting to changing</p><p>requirements and ensuring continuous improvement.</p><p>■ It focuses on delivering small, incremental changes to products or projects frequently, allowing teams to adapt to changing requirements and continuously improve the final output.</p><h3>Agile Framework</h3><p>■ <strong>Scrum</strong>: Focuses on delivering work in fixed-length iterations called sprints, with defined roles (Scrum Master, Product Owner, Development Team) and ceremonies (Sprint Planning, Daily Stand-ups, Sprint Reviews, Retrospectives).</p><p>■ <strong>Kanban</strong>: Emphasizes visualizing the workflow, limiting work in progress (WIP), and improving flow.</p><p>■ <strong>Extreme Programming (XP)</strong>: Prioritizes technical excellence and customer satisfaction with practices like pair programming, test-driven development (TDD), and continuous integration.</p><h3>Agile Values</h3><h4>■ Origin of Agile</h4><p>The Agile values originate from the Agile Manifesto, which <strong>was created in 2001 by a group of 17 software developers </strong>who sought a better way to manage and execute software projects.</p><p>They were looking for an alternative to the heavyweight, document-driven software</p><p>development processes that were prevalent at the time.</p><p>The Agile Manifesto emerged as a response to the shortcomings of traditional project management methods, such as the Waterfall model, which often led to inflexible planning and late project delivery.</p><h4>■ Four Agile Value</h4><p><strong>1.</strong> <strong>Individuals and interactions </strong>over processes and tools</p><p><strong>2.</strong> <strong>Working software </strong>over comprehensive documentation</p><p><strong>3.</strong> <strong>Customer collaboration </strong>over contract negotiation</p><p><strong>4.</strong> <strong>Responding to change </strong>over following a plan</p><p><strong>1.</strong> <strong>Individuals and Interactions Over Processes and Tools</strong></p><p>This value emphasizes the importance of human elements in the development process. It suggests that the success of a project depends more on the people involved and their ability to interact and communicate effectively than on the specific processes and tools used.</p><p>Encourage face-to-face communication, team-building activities, and regular meetings. For example, Daily standup meetings and retrospectives (where everyone talks about how the project or iteration went, and what lessons can be learned).</p><p><strong>Prioritize Communication: </strong>Ensure that team members can communicate easily and openly. Use daily</p><p>stand-up meetings, collaborative workspaces, and direct communication channels.</p><p><strong>Empower Teams</strong>: Give teams the autonomy to make decisions and solve problems. Trust in their expertise and judgment.</p><p><strong>Build Relationships</strong>: Foster strong relationships within the team and with stakeholders. Encourage</p><p>teamwork and a sense of shared responsibility.</p><p><strong>Minimize Bureaucracy</strong>: Reduce unnecessary processes and documentation that can hinder interaction and focus on what truly adds value</p><p>Trust team members to make decisions and solve problems together.</p><p>Simplify processes and use tools that facilities rather than hinder collaboration</p><h3>2. Working Software Over Comprehensive Documentation</h3><p>This value prioritizes delivering functional software that meets user needs over creating extensive documentation. While documentation is useful, it should not impede the delivery of working software.</p><p><strong>Deliver Functional Software</strong>: Focus on creating software that meets user needs and performs well. Prioritize features and functionalities that provide immediate value.</p><p><strong>Maintain Relevant Documentation</strong>: Produce essential documentation, such as user manuals and code comments, that helps users and developers understand and use the software without overloading them with information.</p><p><strong>Iterative Development</strong>: Develop software in small, manageable increments, allowing for frequent testing and feedback.</p><p><strong>Use User Stories</strong>: Capture requirements through user stories that describe features from the user’s perspective, ensuring clarity and alignment with user needs.</p><p>Create just enough documentation to support development and future maintenance, but avoid excessive detail.</p><p>Example: <strong>test-driven development</strong>, in which the programmers build automated unit tests</p><p>before they build the software that it tests.</p><h3>3. Customer Collaboration Over Contract Negotiation</h3><p>This value highlights the importance of continuous collaboration with customers to ensure their needs are met. While contracts are important, they should not restrict the ability to respond to changing requirements and feedback.</p><p><strong>Regular feedback: </strong>Engage with customers regularly through meetings, demos, and</p><p>feedback sessions to gather insights and adjust the product accordingly.</p><p><strong>Flexible contracts: </strong>Use contracts that allow for change and adaptation, focusing on building a partnership rather than strictly adhering to predefined terms.</p><p><strong>Customer involvement: </strong>Involve customers in the development process, ensuring they are part of planning, reviewing, and decision-making activities.</p><p><strong>Transparency: </strong>Maintain open and honest communication with customers about progress, challenges, and changes.</p><h3>4. Responding to Change over Following a Plan</h3><p>This value recognizes that change is inevitable and often beneficial in software development. It advocates for adaptability and responsiveness over rigidly following a set plan.</p><p><strong>Embrace Change</strong>: Be open to changing requirements and new information, viewing them as</p><p>opportunities to improve the product.</p><p><strong>Iterative Planning</strong>: Plan in short cycles, allowing for regular reassessment and adjustment based on feedback and new insights.</p><p><strong>Agile Practices</strong>: Implement Agile practices such as sprints, backlog refinement, and</p><p>continuous integration to support frequent updates and iterations.</p><p><strong>Risk Management</strong>: Identify potential risks early and develop strategies to address them proactively, adjusting plans as needed.</p><p><strong>Waterfall Model</strong></p><p><strong>Agile Practice</strong></p><p>Client input is required only after completing each phase.</p><p>Client input is required throughout the product development.</p><p>Changes cannot be made after the completion of a phase.</p><p>Changes can be made at any stage.</p><p>Coordination is not needed as one team starts the work</p><p>after the finish of another team.</p><p>Coordination among project teams is required to ensure</p><p>correctness.</p><p>It is mainly used for small project development.</p><p>It is really useful in large and complex projects.</p><p>Testing can only be performed when the complete</p><p>product is ready.</p><p>The testing part can be started before the development of</p><p>the entire product.</p><p>It requires a large team.</p><p>A Small team is sufficient for Agile project management.</p><p>The cost of development is high.</p><p>The cost of development is less.</p><p>It takes more time compared to Agile.</p><p>It completes the project in comparatively less time.</p><p>The waterfall Method is a structured software</p><p>development methodology so it is quite rigid.</p><p>The Agile Method is known for its flexibility.</p><p>Hardly any test plan is discussed during a cycle.</p><p>After each sprint/cycle test plan is discussed.</p><p><strong>Individual Goals vs. Team Goals</strong></p><p>Individual Goals:</p><p>Individual goals in an Agile environment are essential for personal development and enhancing the overall effectiveness of the team. These goals should be designed to align with Agile principles, emphasizing collaboration, flexibility, continuous learning, and delivering value.</p><p><strong>1.</strong> <strong>Alignment with Team Goals</strong></p><p>• <strong><em>Support Team Objectives</em></strong><em>: Ensure your goals contribute to the team’s sprint goals and project objectives.</em></p><p>• Example: “Complete three user stories by the end of the sprint to support the team’s delivery goal.”</p><p><strong>2.</strong> <strong>Continuous Learning and Improvement</strong></p><p>• <strong><em>Skill Development</em></strong><em>: Focus on acquiring new skills relevant to the team’s needs.</em></p><p>• Example: “Learn and implement a new testing framework to improve the quality of our software.”</p><p>• <strong><em>Knowledge Sharing</em></strong><em>: Share new knowledge with the team.</em></p><p>• Example: “Conduct a workshop on the new testing framework for the team.”</p><p><strong>3.</strong> <strong>Flexibility and Adaptability</strong></p><p>• <strong><em>Adapt to Change</em></strong><em>: Be ready to adjust your goals based on changing project requirements.</em></p><p>• Example: “Stay updated with the latest project priorities and adapt my tasks accordingly during each sprint.”</p><p><strong>4.</strong> <strong>Delivering Value</strong></p><p>• <strong><em>Customer Focus</em></strong><em>: Aim to understand and meet customer needs.</em></p><p>• Example: “Gather feedback from at least three customers to improve a feature’s usability.“</p><p>• <strong><em>Quality Improvement</em></strong><em>: Focus on improving the quality of deliverables.</em></p><p>• Example: “Reduce the number of bugs reported in my code by 50% over the next two sprints.”</p><p>5. Collaboration and Communication</p><p>• <strong><em>Effective Communication</em></strong><em>: Enhance your communication skills to improve team collaboration.</em></p><p>• Example: “Participate actively in daily stand-ups and provide clear updates on my progress.”</p><p>• <strong><em>Team Engagement</em></strong><em>: Increase your participation in team activities.</em></p><p>• Example: “Lead the next sprint retrospective and facilitate a discussion on improving our sprint planning process.”</p><p>6. Transparency and Accountability</p><p>• <strong><em>Progress Sharing</em></strong><em>: Regularly update the team on your progress and seek feedback.</em></p><p>• Example: “Provide weekly updates on my goals and solicit feedback from the team during our sprint review meetings.”</p><p>• <strong><em>Accountability</em></strong><em>: Take ownership of your tasks and responsibilities.</em></p><p>• Example: “Complete all assigned tasks within the sprint and be accountable for their quality and timely delivery.”</p><p>7. Personal Development</p><p>• <strong><em>Work-Life Balance</em></strong><em>: Maintain a healthy work-life balance to sustain long-term productivity.</em></p><p>• Example: “Ensure that I do not work more than 8 hours a day and take regular breaks to avoid burnout.”</p><p>• <strong><em>Leadership Skills</em></strong><em>: Develop leadership skills by taking on more responsibility.</em></p><p>• Example: “Mentor a junior team member and help them understand our Agile processes.”</p><p>8. Measurable and Achievable Goals</p><p>• <strong><em>SMART Goals</em></strong><em>: Set goals that are Specific, Measurable, Achievable, Relevant, and Time-bound.</em></p><p>• Example: “Complete a course on Agile project management within the next three months and apply at least one new technique learned from the course in our next sprint.”</p><p>Team goals in an Agile environment are designed to enhance collaboration, flexibility, and continuous improvement. These goals are essential for guiding the team’s efforts and ensuring alignment with Agile principles and project objectives. Here are key aspects of setting and achieving team goals in Agile:</p><p><strong>1.</strong> <strong>Delivering Customer Value</strong>: The primary focus of Agile teams is to deliver value to the customer or end-user. Team goals should emphasize understanding customer needs, iterating on feedback, and continuously delivering high-quality products or features.</p><p><strong>2.</strong> <strong>Incremental Progress</strong>: Agile promotes iterative development. Goals should be structured around delivering small,</p><p>incremental improvements and updates. This approach helps manage complexity and ensures regular progress.</p><p><strong>3.</strong> <strong>Collaboration and Teamwork</strong>: Effective collaboration is at the heart of Agile. Team goals should encourage open communication, mutual support, and the leveraging of diverse skills and perspectives. This fosters a cohesive and high-performing team environment.</p><p><strong>4.</strong> <strong>Continuous Improvement</strong>: Agile teams strive for constant enhancement. Goals should include regular</p><p>retrospectives and the implementation of actionable insights to improve processes, tools, and team dynamics.</p><p><strong>5.</strong> <strong>Adaptability and Flexibility</strong>: Agile teams need to respond quickly to changing requirements and priorities. Goals should emphasize the ability to adapt and pivot as needed, ensuring that the team remains responsive and resilient.</p><p><strong>6.</strong> <strong>Sustainable Pace</strong>: Maintaining a sustainable work pace is crucial to avoid burnout and ensure long-term</p><p>productivity. Team goals should prioritize balanced workloads, regular breaks, and a healthy work-life balance.</p><p><strong>7.</strong> <strong>Quality and Technical Excellence</strong>: High standards of quality and technical excellence are vital in Agile. Goals should focus on improving code quality, implementing best practices, and fostering a culture of craftsmanship and innovation.</p><p><strong>8.</strong> <strong>Transparency and Accountability</strong>: Agile promotes visibility into the work being done. Goals should include practices such as regular stand-ups, progress tracking, and clear documentation to ensure transparency and accountability.</p><p><strong>9.</strong> <strong>Empowerment and Ownership</strong>: Agile teams are self-organizing and empowered to make decisions. Goals should encourage team members to take ownership of their tasks, experiment with solutions, and make informed decisions collaboratively.</p><p><strong>10.</strong> <strong>Alignment with Organizational Objectives</strong>: Team goals should align with the broader objectives of the organization. This ensures that the team’s efforts contribute to the strategic goals and vision of the company.</p><h3>Agile Manifesto</h3><p>The Agile Manifesto contains common values and ideas that lead to effective teams.</p><p>q “Individuals and interactions over processes and tools” means the team should focus on the people on the team and how they communicate first, and the tools and practices that they use second.</p><p>“Working software over comprehensive documentation” means that delivering software that does what users need is more important than delivering a specification that describes it.</p><p>Working software means software that delivers value to the company.</p><p>“Customer collaboration over contract negotiation” means treating everyone like they’re on the</p><p>same team.</p><p>Many effective agile teams treat the product owner as a member of the project team to collaborate with, rather than a client or customer to negotiate with.</p><p>“Responding to change over following a plan” means recognizing that plans become inaccurate</p><p>and that it’s more important to deliver the software than it is to work the plan</p><h3>The Elephant Concept</h3><p>The “elephant” concept in Agile, often referred to as “eating the elephant,” is a metaphor that addresses how to tackle large, complex problems by breaking them down into smaller, more manageable parts. This concept aligns well with Agile principles, emphasizing iterative development, incremental progress, and continuous improvement. Here’s how the “elephant” concept can be applied in an Agile context:</p><p><strong>1.</strong> <strong>Breaking Down Large Tasks</strong>: Large tasks or projects (the “elephant”) can be overwhelming and difficult to manage as a whole. By breaking them down into smaller, more manageable tasks (or “bites”), teams can tackle each piece step-by-step.</p><p>• <em>Example: Instead of trying to complete an entire feature in one go, break it down into smaller user stories</em></p><p><em>or tasks that can be completed in a single sprint.</em></p><p><strong>2.</strong> <strong>Small, Incremental Steps</strong>: Agile encourages delivering work in small increments. Each increment adds value and moves the project closer to completion without the need for massive, all-at-once releases.</p><p>• <em>Example: Develop a minimal viable product (MVP) first, then add features and enhancements in subsequent</em></p><p><em>iterations.</em></p><p><strong>3.</strong> <strong>Continuous Improvement</strong>: Iterative cycles (sprints or iterations) allow teams to refine and improve the product continuously. Each iteration is an opportunity to reassess priorities and make adjustments.</p><p>• <em>Example: At the end of each sprint, conduct a retrospective to identify what worked well and what didn’t,</em></p><p><em>then apply those learnings in the next sprint.</em></p><p><strong>4.</strong> <strong>Managing Complexity &amp; Focus on Priorities</strong>: By focusing on the most important parts of the “elephant” first, teams can deliver the highest value items early, which can inform and influence subsequent work.</p><p>• <em>Example: Prioritize user stories or features that deliver the most value to the customer and tackle those first.</em></p><p><strong>5.</strong> <strong>Task Boards and Backlogs</strong>: Agile tools like Kanban boards or product backlogs help visualize the breakdown of work, making it easier to manage and track progress on each piece of the “elephant.”</p><p>• <em>Example: Use a Kanban board to move tasks through different stages (To Do, In Progress, Done), providing a</em></p><p><em>clear visual representation of progress.</em></p><p><strong>6.</strong> <strong>Team Collaboration</strong>: Encourage regular communication and collaboration within the team to ensure everyone is aligned and aware of how their work contributes to the larger goal.</p><p>• <em>Example: Hold daily stand-up meetings to discuss progress, obstacles, and next steps, ensuring everyone is on</em></p><p><em>the same page.</em></p><p><strong>7.</strong> <strong>Adaptability &amp; Embrace Change</strong>: Be prepared to adjust the plan as new information emerges or as priorities shift. Agile’s flexibility allows teams to pivot and adapt rather than being locked into a rigid plan.</p><p>• <em>Example: Use the feedback from sprint reviews to make necessary changes to the upcoming tasks or priorities.</em></p><h3>Where to start with a new methodology</h3><p>When the team initially tried out the new practices and ideas, they didn’t yet understand how those new practices would relate to the ones they were already familiar with. That understanding will come as the team gains experience with the methodology.</p><p>This works because an agile methodology is a complete system that includes a set of practices that are known to interact well together, and which teams have used successfully to become more productive. Adopting a complete set of practices will help give the team a foundation for learning about those interactions.</p><p>adopting an entire methodology is more difficult than picking and choosing practices that fit in with the team’s current way of working. If a team can adopt the methodology all at once, they stand a much better chance of getting the most out of their agile effort.</p><p>In part, this is because, in addition to the practices that are similar to what each person already does, they also adopt practices and ideas that they may not think they need at first.</p><p>To get the greatest benefit of agile in the future, instead of just diving into the practices, it should be first sit down together and have a real discussion about what each of those practices will do for them and their project. But this is a challenge because they don’t know how to start that discussion</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df94db42ffe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top imporatant flutter interview quetioons in breif]]></title>
            <link>https://medium.com/@tanusonani123/top-imporatant-flutter-interview-quetioons-in-breif-a61fb8812469?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/a61fb8812469</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[fluuter]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Tue, 17 Sep 2024 17:17:36 GMT</pubDate>
            <atom:updated>2024-09-17T17:17:36.603Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1) what is flutter</strong></p><p>Flutter is an open-source UI software development toolkit created by Google. It is used to build natively compiled applications for multiple platforms from a single codebase, including mobile (Android and iOS), web, and desktop (Windows, macOS, and Linux).</p><p>Ø <strong>Key features of Flutter:</strong></p><p><strong>1)Single Codebase for Multiple Platforms:</strong> With Flutter, you write one set of code, and it can be deployed on different platforms, which saves time and effort compared to writing separate code for Android, iOS, web, and desktop.</p><p><strong>2)Dart Programming Language:</strong> Flutter uses the Dart language, also developed by Google, which is optimized for fast apps on any platform.</p><p><strong>3)Hot Reload</strong>: One of Flutter’s most praised features is hot reload, which allows developers to instantly see changes made in the code without restarting the app. This significantly speeds up the development process.</p><p><strong>4)Customizable Widgets:</strong> Flutter provides a rich set of pre-designed widgets that can be customized to create responsive and beautiful UIs. It gives developers complete control over every pixel of the app interface, allowing for smooth and consistent experiences across platforms.</p><p><strong>5)High Performance:</strong> Since Flutter compiles to native ARM code and does not use web views or JavaScript bridges, it offers high performance and fast app execution, almost like a fully native app.</p><p><strong>6)Growing Ecosystem:</strong> Flutter has a vibrant community and growing ecosystem with various plugins and packages that developers can use to add functionalities without writing extra code from scratch.</p><p><strong>Q-2) intoduction of flutter</strong></p><p>Flutter is an open-source UI software development toolkit created by Google, designed for building natively compiled applications for mobile, web, and desktop from a single codebase. First released in 2017, Flutter has quickly gained popularity due to its ability to create visually attractive, high-performance apps with minimal development time.</p><p><strong>Q-3)what is function ? describe types of function</strong></p><p>There are four main types of user define functions (based on arguments and return type).</p><p>&gt; Function with no arguments and no return type</p><p>&gt; Function with arguments and no return type</p><p>&gt; Function with no arguments and return type</p><p>&gt; Function with arguments and with return type</p><p><strong><em>Function with no arguments and no return type</em></strong></p><h4>Syntax</h4><pre>void function_name(){</pre><pre>// Statements</pre><pre>}</pre><h4>Sample Program</h4><pre>void SayMyName(){</pre><pre>print(&quot;Jay Tillu&quot;);</pre><pre>}</pre><pre>main(){</pre><pre>SayMyName();</pre><pre>}</pre><pre>Output</pre><pre>Jay Tillu</pre><h3>Function with no arguments and return type</h3><p>In this category, the function has no arguments but rather it has a return type.</p><h4>Syntax</h4><pre>return_type function_name() {</pre><pre>// Statements</pre><pre>return value;</pre><pre>}</pre><h4>Sample Program</h4><pre>int ShowMyAge(){</pre><pre>int age = 20;</pre><pre>return age;</pre><pre>}</pre><pre>main(){</pre><pre>int myAge = ShowMyAge();</pre><pre>print(myAge);</pre><pre>}</pre><pre>Output</pre><pre>20</pre><h3>Function with arguments and no return type</h3><p>· Here our function has arguments but it does not have any return type.</p><p>· When there are arguments in a function, we have to specify each argument’s value when we call the function. Otherwise, it will give you a runtime error. So be careful about that.</p><h4>Syntax</h4><pre>function_name(args1, args2, ...argsN){</pre><pre>// Statements</pre><pre>}</pre><h4>Sample Program</h4><pre>AboutMySelf(int age, int totalGf) {</pre><pre>print(age);</pre><pre>print(totalGf);</pre><pre>}</pre><pre>main() {</pre><pre>AboutMySelf(20, 0);</pre><pre>}</pre><pre>Output</pre><pre>200</pre><h3>Function with arguments and with return type</h3><h3>Syntax</h3><pre>return_type function_name(args1, args2, ...argsN) {</pre><pre>//statements</pre><pre>return value;</pre><pre>}</pre><h4>Sample Program</h4><pre>int Sum(int numberOne, int numberTwo) {</pre><pre>int addition = numberOne + numberTwo;</pre><pre>return addition;</pre><pre>}</pre><pre>main() {</pre><pre>int mySum = Sum(20, 30);</pre><pre>print(mySum);</pre><pre>}</pre><pre>Output</pre><pre>Sum is 50</pre><p><strong>Q-4) what is variable and types of variable</strong></p><p>Variables in the Dart language are named memory areas used for storing data. They allow us to store, modify, and retrieve values of various data types, such as numbers, strings, boolean values, and much more. Variables enable us to work with data and pass it between different parts of a program.</p><p>int age = 25;</p><p>In this example, we have created a variable named “age” and assigned it a value of 25. The variable type is specified as “int,” which stands for an integer.</p><p>String name = ‘John’;</p><p>Here, we have created a variable named “name” and assigned it a value of “John”. The variable type is specified as “String,” which signifies a text string.</p><p>bool isStudent = true;</p><p>In this case, the variable “isStudent” has a value of true, indicating that the person is a student. The variable type is bool, which is a boolean data type.</p><p>double salary = 1500.50;</p><p>This variable “salary” contains a floating-point value.</p><p>In addition to declaring variables with explicit data types (as in the examples above), Dart also allows the use of the “var” type, which enables the compiler to automatically determine the variable’s type based on the assigned value. For example:</p><p>var temperature = 25.5;</p><p>In this case, the variable type of “temperature” will be automatically determined as double.</p><p>By using the variable name, we can access the data it refers to. Example:</p><p>void main() { <br> int age = 25;<br> String name = ‘John’;<br> bool isStudent = true;<br> double salary = 1500.50;<br> var temperature = 25.5;<br> <br> print(age);<br> print(name);<br> print(isStudent);<br> print(salary);<br> print(temperature);<br> }</p><p><strong>Q-5 what is the main () functions of dart</strong></p><h3>In Flutter, the main function is the entry point of your application. When you run a Flutter app, the main function is the first code that gets executed.</h3><p>The main function in Flutter is responsible for initializing the app and starting the app’s execution. It typically looks like this:</p><pre>void main() =&gt; runApp(MyApp());</pre><p>Here, the main function is calling the runApp function with an instance of the MyApp class. The MyApp class is a custom widget that defines the layout and behavior of the app.</p><p>To build the first screen of your app, you will typically create a new class that extends the StatelessWidget or StatefulWidget class. This class will define the layout and behavior of the screen.</p><p>For example, here is how you might create a simple screen with a text widget:</p><pre>class MyFirstScreen extends StatelessWidget {</pre><pre>  @override</pre><pre>  Widget build(BuildContext context) {</pre><pre>    return Scaffold(</pre><pre>      appBar: AppBar(</pre><pre>        title: Text(&#39;My First Screen&#39;),</pre><pre>      ),</pre><pre>      body: Center(</pre><pre>        child: Text(&#39;Hello, world!&#39;),</pre><pre>      ),</pre><pre>    );</pre><pre>  }</pre><pre>}</pre><p>In this example, the MyFirstScreen class extends the StatelessWidget class, which means that it is a static widget that cannot change over time. The build method returns a Scaffold widget, which provides a basic app layout with an app bar and a body. The body contains a Center widget, which centers the Text widget that displays the &quot;Hello, world!&quot; message.</p><p>To show this screen when the app starts, you can modify the runApp function in the main function to use the MyFirstScreen widget as the home screen:</p><pre>void main() =&gt; runApp(MaterialApp(</pre><pre>  home: MyFirstScreen(),</pre><pre>));</pre><p>Here, the runApp function is calling the MaterialApp widget with the MyFirstScreen widget as the home property. This tells Flutter to show MyFirstScreen as the first screen of the app.</p><p>Output</p><p><strong>Q-6 write down the installation steps in flutter</strong></p><h4>1. Download Flutter SDK</h4><ul><li>Visit the official Flutter website: Flutter SDK</li><li>Choose your operating system (Windows, macOS, or Linux).</li><li>Download the Flutter SDK (a zip file).</li></ul><h4>2. Extract the Flutter SDK</h4><ul><li>After downloading, extract the zip file into a desired location on your system (e.g., C:\src\flutter on Windows or /Users/&lt;your-username&gt;/flutter on macOS/Linux).</li></ul><h4>3. Update Environment Variables</h4><p>To access the flutter command globally in your terminal, you need to update your environment variables.</p><p>For Windows<strong>:</strong></p><ul><li>Go to <strong>Control Panel &gt; System and Security &gt; System</strong>.</li><li>Click <strong>Advanced system settings</strong> and then <strong>Environment Variables</strong>.</li><li>Under “User variables” or “System variables,” locate the Path variable and add a new entry that points to the bin directory inside your Flutter SDK folder (e.g., C:\src\flutter\bin).</li></ul><h4>4. Install Development Tools</h4><ul><li><strong>Android Studio</strong>:</li><li>Install <strong>Android Studio</strong> (required for Android development).</li><li>Open Android Studio, go to <strong>Configure &gt; SDK Manager</strong>, and ensure that the <strong>Android SDK</strong>, <strong>SDK Platform</strong>, and <strong>Android Emulator</strong> are installed.</li><li>Also, install the <strong>Flutter</strong> and <strong>Dart</strong> plugins within Android Studio.</li></ul><h4>5. Run flutter doctor</h4><ul><li>Open a terminal and run the following command to check if all required tools are installed correctly:</li></ul><pre>flutter doctor</pre><ul><li>This command checks your environment and displays information on what is required to complete the installation (e.g., missing Android SDK or Xcode installation).</li><li>Follow any instructions that flutter doctor gives to fix any issues.</li></ul><h4>6. Configure Android Device (For Android Development)</h4><ul><li>Enable <strong>Developer Mode</strong> and <strong>USB Debugging</strong> on your Android device.</li><li>Connect your device to your computer using a USB cable.</li><li>Run flutter devices to ensure your device is recognized.</li></ul><h4>8. Create a Flutter Project</h4><p>Once Flutter is installed, you can create a new Flutter project using the following command in the terminal:</p><pre>flutter create my_project</pre><p>Navigate to the project directory and run the app:</p><p>cd my_project</p><pre>flutter run</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a61fb8812469" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning and its types]]></title>
            <link>https://medium.com/@tanusonani123/machine-learning-and-its-types-555796351031?source=rss-a7fbd6f45d19------2</link>
            <guid isPermaLink="false">https://medium.com/p/555796351031</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[types-of-machine-learning]]></category>
            <dc:creator><![CDATA[Tanvi Patel]]></dc:creator>
            <pubDate>Mon, 16 Sep 2024 13:48:20 GMT</pubDate>
            <atom:updated>2024-09-16T13:48:20.192Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Why do Machine Learning?</strong></p><ul><li>Understand and improve efficiency of human learning<br> Eg: Using methods for teaching and tutoring people, as done in CAI — Computer-aided instruction</li><li>Discover new things or structure that is unknown to humans<br> Example: Data mining</li></ul><p><strong>Machine Learning:</strong></p><p><strong>Definition:</strong></p><p>Computational methods using experience to improve performance</p><p>E.g., to make accurate predictions</p><p>Experience: data-driven task, statistics, probability.</p><p>Example: use height and weight to predict gender.</p><p>Computer science: need to design efficient and accurate algorithms, analysis of complexity, theoretical guarantees.</p><p><strong>Machine Learning:</strong></p><p>Study of algorithms that</p><p>• improve their performance P</p><p>• at some task T</p><p>• with experience E</p><p>well-defined learning task: &lt;P,T,E&gt;</p><p><strong>Types of Machine Learning:</strong></p><p><strong>Supervised learning — </strong>labeled training data.</p><ul><li>Supervised learning deals with learning a function from available training data.</li><li>A supervised learning algorithm analyzes the training data and produces a function, which can be used for mapping new examples</li><li>In <em>supervised learning</em>, we define the possible outcomes.</li><li>Example: A day can be — hot, cold, or moderate.</li><li>Since we defined the options are — hot, cold, and moderate</li><li>The algorithm will spit out predictions within that framework.</li><li>In Supervised learning: We provide the algorithm with X and Y, and try to figure out the relationships between the two</li></ul><p><strong>Examples:</strong></p><ul><li>Classifying e-mails as spam,</li><li>Labeling webpages based on their content, and</li><li>Voice recognition.</li></ul><p><strong>Unsupervised learning — </strong>no labeled data .</p><ul><li>Unsupervised learning makes sense of unlabeled data without having any predefined dataset for its training.</li><li>Unsupervised learning is an extremely powerful tool for analyzing available data and look for patterns and trends.</li><li>The data we have and <em>tries to figure out itself</em> what the different potential groupings</li><li>An unsupervised learning algorithm might find that the groups with the most distinct features are days that are very hot, moderate, and cloudy.</li><li>Instead of deciding the groups of outcomes in advance and trying to map relationships to them, we let the algorithm find the ones it feels are the most natural.</li><li>In unsupervised learning: there is no Y — we’re just trying to understand the underlying organization of the data in of itself.</li><li>Let the computer learn how to do something, and use this to determine structure and patterns in data</li></ul><p><strong>Examples:</strong></p><ul><li>k-means</li><li>self-organizing maps, and</li><li>hierarchical clustering</li></ul><p><strong>Reinforcement learning [Machine learns to act on its own to achieve the goal]</strong></p><ul><li>Finds a sequence of actions (policy) that reaches a goal.</li><li>No supervised output but delayed reward.</li><li>Eg: playing chess or a computer game, robot in a maze.</li><li>Machine learning works with large amounts of data. It is useful for small amounts of data too.</li></ul><p>Deep learning works <strong>efficiently</strong> if the amount of data increases rapidly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=555796351031" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>