Does it make sense to create code so flexible that it never needs to be updated?

I am currently debating with my colleagues around how I should develop an API to be used by my department. In particular, I was tasked with writing an API that will serve as a wrapper facade for accessing Active Directory information, taking into account the needs of my company / department. I know that open source wrappers facades already exist, but this is not the essence of this issue and is simply used as an example.

When I presented my design proposal to my team, they shot me because the API was not "custom". They claimed that they did not want the API to communicate between the "Phone Number" and the "Obscure Active Directory Submission View of the Phone Number." Everyone at the meeting (except me) agreed that they would rather ask, "What Active Directory field is used for the user's phone number?" And connect it to the appropriate applications (LOL!).

They asked me: "What if our company decides to use a different field for a phone number, and you were not there to make changes to your source code?" In the end, they admitted that they were afraid to be instructed to change the code of another, even if the code was intact and had extensive unit tests. Every senior IT professional in my department agreed.

Is this really the right attitude to software development ?!

+3
source share
8 answers

, , , , . , , - - , , , .

+5

, . .

, . .

" phonenum", , " phonenum1" " phonenum2". . , " Home_Phone", " Work_Phone", " Cell_Phone", . , , ( /), .

, " ". , , " ", , , . . , , .

, , . . , , , .

, () . ,

  • " "
  • /ip change
  • ,

. , , - , .

, . .

+3

" ", , .

2 , , , .

, , . , , , .

+1

, : API, , , ActiveDirectory.

, . , , , , , , , .

+1

, , , . . , . , , , , . , . . , , , , .

+1

, , . , .

, API, ActiveDirectory, , , / .

API, , .

, , , , , . , , .

+1

, , API . API , - , , , , , , , , LDAP .

However, if the purpose of the API is a simple set of classes that abstract the details of access to Active Directory, but do not access which properties, then what your peers pointed out is the way to go.

Any approach is not necessarily right or wrong, so it ultimately depends on your general reasons for creating the API in the first place.

0
source

Source: https://habr.com/ru/post/1712805/


All Articles