Comments (9)
Maybe gain()
and lose()
?
Reputation::gain(10);
Reputation::lose(5);
from council.
"reverse" is more like inverse of "award", that's why I think it would be a more appropriate use for this specific scenario as well
public static function reduce($user, $points)
{
$user->decrement('reputation', $points);
}
However, if we ever want to, for some reason in the future, reduce the reputation for whatever reason that's not directly related to the "awarding", it would be more appropriate if it was left named "reduce". It's more broad. Not sure, though, which scenario this would happen to haha
Anyways, I don't mind it being named "reduce", because it leaves it more open for future additions, but I guess it could always be renamed as well
from council.
How about forfeit? https://www.wordhippo.com/what-is/the-opposite-of/award.html
from council.
@eoghanobrien I originally used forfeit
in that video, but then changed it. It made me think that you're forfeiting all of your reputation, and you're not.
Not sure about reverse
. I think there's still a better term.
from council.
Maybe award
is wrong too. Maybe your reputation grow
s.
Reputation::grow();
And then reverse would be...
https://www.powerthesaurus.org/grow/antonyms
Detract? Shrink?
from council.
@JeffreyWay @eoghanobrien I usually try to keep it as simple as possibile in these situations.
I'd probably end up with just Reputation::add() and Reputation::subtract()
Or maybe addPoints() and subtractPoints(), just to be a little more specific.
from council.
@JeffreyWay I think you're right, changing award
is probably a better approach but then why not simply increase
and decrease
. It's little less exciting perhaps.
from council.
@Lirianer that's definitely the best option I've heard.
from council.
Okay, we'll go with grow
and lose
for now.
from council.
Related Issues (20)
- No consistency in routes/web.php HOT 3
- Every Laravel project redirects to /threads after installing council HOT 1
- Modify Reply path() method to generate the correct URL for paginated replies.
- Truncate thread body in thread.index HOT 3
- User notifications throw 'undefined' error HOT 2
- Will this forum system be able to work without redis? HOT 5
- Vuejs Error 422 (Unprocessable Entity) on POST HOT 1
- @mention VueJs post error HOT 2
- Demo HOT 1
- Deleting trending thread HOT 2
- Shared hosting issue. HOT 1
- Responsive UI HOT 2
- Cancelling an edit on an already edited reply re-places old body.
- Reputation is not being reduced for user when a reply with a favorite is being deleted. HOT 1
- Admins cannot edit threads
- Is it possible to eager load isFavorited() HOT 1
- How to upgrade to latest laravel version? HOT 1
- translation for persian farsi language
- Are the replies not indexed in Google?
- Cloning into 'council'... error
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 council.