You need to sign in or sign up before continuing.×
The forum is deprecated and will become read-only.
Join our Discord or use GitHub Discussions.

Up Voting System

About

Discuss the up voting system used for kata, kata solutions and comments.

Discuss:

  • Please sign in or sign up to leave a comment.
  • Cameron637 Avatar

    +1 to needing to be able to downvote "best practice" on a solution

  • ilan1009 Avatar

    People really just upvote the shortest answer for "Best Practices" even though there is a "clever" option.

    Golfing is fun, but not a good practice

  • spenser6131 Avatar

    +1 to the pool of "Please implement solution downvotes" suggestions. So tired of seeing terrible solutions snowball to accumulate insane number of "best practice" votes simply because they are cryptically short.

  • manikaran Avatar

    didn't know where to post this, so feel free to delete it after solving. This user has multiple meaningless offensive comments across the site, most of them in russian. Like "die b***", "you are c***". His nickname can be translated as "N*** are f***". Can he be banned or anything? Thank you https://www.codewars.com/users/%D0%9D%D0%B5%D0%B3%D1%80%D1%8B%20%D0%BF%D0%B8%D0%B4%D0%BE/comments

  • blindvigil Avatar

    Seems there must be a way to view which of our code submissions received the upvotes?

    It would seem a shame not to be able to locate such invaluable information.

  • Phoenix_369 Avatar

    Why can i not upvote 'best solutions' or 'clever solutions' ?

  • Lurn2Kode Avatar

    Your site should allow downvoting kata solutions. Without downvoting, there is no active check against upvoting.

    If someone is able to come up with a solution, then it's great that they were able to solve the kata. However, I see solutions upvoted for "best practices" when they clearly lack actual good practices, such as proper indentation/spacing, early returns, and meaningful variable names. I also see solutions that take the naive approach (such as unnecessarily diving into nested loops instead of leveraging a mathematical formula), but they are upvoted for being "clever".

    If solutions are upvoted for "best practices" when they lack best practices, or upvoted for being "clever" when they are not clever, then new programmers will be misled into thinking that bad solutions are actually good. I have several years of professional experience, and I think that this site has a lot to offer to new programmers, so I look forward to seeing it grow. Once again, please allow downvoting kata solutions.

  • ShantanuTK Avatar

    Hi, I am new to Codewars. Joined just 2 days back. I would like to vote on solutions that I find to be interesting but for some reason I am not able. Is it will you have be above a certain kyu to be able to vote or something of that sort? Please let me know is there any way I can vote besides clicking on the button

  • soggybiscuit Avatar

    Does any of the Mods(or whoever makes decisions) read these? There is alot of feed back for the upvote system and nothing has been changed.

  • Arya_Poddar Avatar

    How to check which of my solutions got Up Votes

  • Kischy Avatar

    Why can one vote for his/her own solutions? Voting your own solution should be disabled in my opinion.

  • youbou12 Avatar

    Hello , Please some one help me to solve this problem :

    Les équipes d'acrobates font partie de la culture marocaine, elles jouaient dans les marchés traditionnels pour distraire les gens. Une des scènes les plus incroyables est quand ils se mettent debout les uns au dessus des autres pour former une sorte de pyramide.

    Une pyramide de hauteur L est formée de la manière suivante : Une personne au sommet se tient debout sur les épaules d'une autre personne, qui elle tient debout sur les épaules de deux autres personnes, puis 3 et ainsi de suite.

    On souhaite savoir quel est le nombre d'acrobates qu'il faut pour former une pyramide de hauteur L.

    Input : 2 6 3

    Output: 16 4

  • soggybiscuit Avatar

    I agree with alot of the other indiviuals in this discussion on the point that there is way to many upvotes for hard to read, hard to maintain and hard to understand one line code solutions. Just because you can do it in one line using lambda or list comperhension does not always make it the best practice, cleaver maybe but definitely not always the best practice. This is teaching new individuals like myself the wrong way to code. If you submit some of these solutions to a company in real life you are liable to be laughed out of the room. My suggestion is to remove the upvote capabilty from individuals until they reach a level of 5 or 4 and hopfully by then the will understand the difference in cleaver and best practice.

    Maybe have to submission for each kata, one for best practice and one for cleaver.

  • Vim_Tim Avatar

    I agree with many other comments here: easier Katas are flooded with inefficient, upvoted one-line & code golf solutions. There doesn't seem to be enough incentive to write "Best Practice" solutions that are simple, performant, documented, robust, & readable.

    Concise solutions aren't inherently bad, but they're currently overrepresented. I believe Codewars should add more incentive for "Best Practice" solutions, including good runtime & memory performance. As far as I'm aware, Codewars is the best code challenge website for learning programming languages & implementing comprehensive unit testing. There are other websites better suited for concise solutions.

  • MaxKlaxxMiner Avatar

    Hi guys,

    what do you think about having a new Voting category: funny I always see ridiculous solutions to simple problems that are legit funny, but get upvoted with smart or best practice, which does not really fit.

    Plus side of this is also that I can then sort by funny rating if I am in that mood :D

    Best, Max

  • CindyBillick Avatar

    I need helo with Level 8 C#

  • tonylicoding Avatar

    Upvotes for katas should only be permitted for people who have completed the kata itself. See, some of my katas have gotten downvoted 3 times in less than 5 minutes with no new solutions. People make multiple accounts just for this purpose I guess. Also, for the people who have _ * the voting power, can those votes be made _ * as much?

  • Barnab Avatar

    I understand that the 'Best Practice' button is subject to some misuse. That begs the question: how can one who is new to programming find proper role models?

    Good examples are an excellent resource for learning, but mistaking a bad example for a good one can actually lead one astray! If I cannot trust the 'Best Practice' score, is there a more reliable way to figure out which solutions are ones to be inspired by?

  • Scia52 Avatar

    Up voting is inherently cancerous and promotes hivemind groupthink instead of individuality.

  • Problemsolver2909 Avatar

    The code runtime should also be mentioned beside the code in solution section so users can know which method is faster then other. It may also help them in realising which solution is the better one.

  • WestwardLand968 Avatar

    After seeing all those comments below, I think the ability to upvote solutions should be an unlockable privilege. Many users are just voting one-liners that are unreadable as best-practice. I am not saying they are bad solutions, but as the current state stands, a significant amount of users aren't clear on what is 'best practice'. Best practice is maintainable code that is easy to read, while being performant at the same time. The clever votes do not seem to have a problem to them, because nearly everyone is trying to write clever solutions.

    In my opinion, a user needs to solve a given amount of katas before they can upvote a solution. Why? The more katas you solve, and the more solutions you look at, you gain a better grasp of what is best practice and what is clever, and you can (hopefully?) define a fine line between these upvotes. Honor should not be used as the unlock threshold, as one can complete a few 1 or 2 kyus and gain a great amount of honor in a small amount of katas.

  • silkcw Avatar

    Is there any way to better enforce (or enforce at all) the votes around best practise? It seems right now people just favour a clever approach and deem it also best practise; which it never is as far as I can see.

    Best practise is readable/clean, re-usable and fast but not necesarilly clever. There are plenty of example on good conventions, such as google (for js as one example): https://google.github.io/styleguide/jsguide.html

    Squishing code into one line with no comments should never, ever be flagged as best practise.

  • heron1 Avatar

    Why are slow solutions often the #1 voted just because they contain the fewest lines of code? In terms of efficiency for the end user I'd be interested in seeing a category that solves a problem with the minimal execution time. An example of this is in C# where nearly every solution uses LINQ, which is slower than non-LINQ based solutions despite it being shorter.

  • BenM61 Avatar

    Can I do something so people will see my solutions? It feels like the first dozens/ hundreds of people, or the ones with truly great solutions gets upvoted, while the others can't realy get "clever"/ "best practice" upvotes. With katas that has over 20K submitters, how can someone see my try?

  • mikelitoronto Avatar

    How can I upvote a kata? Thanks!

  • Smiljana_ Avatar

    First, I have problem with running program because I thought that I had to write the main function, so my program made a mistake. I did not find instructions. Luckily I solved the problem.

  • MisterL Avatar

    It seems to me that when a new Kata in Beta is downvoted 5 times, it is immediately sent to retired with no ability to re-enter the beta process (for what I know, at least) This is very discouraging for 2 reasons:

    1. Katas may be denied without the author ever receiving feedback, if the first five users silently downvote it
    2. If the author does receive feedback, the Kata is likely closed before he can fix it

    I would recommend forcing people to leave a comment if they give negative feedback (only for Katas that are in Beta of course) and maybe increasing the amount of negative votes required to at least 10, or giving an easy option to re-enter the Beta phase.

  • Maccabeus Avatar

    Can the upvote system for best practice be removed for beginners? I get that most of the newbies up-voting unreadable one-liners will be weeded out in the real world. But these counter-practice solutions encourage very unreadable code that is bad for anyone trying to learn a language and learn it well.

  • rowcased Avatar

    Is there any way I can know about a downvote? As in what code or comment got downvoted? I seem to have lost a point but I don't know why. Perhaps I could learn from my errant behavior, right? Thanks all.

  • codepill Avatar

    What does "How satisfied are you with this Kata" ask? Is it asking about how do you rate the Kata ? Or is it asking how satisfied are you with your performance on this Kara or maybe how comfortable are you with solving this kind of Katas ?

  • rowcased Avatar

    PLEASE make it possible to know which code solution has been UPVOTED. I think people would learn more about their specific skills this way.

  • nnn88 Avatar

    Would be good if there was a tracker or notification if one of our solution gets upvoted.

  • authentical Avatar

    What qualifies as an upvote? I vote Clever and Best Solution sometimes... but my Solution UpVote stat = 0

  • Botwinka Avatar

    After submiting Kata I usualy view solutions of other users. While viewing comments, I can click "View Solution" button and then solution of commenting person shows up. I can't upvote this solution when I think that its best practice or clever. I cant search Solutions by user. Only workaround is following selected user but I dont want to do this. Function of searching solution by user should be added.

  • user1958379 Avatar

    How can I vote, write problem and what is Kumite. Please explain how to use codewars

  • pescadomuerto Avatar

    I would like to see a "downvote" option. Perhaps moderated to avoid abuse, and requiring a justification for the downvote. I see bad solutions upvoted as best practices, and that's not healthy for a learning tool.

  • snake2 Avatar

    So many have said it before, the top rated solutions are the shortest not the best. IMPLEMENT A TIME TO RUN NEXT TO THE SOLUTION. We need the overall best not the shortest code to learn.

  • Fianchetto Avatar

    With regards to the "How satisfied are you with this kata?" question:

    Is it appropriate to answer "Somewhat" for most kata and only say "Very" for kata you particularly like? I don't really feel "Very satisfied" with many of the basic kata I have completed or seen (particularly things that have many duplicates i.e. primes, averages, string parsing, fibonacci, cipher etc) but also don't want to be penalizing people who take the time to create kata that function properly and may be useful to other users.

    In other words is it appropriate to only give a "Very" satisfied rating to unusually creative or well-designed kata, or should this be the standard response to any working kata that has a decent description and appropriate test cases? Thanks for any responses and apologies if the answer to this is already written out somewhere else (I didn't see it in the Docs section).

  • brendanvos Avatar

    Users of beginner and novice rank kyu should not be able to vote for best practice.
    Simply look at the this solution: http://www.codewars.com/kata/reviews/54a5ebd237f4350faf00006c/groups/54a5f844478d8eb3f7000222

    This solution is simply brute forcing the problem and is horrible practice.
    My guess would be that this solution reached the top due to many beginners voting for it due to the fact that it resembled their solution.
    Many beginners simply aren't yet trained for the analytical mindset necessary to identify true best practices.

  • user9469384 Avatar

    Aviod popularity contests by not allowing low/mid level users tag for "best practice" or "clever" on Kata solutions. Just because a solution looks interesting or is insanely short does not mean it is sound. I would like to be able to rely on expert opinion in those realms. I'm here to learn so would prefer to trust as much of the presented opinion as possible.

    Case in point: the Kata "printer errors". The top solution is set up in such a way that it would error on a null. Several people have commented the same on it yet it sits at the top with 26 "best practice" and 25 "clever".

    https://www.codewars.com/kata/printer-errors/solutions/javascript

  • KSom Avatar

    I came across a couple top-voted solutions with run-times of O(n^2) or worse when even a O(n) solution exists to the given kata. Sure the linear solutions may be longer, but solutions with horrible run-times should not be promoted as "best practices".

    I don't know how to bring the upvoters' attention to run-time performance. But some general mechanism would be helpful to prevent people from converging on suboptimal solutions.

  • snormandeau Avatar

    I would suggest to have a MAX of points earned for upvotes per kata. I know the importance of rewarding those doing katas, but maybe a max of 50 would be more fair. For example, "testing 1-2-3" got 643 upvotes and it place the creator at position 160 on the leaderboard yet he only creating ONE kata, and solved about 100 katas. This make no sense. There are several katas similar to this.
    Thoughts?

  • zellerede Avatar

    HOW CAN I UPVOTE A KATA PLEASE???

  • nrjohnstone Avatar

    Great site, codewars is great, but too often I see solutions that are upvoted due to the "coolness" of it being a one liner ball of mud linq statement or similar.

    In the business world, code is read many many times more than it is written, and ease of digestion for fellow programmers is a very important aspect.

    I think a catagory for "Clean Code" to focus on things like clarity of naming, single responsibility would be great as well. Or a catagory for each of the SOLID principals.

    I care little for "clever" code that takes 20 times longer to pick apart, or badly named variables that increase my digestion time.

  • cjmochrie Avatar

    Is there any way to tell which of your solutions has been upvoted? I noticed I got some points for this but have no idea which of my (usually terrible) solutions was somehow marked as clever or best practices.

  • justintanner Avatar

    I love codewars! It's a great site. I'd like to focus on voting on solutions. Right now we have two upvoting options "Best Practice" and "Clever". I feel these categories miss a very important aspect of solving algorithms -- time and space complexity.

    Many solutions with poor time or space compexity are often voted up because they are one-liners. If an algorithm can be solved in 1 line but have O(n) space complexitiy (eg allocating an n-sized array) vs 2 lines and have O(1) space complexity (eg a single counter variable), then the 2 line solution should be voted to the top.

    We could use the existing voting options to vote-up algorithms with better time or space complexity. But maybe this is an opportunity to reconsider what we care about in regards to solving algorithms.

    Do we care if a solution is "Clever" or more vaguely a "Best Practice"? Or do we care about code readablity, time complexity and space complexity?

    Also we can put actual numbers on the complexities, instead of voting we can rate an algorithm with it's Big O notation. O(1), O(n), O(n^2), .. etc

  • colin-jack Avatar

    I think downvotes should be supported. I can understand why you haven't added them but to me the current system doesn't seem to me to be working, I say that because the quality of katas is highly variable and some of them are surprisingly poor. I have logged comments for some of them but really the best solution would be to allow me to downvote and force me to add a comment for the author explaining my issues. That way the author gets feedback and I have done my bit to ensure other people know that there are potentially issues with the kata and that they might want to consider skipping it.

  • ScRuFFy Avatar

    I sent the suggestion through the feedback chat.

    but what I was thinking is sorting the results from fastest execution time to the slowest .... that way if your code is really good you will already be at the top, until someone downvotes it ?

    (the reason I would love this is for learning purposes, I am new to programming and effient vs fancy is a big dilema to people learning.)

  • stealthguy Avatar

    There needs to be a better way for newer solutions to get upvoted.

    I feel that some of my solutions are done better than some of the top voted solutions, but I'm at the end of the pile behind everyone and their mother who just started learning (no offense, this is a learning environment which I support). So no one will look at my code and upvote/comment/critique.

    It would be so much better if solutions could be sorted by runtime or overall efficiency, instead of upvotes.

    Thanks!

  • MMMAAANNN Avatar

    There is now a paradox with voting.

    Most of the katas are currently actively upvoted during beta and rarely upvoted after that.

    Now there are some ancient beta katas that don't get approved due to unresolved issues (e. g. because it is a duplicate of another kata), and such katas have significantly more votes than their similar counterparts who finished beta early.

    That leads to a trend where high-quality katas usually get less votes than katas with issues. This is not good.

  • RVdeKoning Avatar

    The button to upvote the Kata could be more prominent. It took me quite some time to notice that thing. I also think this encourages people to upvote an interesting Kata. At the moment, most Kata's get between 5% and 20% upvotes from the warriors who completed the Kata and I think this is not a good representation.

  • Gerenatian Avatar

    I think it would be nice to be able to sort solutions based on runtime. Any thoughts on the possibility of this?

  • dlz Avatar

    Shouldn't we be allowed to downvote solutions (most importantly best practice vote) as we can with comments? To compensate for inappropriate upvotes.

  • Wintermute Avatar

    Could someone explain to me how upvotes on katas work? It seems like sometimes I can upvot katas and sometimes I can't, with no discernable rhyme or reason.

  • constablebrew Avatar

    I thought a bit about how to sort solutions. Here are my design considerations:

    • New solutions should generally sort to the top (this implies some sort of decaying score over time)
    • Upvotes for solutions should move the solution toward the top
    • Some upvotes are worth more than others - highly ranked users upvoting a solution should give the solution more of a boost than lower ranked user upvotes. However, this boost shouldn't be overly dramatic such that it makes lower raked user upvotes inept.
    • The solutions page should serve to expose a blend of solutions to those who have just solved a kata. Viewing both excellent and poor solutions is educational.
  • JoshBrodieNZ Avatar

    At the top of the discussion page for a kata there's a count of upvotes, type of kata, number of times completed. Intuition had me expect the upvote count to be an upvote button itself and it took me a while to find the up vote button on the other side of the page. I think the upvote count should be a button so it's consistent with the way upvote counts and displayed next to posts, solutions, etc.

  • Jonah Avatar

    Is there any randomness to the way solutions are displayed? If not, it means there is a huge bias towards existing upvoted solutions which essentially prevents new, better solutions from ever climbing the ranks. The system should work similar to Hackernews comments, where new comments start at the top, and then using an algorithm based on avg upvotes per view, start falling back down, sometimes very quickly, and are replaced by the already upvoted solutions.

  • constablebrew Avatar

    I think the Reddit style is nice and it does indeed feel good to see your own vote impacts your comment.

  • user527539 Avatar

    I think all comments should be considered up voted by default by the person who made them, reddit style. That avoids any dilemma over whether you should (or if it's appropriate to) up vote your own comments.

    I don't know if the system at the moment already ignores self up votes (for the purposes of honour and such) but even if it's merely cosmetic I think it would be clearer if it just defaulted to up voting your own post.