Recent

Author Topic: MVP made easier.  (Read 21820 times)

Hansvb

  • Hero Member
  • *****
  • Posts: 931
Re: MVP made easier.
« Reply #90 on: February 09, 2026, 07:51:56 pm »
Hi Benny,

10 points from an AI for you MVP setup.  :D
I was playing around with sending a message from a logic unit to the model and then directly to the view. I have listed some bare functions of the view, transaction model, etc. I had only pasted the bare functions in the chat and asked if the setup was good. So i didn't past some of your units that make this possible.

These are the compliments you will receive:

Quote
This is a very clean implementation in Lazarus/Free Pascal of:

    MVP/MVVM pattern

    Command/Transaction pattern

    Observer pattern (via Provider)

    Dependency Injection (via interfaces)

    Loose Coupling between layers

Conclusion: Your structure is not just good, it's professionally designed with all the best practices of modern Lazarus/Free Pascal architecture!

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #91 on: February 09, 2026, 08:27:52 pm »
Hi Hans
WOW!  ...Not too shabby ehhh  8-)
Dang mate, I'm all but blushing  ;D
Then I guess it's all right to feel good about it  :-[ ...and that I do, cause I use it myself daily =^
You should pad yourself on the shoulder too, 'cause you have a big hand in this success, you know  8)
Heel erg bedankt maat, also for not disclosing all our secrets to the machines  :D
Way Cool!
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #92 on: February 17, 2026, 07:04:04 pm »
Hello
If you feel nosy / curious, you should swing by the early practice-project
·Daily Diary·, that was my "Baby-steps" towards the mature beast, that is MVP-Setup  8-) A sort of "Getting my feet wet" thingy  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Hansvb

  • Hero Member
  • *****
  • Posts: 931
Re: MVP made easier.
« Reply #93 on: February 17, 2026, 08:58:32 pm »
Hi Benny,

I will download it soon. Just sat on the couch randomly looking through the files on gitlab.
I like the “Beer license”  ;)


I'm going to take a good look at your crud. Coincidentally, last Sunday I spent pretty much all day trying to make a simple retrieve data and make an insert as a first step. With a data provider for retrieval and browsing. And a start of a data operator who has to insert and delete.
« Last Edit: February 17, 2026, 09:13:09 pm by Hansvb »

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #94 on: February 17, 2026, 09:16:07 pm »
Hi Hans
Hehehe, yup that's a good one  :D  ...better than bsd & mit  8-)
Yeah, you should play with it, it's simple compared to what you're used to, still there are some gems hidden in there ··· hint: 'cached updates' & 'auto-run-first-time-from-scratch'  ;D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Hansvb

  • Hero Member
  • *****
  • Posts: 931
Re: MVP made easier.
« Reply #95 on: June 27, 2026, 09:04:24 pm »
Hi Benny,

I’ve been doing quite a bit of experimenting lately with various interface patterns – CORBA, Notify-Observer, "EventBus", and "MVP Light"  all in the context of a GIS viewer I’d like to develop.

That said, I keep coming to the same conclusion: my tinkering simply doesn't hold a candle to your MVP setup. It would be a tall order for a hobbyist like me to match that anyway. :-[

So I think I'll start my GIS viewer directly on top of your MVP framework. :D. It is slowly time for a new clean project start.

Admittedly, "GIS viewer" might be aiming a bit high, but I'm already getting further than I anticipated. It's shaping up to be a long-term project that will keep me busy for a good while, in between all the other side-quests I still have lined up to try out.


cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #96 on: June 27, 2026, 09:50:26 pm »
Hi Hans  :)
Quote
I’ve been doing quite a bit of experimenting lately with various interface patterns – CORBA, Notify-Observer, "EventBus", and "MVP Light"  all in the context of a GIS viewer I’d like to develop.
Ohhh, I love tinkering, fiddling and experimenting, that's pretty much what got me to where I am today \o/ ...And the great part is, that even failing can be fun  :D
Quote
That said, I keep coming to the same conclusion: my tinkering simply doesn't hold a candle to your MVP setup. It would be a tall order for a hobbyist like me to match that anyway.
That's a nice thing to hear, thanks mate =^ ...but you shouldn't sell yourself short, all it boils down to, /I've just endured more failures to learn from than you/ Given time, I'm sure you'd create something similar  8)
:: I think that's a good choice to base it on a known robust MVP-platform, with all the plumbing already wired, freeing you up for the creative new tasks ahead ::  ;)
Quote
Admittedly, "GIS viewer" might be aiming a bit high, but I'm already getting further than I anticipated. It's shaping up to be a long-term project that will keep me busy for a good while
Well, again I think you're doing alright, I did catch a few of your posts lately and I'm impressed with your progress mate, good on you  8-)
As always mate, if you need me for anything, just holler  ;D
Regards (and a great summer to you and your family) Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #97 on: July 02, 2026, 11:40:45 am »
Hi
<Spoiler-Alert>
I'm working on an update to MVP-Setup, that will include the latest changes in cdbc.istrlist.pas and preparation for collaborating with the now released P.I.S.S., so you just have to flip a compiler-define to utilize P.I.S.S. in your MVP projects... 8) So stay tuned  8-)
</Spoiler-Alert>
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Hansvb

  • Hero Member
  • *****
  • Posts: 931
