AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Delphi-PRAXiS - Lounge Delphi-News aus aller Welt Delphi Form/Code Separation (CodeRage 9 2014)
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi Form/Code Separation (CodeRage 9 2014)

Ein Thema von DP News-Robot · begonnen am 25. Apr 2021
Antwort Antwort
Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.981 Beiträge
 
#1

Delphi Form/Code Separation (CodeRage 9 2014)

  Alt 25. Apr 2021, 18:40
I just re-watched an excellent video by David Schwartz an Embarcadero MVP. Schwartz gave this presentation during a 2014 Code Rage 9 session.

Schwartz says the majority of Delphi code he has seen as employs what he calls "Back-Door" injection. All the data movement to and from controls is handled at the form level. He discusses "Constructor" injection and "Property" injections pointing out the pros and cons of both.

I found this very interesting.

CodeRage9
Have You Embraced Your Inner Software Plumber Yet?
David Schwartz



https://youtu.be/qqKx8fQTTfI

Here are time jumps to specific sections:

00:41 Overview:
01:09 Inspiration For This Talk
02:25 What This Talk IS and IS NOT About
03:20 Requires Shift in Perspective
05:56 What We Do Today
06:10 FOCUS: Generalizing Form Interfaces
07:23 Tour of Data Structures + Cases
08:50 Tour of simple Delphi Edit Point Form
09:30 Quick detour Dependency Injection
10:47 Constructor vs. Property Injection
12:00 "Back-door" Injection
12:42 Using Property Injection
13:31 Using Constructor Injection
14:35 Summary
15:40 Constructor Injection Limitations
18:23 Plumbing Code and 4 Types of Forms
20:55 Initializing & Retrieving data to/from Forms
21:51 Focus: Selection Forms
24:23 Selection Using Setter/Getter Variant
25:55 Drawbacks to This Approach
27:41 Interface Separation Alert Forms
28:19 Interface Separation Selection Forms
29:02 Interface Separation CRUD Forms
30:06 Classic Selection Form Interaction
30:36 Selection Using Interface + Class
34:05 What Have We Learned?
35:38 Recommendations
36:42 Conclusions


External References:

Mark Seeman Blog Post - Refactoring to Aggregate Services




Enjoy,
Gunny Mike
https://zilchworks.com









Weiterlesen...
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:50 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz