Recent

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

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: MVP made easier.
« Reply #30 on: August 31, 2024, 12:19:56 am »
Does MVP mean Model-View-Presenter?

Not so minor nitpick - The versioning is easier to understand if you enter the date first before the build version, and the date should be in YMD order, so  10.26.08.2024 should be 2024.08.26_10.

If the ser and ver values are date independent then it may okay for them to precede the date. They must have to be sorted consistently.

These issues make a whole load of difference when you are confused about the versions and their dates.
« Last Edit: August 31, 2024, 12:32:17 am by vfclists »
Lazarus 3.0/FPC 3.2.2

cdbc

  • Hero Member
  • *****
  • Posts: 1565
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #31 on: August 31, 2024, 08:14:45 am »
Hi
Quote
Does MVP mean Model-View-Presenter?
Yes it does, with the dialect leaning towards Martin Fowler's 'Supervising Presenter' philosophy.
Regarding versioning:
Code: Text  [Select][+][-]
  1. csuVersion = 10.26.08.2024
  2.              |  |  |  +- - : the major version cannot cross year borders
  3.              |  |  +- - - -: the major version cannot cross month borders
  4.              |  +- - - - - : date committed
  5.              +- - - - - - -: MAJOR version, feature change, refactor etc...
  6.              !- { - - - - }: bug-fixes can retain major version, until it breaks
  7.                              one of the 2 first rules, then it gets bumped +1  
  8.  
The rule is, that if I add features to the source, the major version gets bumped +1   8)
This way I don't have to keep a schema / table with the version <-> date mappings, I can see: oh, it's version ten from 26th of August in year 2024.
Quote
If the ser and ver values
Sorry mate, what ?!?
I don't make that many versions or even different programs / utillities / libraries  :D
Regards Benny


« Last Edit: August 31, 2024, 08:18:54 am by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Hansvb

  • Hero Member
  • *****
  • Posts: 713
Re: MVP made easier.
« Reply #32 on: August 31, 2024, 09:34:14 am »
Hi,
I can't keep up.  :D I'm still working on the previous one.  :-X This new addition is going over my head for now. But then I have plenty to do in the fall and winter. So the questions may not come for a while.

cdbc

  • Hero Member
  • *****
  • Posts: 1565
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #33 on: August 31, 2024, 11:19:59 am »
Hi
Don't worry Hans, this last one was just an example of how you can make it, so that you don't have to /hard-code/ the 'Sects' array, but instead let each (new) unit or class that needs it, 'Register' its /section/ with the model, in its initialization code at unit-loading.
I haven't (yet) implemented it in the 'mvp-setup', so its still /cooking/ and waiting for the next nice prime(11) release, who knows - maybe I'll think of something else cool to put in there as well  8-)
Nice, that I too, can put _you_ to work  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Hansvb

  • Hero Member
  • *****
  • Posts: 713
Re: MVP made easier.
« Reply #34 on: August 31, 2024, 11:54:59 am »
Quote
Nice, that I too, can put _you_ to work
You indeed do that. But don't get me wrong, that's good.
I'm currently in doubt... I want to get to grips with it better, but I also want to continue working on my own tool in which I already use the mvp setup generated with youre tool. Now do a little of both.

cdbc

  • Hero Member
  • *****
  • Posts: 1565
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #35 on: August 31, 2024, 12:29:47 pm »
Hi
That's great, practical 'hands on' experience is the best... Have fun  :)
The 'Grips' will come with working with it ...or playing  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: MVP made easier.
« Reply #36 on: August 31, 2024, 04:10:27 pm »
Hi
Quote
Does MVP mean Model-View-Presenter?
Yes it does, with the dialect leaning towards Martin Fowler's 'Supervising Presenter' philosophy.
Regarding versioning:
Code: Text  [Select][+][-]
  1. csuVersion = 10.26.08.2024
  2.              |  |  |  +- - : the major version cannot cross year borders
  3.              |  |  +- - - -: the major version cannot cross month borders
  4.              |  +- - - - - : date committed
  5.              +- - - - - - -: MAJOR version, feature change, refactor etc...
  6.              !- { - - - - }: bug-fixes can retain major version, until it breaks
  7.                              one of the 2 first rules, then it gets bumped +1  
  8.  
The rule is, that if I add features to the source, the major version gets bumped +1   8)
This way I don't have to keep a schema / table with the version <-> date mappings, I can see: oh, it's version ten from 26th of August in year 2024.
Quote
If the ser and ver values
Sorry mate, what ?!?
I don't make that many versions or even different programs / utillities / libraries  :D
Regards Benny

Quote
Quote
If the ser and ver values
Sorry mate, what ?!?

These are the prefixes of the directory names in the gitlab repo.
Lazarus 3.0/FPC 3.2.2

cdbc

  • Hero Member
  • *****
  • Posts: 1565
    • http://www.cdbc.dk
Re: MVP made easier.
« Reply #37 on: August 31, 2024, 05:38:49 pm »
Hi
I think you'll find, if you look closer, the one is ver_10.26.08.2024 and the other is src_10.26.08.2024.
A binary and a source -release...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018