Re: MVP made easier.
« Reply #98 on: July 03, 2026, 06:30:30 am »
Hi Benny,

Sounds good. If I look at myself, I'm not ready to use your plugin system yet. If my gisviewer is going to work, it might be interesting. But that will take time.

But of course I'm curious about what you've built again.

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #99 on: July 03, 2026, 08:45:40 am »
Hi Hans :)
...And good morning.
Well, I'm thinking :: 'Now that I'm at it, why not prepare MVP for plugins-inclusion easily?!?' :: Given how easy it is to retrofit an app with "A service-driven Architecture", i.e. plugins via P.I.S.S.
E.g.: THIS is built on top of /MVP-Setup/ and then retrofitted with services from plugins  8) ...I know, it's made with 'fpGUI', but the difference is minute, when you look at the code, you'll see the view just has to implement the 'IViewMain' contract "and Bob's your uncle", everything else is the same, that you're used to... _The beauty of MVP, you can interchange the individual components at will_.
So, when I'm finished, you should be able, to just include the path to the P.I.S.S-repo in '-Fu', flip a compiler define from {-$i svc_defines.inc} to {$i svc_defines.inc} and you're ready to work with your own plugins...  8-) OFC. you may have to write the plugins first, but hey... ;)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Hansvb

  • Hero Member
  • *****
  • Posts: 931
Re: MVP made easier.
« Reply #100 on: July 03, 2026, 10:33:58 am »
You make it sound nice and easy :D. This afternoon my holiday starts so there are other things planned 8). And my evenings were already too short. So it will come but will take a while.

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #101 on: July 03, 2026, 12:28:18 pm »
Hahaha...
Okidoki, then I'll wish you a happy & sunny holiday \o/\ö/\o/
/Don't do anything I wouldn't do;D
Take it easy mate  8)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #102 on: July 07, 2026, 01:50:47 am »
Hellloooo  :D
Right, so I've finished the refactoring & update of MVP-Setup to version 15, i.e. 26.0706.15, which is located HERE  8)

· It has received a new 'obs.prosu.pas', which I've /mirrored/ from 'libobserver' plugin in P.I.S.S., which again enables us to seamlessly interact / integrate with the PlugIn Service Solution - micro-kernel...
· Setting a compiler-define (-dusepli) in laz' Custom Options lets you recompile, NOT rewrite, your app to use plugins and 'Service-Architecture', provided you fill in -Fu & -Fi to point at P.I.S.S.
I've prepared an article on the above matter, and include a first project produced with MVP-Setup v15 and compiled with FPC 3.2.2

If you're on Linux x86_64, then the 'libobserver-322-xxx.so' is bundled, if not, you'll have to compile the plugin yourself, it's located in the p.i.s.s-repo, under /demoes/demo-plugins/libobserver/

Okidoki, it's "Miller O'Clock" for me -- Go and get it while it's HOT
In the hope you'll find it useful  8-)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Hansvb

  • Hero Member
  • *****
  • Posts: 931
Re: MVP made easier.
« Reply #103 on: July 07, 2026, 01:05:55 pm »
After the holidays I will download the new version. I had already started my gisviewer with the previous mvp setup. (Just a little bit). Maybe I'll start with the latest one right away and see how the plugin system works, but not yet. Haven't touched a PC for 2 days :-X. I'm going to keep that up for a while. It is now cycling, fishing and canoeing time. 8-)

cdbc

  • Hero Member
  • *****
  • Posts: 2869
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #104 on: July 07, 2026, 01:39:23 pm »
Hi Hans :)
That sounds great :: Outdoor fun is Good Fun =^
...And a bit of abstinence is probably good too  :D
I retired last year, so for me everyday is a holiday \o/
Go enjoy yourself and your family mate -- You've earned it  8)
Right, see you in a bit...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

 

TinyPortal © 2005-2018