What is "hard-coded coupling"?

what is "hard-coded coupling"? Baidu looked at it but didn"t get the answer I wanted. Please tell me

Oct.14,2021

easy. Have you ever used redux or vuex? The sample code for action or mutation will advise users to maintain a file that exports several constants independently, for example:

export const SET_STAFF_TOTAL = 'SET_STAFF_TOTAL'
export const SET_STAFF_LIST = 'SET_STAFF_LIST'
export const SET_STAFF_TOTAL_LIST = 'SET_STAFF_TOTAL_LIST'

this is a way to prevent hard-coding coupling. Every time you modify a name, the place where you use the constant is changed. If you don't, the constant appears 10 times in your project, and you need to modify it 10 times.

The condition of

coupling is due to the generation of dependencies, which can be caused by a variety of reasons, and hard coding is one of them.


these two you need to understand separately
hard coding
coupling


although I do not have Baidu google, but I think Baidu hard coding and coupling can be understood.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e63742-45a35.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e63742-45a35.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?