Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Overriding Display methods too complicated due to high amount of arguments (Making Display class easier to use)
Re: Overriding Display methods too complicated due to high amount of arguments [message #55483 is a reply to message #55481] |
Sun, 15 November 2020 00:03  |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Sat, 14 November 2020 20:29Hello Mirek,
I am happy we are on the same page. I didn't know that this additional parameters were added in the past.
Please do not mix HtmlEncode and Display. First one is bad and to be fixed, second one is OK.
Quote:
To be clear my main reason in this discussion is to make U++ API the most pleasant to use as possible. This is not about criticizing some past decisions. We are all here together and we would like to help and make U++ even better.
HtmlEncode is sort of past decision. Will be fixed in time. Display::Paint I would do the same no matter what.
BTW, if you read what they suggest really carefully, I think that the good indicator for change is this:
Are you using the newly created object just to fix single method, or there are more cases where this would be usable?
Does not apply always, HtmlEncode is counterargument of sorts, but really does apply to Display::Paint. Intruducing redundant object there just to satisfy the idea that function cannot have more than 4 parameters would really make me sick. Literally It would be really bad code smell for me.
Mirek
[Updated on: Sun, 15 November 2020 00:03] Report message to a moderator
|
|
|
 |
|
Overriding Display methods too complicated due to high amount of arguments
By: Klugier on Sun, 18 October 2020 00:01
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: Oblivion on Sun, 18 October 2020 19:16
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: mirek on Mon, 19 October 2020 15:59
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: Oblivion on Mon, 19 October 2020 16:53
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: mirek on Sat, 14 November 2020 10:02
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: Oblivion on Sat, 14 November 2020 10:14
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: Klugier on Sat, 14 November 2020 14:23
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: mirek on Sat, 14 November 2020 14:33
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: mirek on Sat, 14 November 2020 14:38
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: Klugier on Sat, 14 November 2020 20:29
|
 |
|
Re: Overriding Display methods too complicated due to high amount of arguments
By: mirek on Sun, 15 November 2020 00:03
|
Goto Forum:
Current Time: Wed Aug 27 03:35:55 CEST 2025
Total time taken to generate the page: 0.05751 seconds
|