R
R
roskoshinsky2015-09-08 07:56:23
Python
roskoshinsky, 2015-09-08 07:56:23

What is the best way to organize distributed secure programming?

Hello. A question of organizational order. A software product is being developed. The programming language is PHP. The product is made up of modules. Each module is a separate directory. What is the best way to organize access to the project for hired developers, provided that it is necessary to prohibit access, including reading, to other modules? Nothing better than Zend coding comes to mind, however, I would like something like github but with options for a similar distribution of rights.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-04-01
@NeiroNx

If the json file is error-free, then isn't it easier to parse it with the json library?

import json
try:
      data = json.load(open("file.json","r"))
except:#кавычки должны быть двойные 
     with open("file.json","r") as f:
          data = json.loads(f.read().replace("'","\""))
for k,v in data.items():
      if k=="damage":
            summa = 0
            for k1,v1 in v.items():
                   summa+=v1
      #############И так далее
#или
summa =sum(data["damage"].values())

and it's possible like this:
>>> data = eval("""{'camps_stacked': 0,
   'creeps_stacked': 0,
   'damage': {'npc_dota_badguys_siege': 291,
    'npc_dota_badguys_tower1_mid': 46,
    'npc_dota_creep_badguys_melee': 3599,
    'npc_dota_creep_badguys_ranged': 1677,
    'npc_dota_hero_bounty_hunter': 1709,
    'npc_dota_hero_dragon_knight': 2809,
    'npc_dota_hero_ember_spirit': 1463,
    'npc_dota_hero_phoenix': 3557,
    'npc_dota_hero_troll_warlord': 1678,
    'npc_dota_observer_wards': 8},}""")
>>> sum(data["damage"].values())
16837
>>>

E
Evgeny Kolegov, 2015-09-08
@KollegOFF

Hello!
How about this solution: take github (well, or any version control system of your choice), only make a separate repository for each module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question