Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problematic Curvy API
#1
Hello.

I just noticed a serious problem in Curvy's code.

I contains extension methods which are considered as "non-best-practice"  and these method leaks into our project code via VisualStudio's IntelliSense because they are declared as public.

In .NET world (or at least, in C# world) we don't/should not use resizable Arrays. When we need resizing, we use List<> generic collection.

I see that Curvy contains extension methods (Add and AddRange) which resize an array. You may decide what to use and not to use in your own code. That's fine but declaring this  non-best-practice as public and leaking it into customer code is a serious problem.

I almost committed the usage of these public methods into our project repo. I just noticed the problem at the last second before committing.

As can be seen in the screenshot, SettlementBuildingOptions is a string array and VS IntelliSense is showing your non-best-practice Add and AddRange methods as suggestions. This can lead to programmer errors on our end.

Can you please reduce the accessibility of those methods to Internal or Private according to your usage please?

-- Last Second Edit --

I just checked. You don't even use these methods privately. Why are you pushing these extension methods into your customers' code?

Please don't tell me to manually modify the accessibility of these methods in your code. Doing so would make my 3rd party maintenance job very hard in the future.


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Problematic Curvy API - by XtroTheArctic - 09-18-2023, 12:07 AM
RE: Problematic Curvy API - by _Aka_ - 09-18-2023, 10:19 AM
RE: Problematic Curvy API - by XtroTheArctic - 09-19-2023, 05:43 PM
RE: Problematic Curvy API - by _Aka_ - 09-20-2023, 09:29 AM
RE: Problematic Curvy API - by SAMYTHEBIGJUICY - 10-14-2023, 12:39 AM
RE: Problematic Curvy API - by SomeGuyEight - 10-14-2023, 04:48 PM
RE: Problematic Curvy API - by XtroTheArctic - 09-20-2023, 03:25 PM
RE: Problematic Curvy API - by _Aka_ - 09-21-2023, 08:40 AM
RE: Problematic Curvy API - by _Aka_ - 10-16-2023, 08:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 11 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 5 03-27-2024, 07:25 AM
Last Post: amutp

Forum Jump: