Comments (9)
Makes sense, however if we changing this it might be a good idea to see if we can move some methods from dispersy.py to community.py.
For instance, creating an introduction request is clearly something a community is responsible for, not dispersy.py.
Same goes for receiving them etc.
from dispersy.
I agree with you, +1 for moving all message related methods from dispersy.py to community.py.
I'd still like your guy's opinion on the naming convention.
from dispersy.
I don't mind the create stuff, i guess it makes sense to have such a keyword for methods which create messages.
The dispersy prefix I dislike, i'd rather use the first option for those instead.
from dispersy.
I agree with @NielsZeilemaker
from dispersy.
I agree with using the first option.
Historically the naming convention for create, check, on, and undo methods was: create_MESSAGENAME, check_MESSAGENAME, etc. given that the Dispersy messages include the word 'dispersy' in their name, all these methods become: create_dispersy_aaa, check_dispersy_aaa, etc. When implemented in disprsy.py I choose to remove 'dispersy' from these method names, I'm not convinced we should do the same when we move this into community.py?
I do agree that having the word 'dispersy' everywhere isn't useful. Should we, to make things consistent, rename the messages themselves? I.e. 'dispersy-introduction-requesy' --> 'introduction-request'? This way we can keep the naming convention while keeping reasonable methods names.
from dispersy.
+1
from dispersy.
Any progress on this? I think it would improve the readability of Dispersy a lot if we could move some methods from dispersy.py to community.py.
from dispersy.
I've pointed Johan to this thread last week when discussing its merits. I'm waiting for him to say yay or nay on the time investment.
from dispersy.
Done, most of the dispersy prefixes are gone and all messages have been moved to community.py
from dispersy.
Related Issues (20)
- Test test_tracker in TestBootstrapServers is unstable HOT 1
- The upgrade procedure is not tested and goes back to version 1
- Generator only used to get one item? HOT 2
- TaskManager tests are hanging. HOT 2
- Refactor _resume_delayed HOT 1
- The libnacl submodule can be removed
- The add and add_keys in the bloomfilter contain identical code
- The test to check whether the bootstrap servers are up should be fixed
- Get rid of all the hard-coded sleeps in the tests
- meta_message table is filled with duplicates
- Linux unit tests pass on PR with error HOT 1
- Error when changing meta messages on community upgrade HOT 1
- The Dispersy tracker stress test could be part of our tests HOT 1
- Make Dispersy available on PyPi HOT 3
- Remove DoubleMemberAuthentication
- Bootstrap server test does not work anymore after n-hop sync HOT 3
- Infinite growing dictionary in Dispersy statistics HOT 2
- Add new release HOT 1
- Missing license HOT 2
- Speeding up torrent downloads in Tribler - Peer Video Club HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dispersy.