As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [code-length]

This tag is for questions regarding the amount of code used or to be used in a post.

Filter by
Sorted by
Tagged with
50 votes
0 answers
416 views

Code Review questions must contain code

As requested by Kaz and approved by the voters here on meta, questions asked on Code Review that do not contain code are now blocked. I've configured this initially as a three-line minimum (or three ...
Shog9's user avatar
  • 101
40 votes
5 answers
897 views

What is the appropriate length of a Code Review question?

While Stack Overflow questions often contain segments of pseudocode or purposely abbreviated code in order to make the question more palatable to other readers, for something like a Code Review, the ...
Billy ONeal's user avatar
  • 1,470
25 votes
5 answers
352 views

Do one-liners and other narrowed-down code qualify for a code review?

Every once in a blue moon, a question gets posted (often as a new user's first post) where the OP is asking a quite specific question about very minimalistic code, for example: ...
Mathieu Guindon's user avatar
25 votes
2 answers
287 views

Can we have collapsible code blocks?

I would like to see collapsible code blocks in questions and answers. This would be useful because sometimes the amount of code posted in a question or answer becomes so large (and necessary) that ...
Jeremy's user avatar
  • 539
18 votes
2 answers
434 views

Review for large chunks of code

I am migrating from small pieces of code to larger applications. All my code is public on github or simillar. As I am in the middle of this transition, I am not very intrested in reviewing chunks of ...
Paul92's user avatar
  • 175
17 votes
4 answers
400 views

Should I be asking shorter questions?

Background I've been meaning to ask this for a while, and this meta question prompted me to finally write something. I've read the answers to that question and the ones to which it links, and the ...
Sam Estep's user avatar
  • 1,757
16 votes
1 answer
149 views

Complete Review of Small Application

I have written a fairly small application (10 small classes). I have tried to follow best practices in terms of software design but I have a feeling it can be improved. It is acceptable for me to ...
user avatar
16 votes
1 answer
395 views

How long can code be?

First of all before, I hate the typical "codez plz" homework question. I hope this has nothing to do with that, but it is actually a class assignment. I won't post my code until it is completely ...
Trufa's user avatar
  • 221
15 votes
7 answers
228 views

One Question Per Question

I voted to close this question as being "Too Broad," on account of the fact that it's actually five, independent questions. At the very least, an answer would have to address all five questions, so it'...
Barry's user avatar
  • 18.4k
15 votes
1 answer
183 views

Can I ask for review for something specific without posting too much context?

I'm working on an Angular2 application and I think one very small, specific function (list filtering) needs improvement and I would welcome reviews. Essentially I iterate more times than I think is ...
msanford's user avatar
  • 401
14 votes
3 answers
315 views

Tackling overwhelmingly long questions

I'm wondering how some users handle huge amounts of code. There's a vba question out there right now that I would really like to review. However, as stated in the question - it's 1400 lines. I know ...
Raystafarian's user avatar
  • 7,149
14 votes
2 answers
351 views

My code is too long. How do I trim it down when code posted here is expected to function?

The code I would like to have reviewed, found here, is more than 30,000 characters long. I don't feel like that in and of itself makes it off topic, but removing code from it so that it can be posted ...
RubberDuck's user avatar
  • 30.8k
14 votes
1 answer
243 views

Should I attempt to have a large amount of code reviewed?

I'd love it if someone out there was willing to critique my code base on a larger scale - the thing is I can't imagine why anyone would actually want to. Do you think I'm wrong about this? Should I ...
Aaron Anodide's user avatar
13 votes
3 answers
179 views

"Function to erase a character in a string" question was unfairly closed

Function to erase a character in a string This question is currently closed with the hypothetical/stub/pseudocode close reason. Questions must involve real code that you own or maintain. ...
nhgrif's user avatar
  • 25.2k
12 votes
3 answers
497 views

Asking questions - including full code

In my first CR question, I was looking for feedback about my implementation of a graph data structure and an algorithm for depth first traversal, as I am studying these at the moment. Although I ...
randomusername's user avatar
12 votes
3 answers
353 views

What is the appropriate MINIMUM length of a Code Review question?

Obviously related to this, but I want to know the opposite. How short is too short? For example, this doesn't seem long enough to be appropriate for a code review: Highlight input if empty The ...
Dagg's user avatar
  • 4,531
12 votes
1 answer
273 views

How long is long code

I usually hang out at the JavaScript tag, with a mix of jQuery, HTML and CSS where the code reviewed are usually snippets, which run around 100 lines and code that needs micro-optimizations. These are ...
Joseph's user avatar
  • 25k
12 votes
1 answer
116 views

Would my Haskell Game-of-Life be too long to review?

I have written a small application in Haskell and I wish to get a code review. Since I'm inexperienced, I cannot really write a bullet list of things I'm not satisfied with in my code. It would just ...
darwish's user avatar
  • 275
10 votes
3 answers
117 views

May I post this Huffman tree program with several files?

I have been working on implementing a Huffman tree encoding program in C++ for a hobby for a while now. I just finished up with the code and, since this is a learning project, I would love to put my ...
DJMcMayhem's user avatar
8 votes
2 answers
170 views

Having an entire project reviewed

I have a small project I'm working on in an area I'm not comfortable with (web development). I would like someone to review my code. I can try to split it up, but I would prefer if someone looked at ...
Tums's user avatar
  • 85
8 votes
1 answer
96 views

How should I structure my post if my code is over 400 lines?

My code is around 480 lines and a little over 13,000 characters(12,000 if not counting spaces). It consists almost entirely of headers and implementation files, with a very short main.cpp. Should I ...
JensB's user avatar
  • 175
8 votes
1 answer
129 views

Solving wide code

This SE site has a lot of long code postings. Usually these are just copy pasted from actual source code. The maximum line width before a horizontal scrollbar appears, seems to be only 80 characters. ...
Steven Jeuris's user avatar
6 votes
1 answer
88 views

Is it okay to post questions that don't contain a full program/library?

For example, say I wanted to ask a question about memory efficiency regarding two versions of a structure I have in a specific language, but I'm only concerned about that one section of the program. ...
Braden Best's user avatar
5 votes
1 answer
100 views

How should really big code challenge submissions be reviewed? [duplicate]

As far as I am aware, a question consisting of a really big codebase is generally off-topic here, as our answerers are simply not able to put so much effort in it. I'd like to talk about a special ...
skiwi's user avatar
  • 10.6k
4 votes
2 answers
179 views

Is it appropriate to ask for review on an entire GitHub repo?

I have a Python application that I created a while back and I'm hoping to have someone with more Python experience than me look over the entire project and let me know if both the structure of the ...
Abe Miessler's user avatar
4 votes
1 answer
120 views

Requesting a review of part of a small project [duplicate]

I have a project of 300+ lines, however I only want to review a part of the project. The project is hosted on GitHub. Does that mean that I have to post the full 300+ lines and highlight that I want ...
Mohammad's user avatar
  • 1,212
4 votes
1 answer
708 views

How many lines of code are too much? [duplicate]

I've built an ASP.Net component, for example, which consists of a base class with 670 lines of code, a sub class with 180 lines, plus some code to illustrate it's usage. I think this is a perfect ...
Jeremy's user avatar
  • 293
4 votes
1 answer
154 views

How to get feedback on whole projects?

As far as I understand on Stack Overflow and Code Review, only smaller amounts of code are posted. It is expected to post the code there, and a whole project is way too much for one question. On a ...
Mare Infinitus's user avatar
3 votes
1 answer
129 views

Is it possible to get feedback on the structure of an application (with code posted)?

I've recently completed a (to a certain version, anyway) project in Python and am looking to get feedback on it. Problem is that I want feedback on how the project and the different components are ...
eccentricOrange's user avatar
3 votes
0 answers
62 views

My code with a small set of classes may be too much [duplicate]

I have a small set of classes that form an events system that I would very much like opinions on, but they're made up of a few classes that together amount to around 1kloc. I'm a little worried that ...
Hanii Puppy's user avatar
3 votes
0 answers
74 views

What is the upper bound for size of the code I can post on Code Review? [duplicate]

Suppose I'm writing a library and there are parts of it which I wish to be reviewed. What is the upper bound for size of the codebase (in characters, classes for example) which is considered to be ...
Adam Arold's user avatar
2 votes
2 answers
90 views

Project translation from Java to C#

I have translated a project from Java to C#. I want to have a review of this project as some of the results are not as desired though the code is executing successfully. How to share this project ...
Taufel's user avatar
  • 101
2 votes
1 answer
82 views

Where can I find an expert opinion on a large codebase?

I am a self taught developer that codes for fun, and I created a project that almost certainly has terrible code in it, but I would like someone who knows what they're doing (i.e. not me) to help me ...
Jachdich's user avatar
  • 181
2 votes
2 answers
82 views

Can I ask for a review of an entire library?

I am working on an open-source library that contains several source files. I would like to ask for feedback, not only for specific code in specific files, but also on the more general arrangement of ...
Erel Segal-Halevi's user avatar
2 votes
1 answer
201 views

What is the recommended length of the code for review?

I have code that is about 1000 lines long (and growing, as some features are not yet implemented and some edge cases unhandled), so posting it here likely would overwhelm people, even if it would be ...
reducing activity's user avatar
1 vote
1 answer
61 views

Does Code Review require OPs to provide an MRE?

I read and searched the Help Center. But I didn't find anything about MRE. Does it mean that Code Review doesn't require MREs?
leaf_yakitori's user avatar
1 vote
1 answer
84 views

Posting a whole project, ready for public review [duplicate]

Say I have an open source project hosted on GitHub or wherever, currently in the public review, testing, and bug reporting phase. The Asking page says: ...feedback on a specific working piece of ...
Oliver Yasuna's user avatar
1 vote
1 answer
57 views

Sharing code over a lot of files [duplicate]

I'm working on a multithreaded server and have a few questions regarding it, especially the best way of going around decoupling the server module (that manages the connections) from the application ...
GordonM's user avatar
  • 408
0 votes
1 answer
49 views

Seeking project wide input rather than modification of individual pieces of code [duplicate]

Does Code Review allow for posting (or linking to) entire projects? I'm not sure if this helps at all, but in my case, I am not looking for generic input, but rather I have a specific question about ...
qwerty's user avatar
  • 361
-3 votes
1 answer
78 views

What was wrong with my question? [duplicate]

My question eLearning webapp made with Django was recently closed for: Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that ...
Samuele B.'s user avatar