# mvc

MVC (Model-View-Controller) is a software architectural pattern that separates an application into models, views, and controllers.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Thymeleaf, Spring MVC and htmx for Native Java Backends

DevFeed: [Thymeleaf, Spring MVC and htmx for Native Java Backends](<https://devfeed.tech/articles/thymeleaf-spring-mvc-and-htmx-for-native-java-backends-89413.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/compile-html-before-deployment/>)

Author: Shai Almog

Published: 2026-10-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Spring MVC](<https://devfeed.tech/topics/spring-mvc.md>), [htmx](<https://devfeed.tech/topics/htmx.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Java](<https://devfeed.tech/topics/java.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [backends](<https://devfeed.tech/tags/backends.md>), [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [csrf](<https://devfeed.tech/tags/csrf.md>), [form](<https://devfeed.tech/tags/form.md>), [fragments](<https://devfeed.tech/tags/fragments.md>), [htmx](<https://devfeed.tech/tags/htmx.md>), [java](<https://devfeed.tech/tags/java.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [pages](<https://devfeed.tech/tags/pages.md>), [spring](<https://devfeed.tech/tags/spring.md>), [spring-mvc](<https://devfeed.tech/tags/spring-mvc.md>)

### AI overview

The article explains a Java backend approach that compiles a supported subset of Thymeleaf-style templates into renderers for native code, alongside Spring MVC-style controllers and htmx fragments. It describes typed model access, build-time errors for mismatched properties, form handling, and CSRF considerations, while noting limitations such as no runtime template editing or arbitrary method calls.

### Source excerpt

Use Thymeleaf-style templates, Spring MVC-style controllers and htmx with statically compiled rendering code. Serve pages and fragments from a native Java backend.

## Exploring the MVC Pattern in Python

DevFeed: [Exploring the MVC Pattern in Python](<https://devfeed.tech/articles/exploring-the-mvc-pattern-in-python-65389.md>)

Original publisher: [Read original article](<https://realpython.com/courses/exploring-mvc-pattern-python/>)

Author: Real Python

Published: 2026-10-06T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [mvc](<https://devfeed.tech/topics/mvc.md>), [Python](<https://devfeed.tech/topics/python.md>), [Spring MVC](<https://devfeed.tech/topics/spring-mvc.md>)

Tags: [flask](<https://devfeed.tech/tags/flask.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This video course explains the Model-View-Controller pattern in Python web applications and guides learners through building a small Flask app with models, views, and controllers.

### Source excerpt

Learn how the Model-View-Controller pattern organizes Python web apps, then build a small Flask app using models, views, and controllers.

## Quiz: Exploring the MVC Pattern in Python

DevFeed: [Quiz: Exploring the MVC Pattern in Python](<https://devfeed.tech/articles/quiz-exploring-the-mvc-pattern-in-python-65390.md>)

Original publisher: [Read original article](<https://realpython.com/quizzes/exploring-mvc-pattern-python/>)

Author: Real Python

Published: 2026-10-06T12:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [mvc](<https://devfeed.tech/topics/mvc.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [5-questions](<https://devfeed.tech/tags/5-questions.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [flask](<https://devfeed.tech/tags/flask.md>), [models](<https://devfeed.tech/tags/models.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [python](<https://devfeed.tech/tags/python.md>), [templates](<https://devfeed.tech/tags/templates.md>), [view](<https://devfeed.tech/tags/view.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

An interactive five-question quiz reviews the Model-View-Controller pattern in Python, using a small Flask app to explain how models, views, controllers, routes, and templates work together.

### Source excerpt

Test your understanding of the Model-View-Controller pattern and how models, views, and controllers work together in a small Flask app.

## Android Architecture Patterns: A Comprehensive Pre-Interview Guide

DevFeed: [Android Architecture Patterns: A Comprehensive Pre-Interview Guide](<https://devfeed.tech/articles/android-architecture-patterns-a-comprehensive-pre-interview-guide-25146.md>)

Original publisher: [Read original article](<https://blog.droidchef.dev/android-architecture-patterns-a-comprehensive-pre-interview-guide/>)

Author: Ishan Khanna

Published: 2025-03-18T20:01:26Z

Content type: article

Language: en

Sources: [Ishan Khanna](<https://devfeed.tech/sources/ishan-khanna.md>)

Topics: [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Android](<https://devfeed.tech/topics/android.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-architecture](<https://devfeed.tech/tags/android-architecture.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [comparisons](<https://devfeed.tech/tags/comparisons.md>), [compose](<https://devfeed.tech/tags/compose.md>), [guide](<https://devfeed.tech/tags/guide.md>), [interview](<https://devfeed.tech/tags/interview.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [mvi](<https://devfeed.tech/tags/mvi.md>), [mvp](<https://devfeed.tech/tags/mvp.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [patterns](<https://devfeed.tech/tags/patterns.md>)

### AI overview

The guide is presented as an interview refresher on Android architecture, emphasizing how patterns help manage complexity, support testing and collaboration, and make trade-offs visible. In its excerpt, MVC assigns data and business logic to the Model, UI to the View, and mediation to a Controller often embedded in Activities or Fragments. The guide says this commonly leads to oversized Android components, tangled UI and business logic, and difficult unit testing. MVP is described as a response: moving UI logic into a Presenter creates clearer responsibilities and a more testable unit outside Android components. The excerpt ends before explaining MVP further or covering other patterns.

### Source excerpt

Looking to brush up on Android architecture patterns before your next mobile interview? This guide covers everything from traditional MVC to modern Jetpack Compose implementations, with code examples and comparisons of MVC, MVP, MVVM, and MVI patterns.

## Building a framework

DevFeed: [Building a framework](<https://devfeed.tech/articles/building-a-framework-44099.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/building-a-framework>)

Author: Brent

Published: 2024-09-13T00:00:00Z

Content type: article

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [Framework](<https://devfeed.tech/topics/framework.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>), [PHP](<https://devfeed.tech/topics/php.md>), [CodeIgniter](<https://devfeed.tech/topics/codeigniter.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Livewire](<https://devfeed.tech/topics/livewire.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [framework](<https://devfeed.tech/tags/framework.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [programming](<https://devfeed.tech/tags/programming.md>)

### AI overview

A personal account of pursuing the goal of building a software framework, beginning with an early interest in frameworks and continuing through WordPress work, agency experience, and open-source projects at Spatie. The author reflects on CodeIgniter, Laravel, PHP, and MVC frameworks.

### Source excerpt

Read the full post on https://stitcher.io/blog/building-a-framework

## Replace Useless Cases with Interfaces

DevFeed: [Replace Useless Cases with Interfaces](<https://devfeed.tech/articles/replace-useless-cases-with-interfaces-25097.md>)

Original publisher: [Read original article](<https://dladukedev.com/articles/042_avoid_useless_cases_part_2/>)

Published: 2024-08-15T00:00:00Z

Content type: article

Language: en

Sources: [Donovan LaDuke - Developer](<https://devfeed.tech/sources/donovan-laduke-developer.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [class](<https://devfeed.tech/tags/class.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [function](<https://devfeed.tech/tags/function.md>), [implement](<https://devfeed.tech/tags/implement.md>), [interface](<https://devfeed.tech/tags/interface.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>)

### AI overview

The article presents an alternative to dedicated pass-through use-case classes: define use-case interfaces and implement them directly in the repository. This preserves architectural benefits while reducing unnecessary code. It also discusses using invoke-operator extensions and the resulting trade-off of exposing an additional function.

### Source excerpt

An alternative approach to avoiding Useless Cases by making Use Case interfaces without dedicated Use Case classes

## Insider newsletter digest: Cook up a controller with GitHub Copilot

DevFeed: [Insider newsletter digest: Cook up a controller with GitHub Copilot](<https://devfeed.tech/articles/insider-newsletter-digest-cook-up-a-controller-with-github-copilot-67764.md>)

Original publisher: [Read original article](<https://github.blog/developer-skills/application-development/insider-newsletter-digest-cook-up-a-controller-with-github-copilot/>)

Author: Sara Verdi

Published: 2024-02-22T16:00:06Z

Content type: tutorial

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [ai-pair-programming](<https://devfeed.tech/tags/ai-pair-programming.md>), [application-development](<https://devfeed.tech/tags/application-development.md>), [developer-skills](<https://devfeed.tech/tags/developer-skills.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [insider](<https://devfeed.tech/tags/insider.md>), [node](<https://devfeed.tech/tags/node.md>)

### AI overview

This tutorial outlines how to use GitHub Copilot to build a controller function in a Node.js application, from setting up a project and defining requirements to handling errors and reviewing the code. It also describes a developer advocate's GPT-3 recipe nutrition application as an example.

### Source excerpt

Whether you're coding up a storm or cooking up code, building a controller function with AI is your secret sauce to a flavorful app.

## Simplifying State Management with Compose

DevFeed: [Simplifying State Management with Compose](<https://devfeed.tech/articles/simplifying-state-management-with-compose-20043.md>)

Original publisher: [Read original article](<https://technology.doximity.com/articles/simplifying-state-management-with-compose>)

Author: Doximity

Published: 2023-07-05T19:45:00Z

Content type: article

Language: en

Sources: [Doximity](<https://devfeed.tech/sources/doximity.md>)

Topics: [state-management](<https://devfeed.tech/topics/state-management.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [UI/UX Design](<https://devfeed.tech/topics/ui-ux-design.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [clean-architecture](<https://devfeed.tech/tags/clean-architecture.md>), [compose](<https://devfeed.tech/tags/compose.md>), [compose-ui](<https://devfeed.tech/tags/compose-ui.md>), [development](<https://devfeed.tech/tags/development.md>), [development-process](<https://devfeed.tech/tags/development-process.md>), [error](<https://devfeed.tech/tags/error.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [flexible](<https://devfeed.tech/tags/flexible.md>), [framework](<https://devfeed.tech/tags/framework.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [inspiration](<https://devfeed.tech/tags/inspiration.md>), [interface](<https://devfeed.tech/tags/interface.md>), [interoperability](<https://devfeed.tech/tags/interoperability.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [state](<https://devfeed.tech/tags/state.md>), [state-management](<https://devfeed.tech/tags/state-management.md>)

### AI overview

Doximity's Amion 6.0.0 team experimented with using the Compose Runtime to manage screen state in place of ViewModels, aiming to improve the UI and presentation logic while fitting its existing architecture. The excerpt describes a clean-architecture split between UI components and presentation logic that produces screen state. Producing a screen state involves evaluating data, user inputs, and app or device conditions, including permissions and connectivity; the state stays the same until an underlying input changes. The team chose a flexible pattern with smoother interoperability over Circuit, which they viewed as requiring significant framework buy-in. This is part one of a two-part article; the supplied excerpt ends as it begins explaining Compose Runtime's role, so it does not show the implementation or results in detail.

### Source excerpt

The recent release of Doximity's refreshed physician scheduling tool Amion involved a significant overhaul of the user interface (UI) layer using Jetpack Compose. As part of the development process, we decided to experiment with shifting from ViewModels to utilizing the Compose Runtime for managing screen state. This article explores the motivations behind this approach and demonstrates an overall improvement to the view layer and presentation logic using the patterns developed in Amion 6.0.0. Note: This is part one of a two-part article. In part two, we will build a note-taking app using the foundations covered here. Understanding the Presentation Layer The Android team at Doximity builds apps following the basic principles of clean architecture, which involves separating the app into layers, each with their own responsibilities. In our app, we have a view layer, responsible for rendering UI components (Compose UI, XML views, etc.), and a presentation logic layer, responsible for producing screen state. Every navigable point in the app corresponds to one or more UI components and is associated with one or more screen state producers. Inspiration and Initial Experiments The decision to leverage Compose for managing state was inspired by (at the risk of sounding like r/mAndroidDev) Jake Wharton's article The State of Managing State (with Compose). While the release of Circuit occurred midway through our development, it was deemed more of a framework that required significant buy-in, whereas we aimed to build a flexible pattern with smoother interoperability with our existing architecture, that at the time mostly utilized ViewModel with XML and Compose UI. When we think about the presentation layer in Android as developers, we have to think about: What is the state of the screen? That is, not just when the user first sees it, but what does it look like when it's loading, what happens when there is an error, how will the state of components of the screen interact, and

## Graphical Applications in Haskell with MVC and Gloss

DevFeed: [Graphical Applications in Haskell with MVC and Gloss](<https://devfeed.tech/articles/graphical-applications-in-haskell-with-mvc-and-gloss-27925.md>)

Original publisher: [Read original article](<http://alt-romes.github.io/posts/lectures/2022-06-27-mvc-gloss.html>)

Published: 2022-06-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Romes' Musings](<https://devfeed.tech/sources/romes-musings.md>)

Topics: [mvc](<https://devfeed.tech/topics/mvc.md>), [GUI](<https://devfeed.tech/topics/gui.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Haskell](<https://devfeed.tech/topics/haskell.md>)

Tags: [controller](<https://devfeed.tech/tags/controller.md>), [event](<https://devfeed.tech/tags/event.md>), [events](<https://devfeed.tech/tags/events.md>), [fp](<https://devfeed.tech/tags/fp.md>), [function](<https://devfeed.tech/tags/function.md>), [functional-programming](<https://devfeed.tech/tags/functional-programming.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [haskell](<https://devfeed.tech/tags/haskell.md>), [library](<https://devfeed.tech/tags/library.md>), [model](<https://devfeed.tech/tags/model.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [picture](<https://devfeed.tech/tags/picture.md>), [simulation](<https://devfeed.tech/tags/simulation.md>), [state](<https://devfeed.tech/tags/state.md>), [user-interfaces](<https://devfeed.tech/tags/user-interfaces.md>), [view](<https://devfeed.tech/tags/view.md>)

### AI overview

Gloss maps a Haskell graphical application onto MVC: an application-specific model holds state, a view converts it to a `Picture`, and controller functions update it from input events and elapsed time. Its `play` function combines these with a window, background color, frame rate, and initial state; `display` can show a picture without interactive updates. The examples render company employees as salary-scaled, salary-colored circles arranged around a center, handle keys to halve salaries or add and delete employees, and raise eligible salaries on each frame. Gloss's `Picture` constructors compose and transform shapes and text; coordinates use the window center as the origin. The text describes this mapping and examples but does not include the full implementation.

### Source excerpt

Contents 1 MVC 2 Functional MVC: Gloss 2.1 Picture 2.2 Event 2.3 Gloss 1 MVC Model-view-controller (MVC) is a software architectural pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements. MVC says that an interactive application should consist roughly of three main parts - Model, View, and Controller. The Model is the data and state that we need to keep track of to model our application. If you're programming a Chess game, the model could consist of the state of the board (which pieces are where), the time passed since the last player played, whose turn it is, etc... The View is the definition of how our model should be displayed to the user. Intuitively, you can think of it as a function Model -> UI (and begin to see how functional MVC might be interesting). For the above example, the view would define how the chess board can be shown to the user (a 3d object, a 2d ascii board, ...), where the time passed shows up in the screen, etc. The Controller handles all events and interactions with the application and how they modify the existing model. In chess, the controller could define that when a player drags a piece in the board, the position of that piece in the board model changes to the new position, the current turn changes to the other player, and the time passed is reset to zero. And the three relate in the following manner: MVC diagram from Wikipedia 2 Functional MVC: Gloss How does the model-view-controller idea translate into functional programming? It turns out to be quite simple because the three parts match basic FP concepts. We'll focus on the library Gloss to develop a graphical application. Gloss is very easy to setup, provides abstractions for drawing graphics, and outlines the MVC compoonents clearly. We'll implement a simple simulation of the 101companies employees to illustrate the concepts. To define the model, the structure which is updated thorought the program, we simply define

## Why Businesses Use the Zend Framework

DevFeed: [Why Businesses Use the Zend Framework](<https://devfeed.tech/articles/why-do-businesses-popularly-use-the-zend-framework-17724.md>)

Original publisher: [Read original article](<https://orionesolutions.com/why-do-businesses-popularly-use-the-zend-framework/>)

Author: Neeraj Khosla

Published: 2022-05-17T08:30:36Z

Content type: article

Language: en

Sources: [Our Latest Backend Development Insights](<https://devfeed.tech/sources/our-latest-backend-development-insights.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Application Development](<https://devfeed.tech/topics/application-development.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [application-development](<https://devfeed.tech/tags/application-development.md>), [backend-development](<https://devfeed.tech/tags/backend-development.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [framework](<https://devfeed.tech/tags/framework.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [testing](<https://devfeed.tech/tags/testing.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>), [zend-application-development](<https://devfeed.tech/tags/zend-application-development.md>), [zend-framework](<https://devfeed.tech/tags/zend-framework.md>), [zend-framework-development-services-in-toronto](<https://devfeed.tech/tags/zend-framework-development-services-in-toronto.md>)

### AI overview

This article explains why businesses use the Zend Framework, now known as Laminas, for PHP web application development. It describes its MVC support, encryption, database support, libraries, integration, rapid development features, testing components, and maintenance benefits.

### Source excerpt

Statista's reports say that PHP is the most popular language contributing to 45.43% of the market. PHP is ruling the web and computer technology all over the world. However, with the vast array of frameworks available, businesses only choose the best and the most suitable ones. Zend Framework has more than 570 million installations. Zend ... WHY DO BUSINESSES POPULARLY USE THE ZEND FRAMEWORK? Read More " The post WHY DO BUSINESSES POPULARLY USE THE ZEND FRAMEWORK? appeared first on Orion.

## And Now For Starting Again with Elixir and Phoenix Not Elm

DevFeed: [And Now For Starting Again with Elixir and Phoenix Not Elm](<https://devfeed.tech/articles/and-now-for-starting-again-with-elixir-and-phoenix-not-elm-28163.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/elixir/2022/04/01/and-now-for-starting-again-with-elixir-not-elm.html>)

Author: Fuzzygroup

Published: 2022-04-01T15:57:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Elixir](<https://devfeed.tech/topics/elixir.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Elm](<https://devfeed.tech/topics/elm.md>), [Process](<https://devfeed.tech/topics/process.md>)

Tags: [elixir](<https://devfeed.tech/tags/elixir.md>), [elm](<https://devfeed.tech/tags/elm.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [phoenix](<https://devfeed.tech/tags/phoenix.md>), [php](<https://devfeed.tech/tags/php.md>)

### AI overview

The author sets Elm aside after frustration building a small form and begins moving a Laravel app to Elixir/Phoenix. On macOS, Homebrew initially failed to install Elixir 1.12; uninstalling Elixir, unshallowing Homebrew's core tap, and reinstalling produced Elixir 1.13.3 with Erlang/OTP 24. The walkthrough uses `mix archive.install hex phx_new` and generates a MySQL app with `mix phx.new ... --database mysql`, then updates `config/dev.exs`. For an existing database, the author recommends creating migrations for its tables and changing `create table` to `create_if_not_exists` before running `mix ecto.migrate`; an unsaved change caused an existing-table error, while the corrected migration succeeded. The excerpt also shows that `phx.gen.html` with `--no-schema --no-context` creates several default views, and that a generated controller later failed to compile due to an undefined struct. The experiment stops at that point.

### Source excerpt

In my last blog post, I dug into Elm and while I like a number of things conceptually about Elm, the process of implementing nothing more than a maybe 8 element HTML form left me hugely frustrated and annoyed. I also didn't like the way that Elm bundles code and display into one thing. I may be a traditionalist perhaps but the separation of views and code really does work well in practice. I get that Elm is a different thing but it shouldn't be this hard to just put some text and an html form on the screen. And, so, I'm putting Elm to the side for a bit and going to experiment with using Elixir and Phoenix for my previous Laravel application. If nothing else this should be much more straightforward as it is moving from one MVC style framework to another albeit from an OO lang (php) to a functional lang (elixir). Step 1: Getting Up To Date I'm on OSX and my goal was to get to the current Elixir and Phoenix before I started, This I found to be surprisingly problematic. And, perhaps, it was my fault as I don't claim to be great with HomeBrew. I started with: brew update brew install elixir@1.12 But no matter what I did, I couldn't get past elixir 1.11. So my next step was to get rid of everything. Getting Rid of Everything I started with: brew uninstall elixir And then I got a warning about a shallow copy issue which told me to run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow brew update brew install elixir which finally resulted in: ❯ elixir -v Erlang/OTP 24 [erts-12.3.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit] [dtrace] Elixir 1.13.3 (compiled with Erlang/OTP 24) Installing Phoenix A bit of googling gave me this command to install the newest Phoenix: mix archive.install hex phx_new Step 2: Generating a New App Although I've actually been to ElixirCon, things have changed a lot in a few years. Here's the new syntax for generating an app: mix phx.new kit_selector3 --database mysql Normally I'd be using pos

## Announcing CodeRAD 2.0 Preview

DevFeed: [Announcing CodeRAD 2.0 Preview](<https://devfeed.tech/articles/announcing-coderad-2-0-preview-19195.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/announcing-coderad-2-0-preview/>)

Author: Steve Hannah

Published: 2021-08-13T00:00:00Z

Content type: release

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Framework](<https://devfeed.tech/topics/framework.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Java](<https://devfeed.tech/topics/java.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Mobile](<https://devfeed.tech/topics/mobile.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>)

Tags: [announce](<https://devfeed.tech/tags/announce.md>), [declarative](<https://devfeed.tech/tags/declarative.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [feature](<https://devfeed.tech/tags/feature.md>), [framework](<https://devfeed.tech/tags/framework.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [native](<https://devfeed.tech/tags/native.md>), [performance](<https://devfeed.tech/tags/performance.md>), [preview](<https://devfeed.tech/tags/preview.md>), [productivity](<https://devfeed.tech/tags/productivity.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [user-interfaces](<https://devfeed.tech/tags/user-interfaces.md>), [view](<https://devfeed.tech/tags/view.md>), [xml](<https://devfeed.tech/tags/xml.md>)

### AI overview

CodeRAD 2.0 is announced as a developer preview of an MVC framework for building native, mobile-first applications in Java and Kotlin. The release adds XML-based declarative views, property binding, and a simulator-based pseudo-hot-reload workflow with a stated 1-2 second update delay.

### Source excerpt

We are proud to announce the immediate availability of the CodeRAD 2.0 developer preview. CodeRAD is a modern MVC framework for building truly native, mobile-first, pixel-perfect applications in Java and Kotlin.

## Battle-tested template project for backend with Kotlin and Ktor

DevFeed: [Battle-tested template project for backend with Kotlin and Ktor](<https://devfeed.tech/articles/battle-tested-template-project-for-backend-with-kotlin-and-ktor-24731.md>)

Original publisher: [Read original article](<https://medium.com/xorum-io/battle-tested-template-project-for-backend-with-kotlin-and-ktor-c655a2e276c2?source=rss----92bb7980cc9f---4>)

Author: Yev Kanivets

Published: 2021-07-16T05:24:17Z

Content type: tutorial

Language: en

Sources: [xorum.io](<https://devfeed.tech/sources/xorum-io-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Ktor](<https://devfeed.tech/topics/ktor.md>), [Template](<https://devfeed.tech/topics/template.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [API](<https://devfeed.tech/topics/api.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Heroku](<https://devfeed.tech/topics/heroku.md>), [Postman](<https://devfeed.tech/topics/postman.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [backend](<https://devfeed.tech/tags/backend.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [heroku](<https://devfeed.tech/tags/heroku.md>), [intellij](<https://devfeed.tech/tags/intellij.md>), [intellij-idea](<https://devfeed.tech/tags/intellij-idea.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [ktor](<https://devfeed.tech/tags/ktor.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [postman](<https://devfeed.tech/tags/postman.md>), [project](<https://devfeed.tech/tags/project.md>)

### AI overview

This article presents a personal Ktor template for Kotlin backend applications, describing its production use, project structure, tools, libraries, MVC-based architecture, API design, Heroku deployment files, and Firebase Auth integration.

### Source excerpt

With Kotlin and Ktor technologies gaining more popularity among the community of backend developers, dozens of different sample applications and templates are created and published as open-source projects. Ktor is an asynchronous framework for creating microservices, web applications, and more. It's fun, free, and open source. So it doesn't force any particular architecture, set of libraries, or framework to be used, which means that you are free to choose what's best for you and your project. Today, I'm finally ready to share my personal Ktor template, polished by almost a year of use in production applications. This article gives a short overview of the template, its architecture, chosen tools, and libraries. Tools Since we are using Kotlin to develop Ktor applications, pretty much any IDE compatible with Java/Kotlin should work. But the default choice is IntelliJ IDEA, of course. Community edition (free) will work just fine. Postman is a great choice for documenting, testing, and sharing your backend APIs. There are many similar tools. You can use cURL requests, for example. But always think about your API users first. What will be the most convenient for them, as they depend on you a lot. Structure Most of the Kotlin projects (including Ktor) are powered by Gradle, so they look quite similar. My template isn't different, with many Gradle-related files in the root and single src folder. Other files are related to Heroku deployment, but more on this later. Architecture Ktor isn't forcing you for any particular approach, so you are free to choose and implement the architecture that fits your needs best. In our case, we implemented classical MVC (Model -- View -- Controller) architecture with a public API instead of View and dedicated Interactors, which encapsulate all business logic related to each endpoint. Firebase Auth Most applications require some authentication and authorization business logic, so my template includes one of the possible implementations out of

## A Simple Laravel Hello World

DevFeed: [A Simple Laravel Hello World](<https://devfeed.tech/articles/a-simple-laravel-hello-world-28186.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/laravel/2021/05/27/a-simple-laravel-hello-world.html>)

Author: Fuzzygroup

Published: 2021-05-27T13:02:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [composer](<https://devfeed.tech/tags/composer.md>), [controller](<https://devfeed.tech/tags/controller.md>), [framework](<https://devfeed.tech/tags/framework.md>), [html](<https://devfeed.tech/tags/html.md>), [index](<https://devfeed.tech/tags/index.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [models](<https://devfeed.tech/tags/models.md>), [php](<https://devfeed.tech/tags/php.md>), [route](<https://devfeed.tech/tags/route.md>), [simple](<https://devfeed.tech/tags/simple.md>), [test](<https://devfeed.tech/tags/test.md>), [text](<https://devfeed.tech/tags/text.md>), [variable](<https://devfeed.tech/tags/variable.md>), [view](<https://devfeed.tech/tags/view.md>), [world](<https://devfeed.tech/tags/world.md>)

### AI overview

The excerpt shows a minimal Laravel Hello World app built as a full application with one controller, one route, and a Blade view, without models or database connectivity. Create the project with Composer, generate `HelloController` using Artisan, and define its `index` method to return `hello_index`. Add a GET `/hello` route pointing to the controller action; the author says to use the fully namespaced controller path because importing it in the routes file did not work for them. Set `$text` in the action and pass it to the view as `['text' => $text]`, then create `resources/views/hello_index.blade.php`. Run `php artisan serve` and visit `http://localhost:8000/hello`. The excerpt's displayed view snippet is `<h1></h1>`, so it does not show the interpolation needed to render the passed text; the claimed "Hello World" display is not fully demonstrated in the supplied code.

### Source excerpt

As of late I've been working in Laravel and figuring out how Laravel differs from Rails. And while I have a bigger blog post in the works, I thought there was learning value in a simple Hello World implemented in Laravel. Hello World is a simple program that just puts Hello World on the screen. Here's how I thought a Laravel version of this should work: Be a whole Laravel application Be a single controller Be a single route Define the text "Hello World" as a variable, $text, in the controller Display that on the screen via an HTML template While this doesn't illustrated models and database connectivity, this actually illustrates how to use a surprising amount of an overall MVC framework. Step 1: Creating an Application The first step is to use composer to generate the overall application with: composer create-project laravel/laravel hello_world The next step is to change into the directory with: cd hello_world and then open the code base with: mate . or if you use Sublime: subl . Step 2: Generating a Controller Back at your command line, you want to generate a controller with: php artisan make:controller HelloController This will create a file named HelloController in app/http/Controllers: ls -l app/Http/Controllers total 16 -rw-r--r-- 1 sjohnson staff 361 May 18 11:37 Controller.php -rw-r--r-- 1 sjohnson staff 122 May 27 09:12 HelloController.php Inside the controller you want to add the following code (some of which will already be there from the generator): public function index() { return view('hello_index'); } inside the "class HelloController extends Controller" block of code (it goes inside the {} braces). Step 3: Adding a Route Moving back to the code base, you want to edit the file routes/web.php and add this line: Route::get('/hello', 'App\Http\Controllers\HelloController@index'); This adds a single route, /hello, which is then handled by the Hello controller and the hello_index action. You can test that this route is available by running: php artisan rout

## Thoughts on Event Sourcing

DevFeed: [Thoughts on Event Sourcing](<https://devfeed.tech/articles/thoughts-on-event-sourcing-44309.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/thoughts-on-event-sourcing>)

Author: Brent

Published: 2021-04-08T00:00:00Z

Content type: article

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [event-sourcing](<https://devfeed.tech/topics/event-sourcing.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [crud](<https://devfeed.tech/tags/crud.md>), [event-sourcing](<https://devfeed.tech/tags/event-sourcing.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>)

### AI overview

A guest post reflecting on the author's experience with event sourcing and how it changes the mental framework traditionally used for MVC and CRUD web application development.

### Source excerpt

Read the full post on https://stitcher.io/blog/thoughts-on-event-sourcing

## RAD Chat Room - Part 5

DevFeed: [RAD Chat Room - Part 5](<https://devfeed.tech/articles/rad-chat-room-part-5-19490.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/rad-chatroom-part-5/>)

Author: Steve Hannah

Published: 2020-05-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [webcam](<https://devfeed.tech/topics/webcam.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [back-end](<https://devfeed.tech/tags/back-end.md>), [camera](<https://devfeed.tech/tags/camera.md>), [capture](<https://devfeed.tech/tags/capture.md>), [library](<https://devfeed.tech/tags/library.md>), [messaging](<https://devfeed.tech/tags/messaging.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

Part 5 of a RAD Chatroom tutorial adds a capturePhoto action that lets users select or take an image and insert it into a chat message. It also explains that the mock application has no server integration and recommends the cn1-websockets library as a starting point.

### Source excerpt

This is part 5 of the RAD Chatroom tutorial. You can find part 1 here, part 2 here, part 3 here and part 4 here. Adding A Photo Capture Feature Most messaging applications include the ability to add photos to messages. Let's add this feature to our chat app now. First we'll define a new action called "capturePhoto", and add to the TEXT_ACTIONS category of our view node. public static final ActionNode capturePhoto = action( icon(FontImage.MATERIAL_CAMERA) ); ... ViewNode viewNode = new ViewNode( actions(ChatRoomView.SEND_ACTION, send), actions(ProfileAvatarView.PROFILE_AVATAR_CLICKED_MENU, phone, videoConference), actions(ChatBubbleView.CHAT_BUBBLE_LONG_PRESS_MENU, likeAction), actions(ChatBubbleView.CHAT_BUBBLE_BADGES, likedBadge), actions(ChatRoomView.TEXT_ACTIONS, capturePhoto) __**(1)** ); __1 Added capturePhoto action to the TEXT_ACTIONS category so that it will appear as a button beside the text field. And we'll also add a handler for this action, which will capture a photo, and embed the photo in a message that we will add to the chat room's view model.

## RAD Chat Room - Part 1

DevFeed: [RAD Chat Room - Part 1](<https://devfeed.tech/articles/rad-chat-room-part-1-19486.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/rad-chatroom-part-1/>)

Author: Steve Hannah

Published: 2020-04-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [App](<https://devfeed.tech/topics/app.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [ide](<https://devfeed.tech/topics/ide.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [ide](<https://devfeed.tech/tags/ide.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [project](<https://devfeed.tech/tags/project.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A step-by-step tutorial on using the RADChatRoom library and CodeRAD in a Codename One application. It introduces the ChatRoomView component, explains the MVC-based setup, and covers project creation, CSS activation, and dependency installation.

### Source excerpt

This tutorial describes how to use the RADChatRoom library to quickly and easily add a nice-looking, fully functional chat room to your Codename One application. This is part 1 of a multi-part series of posts over the next few weeks. The finished product will look like the following: You can download the full source of this tutorial's project here. You can also try it out yourself here.

## Understanding the Power of rails g scaffold

DevFeed: [Understanding the Power of rails g scaffold](<https://devfeed.tech/articles/understanding-the-power-of-rails-g-scaffold-28254.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/rails/2020/01/22/understanding-the-power-of-rails-g-scaffold.html>)

Author: Fuzzygroup

Published: 2020-01-22T00:00:00Z

Content type: article

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [active-record](<https://devfeed.tech/tags/active-record.md>), [assets](<https://devfeed.tech/tags/assets.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [controller](<https://devfeed.tech/tags/controller.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [generator](<https://devfeed.tech/tags/generator.md>), [html](<https://devfeed.tech/tags/html.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [rails](<https://devfeed.tech/tags/rails.md>), [resources](<https://devfeed.tech/tags/resources.md>), [route](<https://devfeed.tech/tags/route.md>), [scss](<https://devfeed.tech/tags/scss.md>), [spring](<https://devfeed.tech/tags/spring.md>), [test](<https://devfeed.tech/tags/test.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

Running `rails g scaffold labels` generated a migration, singular `Label` model, resource route, CRUD controller, views, fixtures, controller and system tests, helper, and stylesheet. The output warned that `Labels` was plural and normalized the model name to `Label`, with `--force-plural` or custom inflection rules offered as alternatives. The author says scaffolding speeds prototyping and supplies a testable controller, while noting that factories and authorization are not generated by default. They describe generators as customizable, with possible additions such as factory files, access control, policies, and logged-in/logged-out controller tests. The excerpt does not show the full article.

### Source excerpt

Wow. I am a damn idiot who has literally made his life harder than it ever needed to be -- for years. Sigh. I am referring to the Rails generator and the scaffold command. When you have complex software tools, sometimes you don't discover features - great damn features - for a long time. In this case I'm referring to: rails g scaffold pluralized_object_name In my case, I'm building a project where the ultimate goal is to create a label on something. Never mind what a label is or what the something is. A friend I've been helping with Rails recently asked me what rails g scaffold does and I muttered something about "makes the model and controller in one go" but I never thought to try it myself until just now. HOLY CRAP! Wow. rails g scaffold labels And here's what this generated for me: rails g scaffold Labels Running via Spring preloader in process 78104 [WARNING] The model name 'Labels' was recognized as a plural, using the singular 'Label' instead. Override with --force-plural or setup custom inflection rules for this noun before running the generator. invoke active_record create db/migrate/20200122100533_create_labels.rb create app/models/label.rb invoke test_unit create test/models/label_test.rb create test/fixtures/labels.yml invoke resource_route route resources :labels invoke scaffold_controller create app/controllers/labels_controller.rb invoke erb create app/views/labels create app/views/labels/index.html.erb create app/views/labels/edit.html.erb create app/views/labels/show.html.erb create app/views/labels/new.html.erb create app/views/labels/_form.html.erb append app/views/shared/_left_nav.html.erb invoke test_unit create test/controllers/labels_controller_test.rb create test/system/labels_test.rb invoke helper create app/helpers/labels_helper.rb invoke test_unit invoke assets invoke scss create app/assets/stylesheets/labels.scss And this isn't just creating a raw file structure, the core controller itself and the tests are actually built for you. Here's th

## Choosing an Architecture Pattern for Android Applications

DevFeed: [Choosing an Architecture Pattern for Android Applications](<https://devfeed.tech/articles/mvwtf-demystifying-architecture-patterns-22826.md>)

Original publisher: [Read original article](<http://androidessence.com/mvwtf/>)

Author: Adam McNeilly

Published: 2019-08-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [App](<https://devfeed.tech/topics/app.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [architecture-pattern](<https://devfeed.tech/tags/architecture-pattern.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [mvi](<https://devfeed.tech/tags/mvi.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [patterns](<https://devfeed.tech/tags/patterns.md>)

### AI overview

This tutorial explains why Android applications need architecture patterns and compares approaches including MVC, MVP, MVVM, MVI, and MVU. It emphasizes separating application code into distinct components rather than placing all code in an Activity.

### Source excerpt

As an Android developer, one of the questions I constantly see asked within the community is "what architecture pattern should I use?" This discussion usually leads to a handful of buzzwordy acronyms: MVC MVP MVVM MVI MVU?? (We don't talk about this but apparently it's the new kid on the block) This can be really intimidating to new Android devs, as well as seasoned veterans who are constantly questioning if they're using the right one. Whether you're trying to decide which one to learn, or wondering if the one you already use is best for you, this post will help lead you to the right decision.

## Remind iOS: Present All the Things!

DevFeed: [Remind iOS: Present All the Things!](<https://devfeed.tech/articles/remind-ios-present-all-the-things-31930.md>)

Original publisher: [Read original article](<http://engineering.remind.com/ios-presentation/>)

Author: Remind

Published: 2019-05-28T00:00:00Z

Content type: article

Language: en

Sources: [Remind](<https://devfeed.tech/sources/remind.md>)

Topics: [User interface design](<https://devfeed.tech/topics/ui-design.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [MVVM](<https://devfeed.tech/topics/mvvm.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>)

Tags: [ios](<https://devfeed.tech/tags/ios.md>), [layout](<https://devfeed.tech/tags/layout.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [subclass](<https://devfeed.tech/tags/subclass.md>)

### AI overview

The excerpt describes Remind's MVVM-oriented iOS practices for building reusable UI components. The team uses programmatic layout with SnapKit, citing easier code review and parallel work as reasons for leaving xibs, while acknowledging teams may choose differently. It recommends encapsulating related controls in UIView subclasses, keeping internal primitives private, and exposing data through a present(...) method or limited properties. View models adapt domain objects into presentation data, while closures with action enums report user actions. Reusable design components get their own files; feature-specific views stay private alongside their view controller. The author also recommends separating UI management from navigation sequence so view controllers handle fewer responsibilities.

### Source excerpt

For the past couple years we've been implementing new features with an MVVM-driven approach. Over that time, we've settled into a couple of good (I think) patterns for implementing UIView subclasses, composing them in various view hierarchies, and handling the interactions between them. Ultimately, the goal of any iOS application is to get data presented onto the screen, so I thought I'd share what's been working well for us in that department. Layout In Code It's a debate where every team eventually has to pick a side: Do we use storyboards and xibs, or do we write all of our layout in code? To make a long story short, our team started with Interface Builder, but we abandoned xibs a few years ago and have gone to fully programmatic layout code using SnapKit as our DSL of choice. Every team's needs will be different, but we think it's important that we can effectively code-review each other's layout implementations and potentially have multiple people working on the same screen, neither of which are really practical with xibs. I'll leave it at that -- you do you. Use UIView Subclasses Liberally Nothing clutters the actual logic of a UIViewController like big blocks of view construction code. Whenever you have a logical grouping UI primitives (UILabel, UIImageView, UIButton, etc), make a UIView subclass that encapsulates all of the relative layout inside that view container. This allows you to build the view hierarchy for your view controller in simpler, larger, more logical chunks of UI. One of the more complex UI layouts we have in our application is the settings screen for a class the user owns. Let's look at the layout and focus on the CLASS SETTINGS section, which contains two items, each consisting of two labels and a switch. On our first iteration, our view controller maintained property accessors for each of those primitives: class ClassSettingsViewController: UIViewController { ... private let isPublicTitleLabel = UILabel() private let isPublicMessageLabel =

## The next CEO of Stack Overflow

DevFeed: [The next CEO of Stack Overflow](<https://devfeed.tech/articles/the-next-ceo-of-stack-overflow-37528.md>)

Original publisher: [Read original article](<https://www.joelonsoftware.com/2019/03/28/the-next-ceo-of-stack-overflow/>)

Author: Joel Spolsky

Published: 2019-03-28T14:00:53Z

Content type: news

Language: en

Sources: [Joel Spolsky](<https://devfeed.tech/sources/joel-spolsky.md>)

Topics: [Stack Overflow](<https://devfeed.tech/topics/stackoverflow.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>), [ASP.NET](<https://devfeed.tech/topics/aspnet.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [.NET](<https://devfeed.tech/topics/net.md>)

Tags: [advertising](<https://devfeed.tech/tags/advertising.md>), [asp-net](<https://devfeed.tech/tags/asp-net.md>), [browser](<https://devfeed.tech/tags/browser.md>), [ceo](<https://devfeed.tech/tags/ceo.md>), [co-founder](<https://devfeed.tech/tags/co-founder.md>), [employees](<https://devfeed.tech/tags/employees.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [net](<https://devfeed.tech/tags/net.md>), [news](<https://devfeed.tech/tags/news.md>), [revenue](<https://devfeed.tech/tags/revenue.md>), [saas](<https://devfeed.tech/tags/saas.md>), [software](<https://devfeed.tech/tags/software.md>), [stack-overflow](<https://devfeed.tech/tags/stack-overflow.md>)

### AI overview

Joel Spolsky announces that Stack Overflow is looking for a new CEO. He is stepping away from day-to-day operations to become chairman of the board, while describing the company's growth, profitability, products, employees, and audience.

### Source excerpt

We're looking for a new CEO for Stack Overflow. I'm stepping out of the day-to-day and up to the role of Chairman of the Board. Read more "The next CEO of Stack Overflow"

## Breaking The Buzzwords Barrier Part 3: ViewModel

DevFeed: [Breaking The Buzzwords Barrier Part 3: ViewModel](<https://devfeed.tech/articles/breaking-the-buzzwords-barrier-part-3-viewmodel-22793.md>)

Original publisher: [Read original article](<http://androidessence.com/breaking-the-buzzwords-barrier-viewmodel/>)

Author: Adam McNeilly

Published: 2018-06-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [mvc](<https://devfeed.tech/topics/mvc.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [architecture-components](<https://devfeed.tech/tags/architecture-components.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [rotation](<https://devfeed.tech/tags/rotation.md>), [viewmodel](<https://devfeed.tech/tags/viewmodel.md>)

### AI overview

This tutorial explains the difference between the ViewModel concept in MVVM architecture and Android's lifecycle-conscious ViewModel class. It describes how Android Architecture Components retain ViewModel data across configuration changes such as rotation.

### Source excerpt

So far we've covered four big buzzwords used in our application: Model-View-ViewModel Room RxJava Repository Pattern Now, we should circle back to the beginning. Following our diagram outlined in the previous parts, the next component we can begin to work on is our AccountViewModel: Naturally, this may bring up some confusion. We already discussed ViewModels in part 1. Well, depending on context, we may not be referring to the same thing.

## Accelerating Android Talent Through Community Bootcamps

DevFeed: [Accelerating Android Talent Through Community Bootcamps](<https://devfeed.tech/articles/accelerating-android-talent-through-community-bootcamps-1286.md>)

Original publisher: [Read original article](<https://shopify.engineering/accelerating-android-talent-through-community-bootcamps>)

Author: Julia Hurrelmann

Published: 2018-02-27T22:00:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Shopify](<https://devfeed.tech/topics/shopify.md>), [coding-community](<https://devfeed.tech/topics/coding-community.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [mvc](<https://devfeed.tech/topics/mvc.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [community](<https://devfeed.tech/tags/community.md>), [developer](<https://devfeed.tech/tags/developer.md>), [development](<https://devfeed.tech/tags/development.md>), [json](<https://devfeed.tech/tags/json.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [skills](<https://devfeed.tech/tags/skills.md>), [software-development](<https://devfeed.tech/tags/software-development.md>)

### AI overview

Shopify describes an Android Bootcamp designed to help developers transition into mobile development through a two-day workshop. Participants build a simple quiz app while learning Android views with XML, lifecycles, MVC, JSON parsing, libraries, and remote data retrieval.

### Source excerpt

6 minute read The mobile team knew they needed developers, particularly Android developers. A few years ago, Shopify pivoted to mobile-first, which led to the launches of Shopify Mobile, Shopify Pay, Frenzy, and others. To maintain momentum, Shopify had to keep building up its mobile talent. Back when Shopify's mobile teams spun up, many of our then-early mobile developers never did any mobile development before, instead teaching themselves how to do it on the job. From this observation, we had an insight: what if we could teach developers how to build an Android app, via a Shopify-hosted workshop? The benefits were obvious: this educational initiative could help our local developer community pick up some new skills, while potentially allowing us to meet exciting new talent. The idea for Android Bootcamp was born.

## Reportoire, the journey to data source independency

DevFeed: [Reportoire, the journey to data source independency](<https://devfeed.tech/articles/reportoire-the-journey-to-data-source-independency-28080.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/repo-pattern-article/>)

Author: Rafael Ortega Lupión Follow

Published: 2017-01-30T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [MVVM](<https://devfeed.tech/topics/mvvm.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [mvc](<https://devfeed.tech/topics/mvc.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [concepts](<https://devfeed.tech/tags/concepts.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [data](<https://devfeed.tech/tags/data.md>), [decision-making](<https://devfeed.tech/tags/decision-making.md>), [decoupling](<https://devfeed.tech/tags/decoupling.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [developers](<https://devfeed.tech/tags/developers.md>), [logic](<https://devfeed.tech/tags/logic.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [source](<https://devfeed.tech/tags/source.md>), [test](<https://devfeed.tech/tags/test.md>), [test-coverage](<https://devfeed.tech/tags/test-coverage.md>), [testing](<https://devfeed.tech/tags/testing.md>), [view](<https://devfeed.tech/tags/view.md>)

### AI overview

Reportoire separates data access from Android view models through repositories, which choose among data sources and may store retrieved data. The excerpt's `MemoryNetworkRepository` checks memory first, then fetches from the network using `CachedObservableSource` and `MemoryCacheSource`. Developers extend `CachedObservableSource` to define API calls and map results into success or error values. View models obtain repositories through the app's dependency management; the example mentions a custom configurator or Dagger's `@Inject`. This keeps source selection and data handling out of view models, which the excerpt says can otherwise grow difficult to scale and test.

### Source excerpt

Concepts like separation of concerns, logic decoupling or dependency injection are things we developers have heard more than a couple of times. At trivago, the Android app is developed using the Model View ViewModel (MVVM) architecture, aiming for views as dumb as possible, leaving the decision making to the view models. This leads to an increased test coverage since testing logic in views is something we can't do that easily.

[Next page](<https://devfeed.tech/topics/mvc.md?cursor=WyIyMDE3LTAxLTMwVDAwOjAwOjAwKzAwOjAwIiwgIjY3MmMxMDkzLTQxNDEtNDc1NC1hZTJmLWExNWMwZmQ4OGI0MyJd>)