@Mat'sMug Set fire to everything. The tech ops guy's desk. The guy himself. The mails. The mail server. The water cooler. EVERYTHING WILL BURN IN GLORIOUS FLAMES!
I'm wondering something, I upgraded my 14.3 to 15 at some point, it shows 15 when booting, but somewhere in the executable it still shows 143eap along those lines
I made an API using ASP.NET WebAPI technology, and I'm trying to make the ApiControllers as thin as possible.
In my ApiController I have a _someService object, which serves as a Service Layer - contains methods which interact with my database using DbContext.
I would like to know if my solution...
@EricStein Seems like mine standard is not the same as your standard coding, witch is fine. There are many standards, your way, mine way and even other ways. It's not wrong to know how you can improve code and certainly not wrong to code it like that. — chillworld15 secs ago
pffft SO user who think his way is the only best way :(
Disclaimer: While the code in this question looks extremely long, I'm really only interested in review in some small parts of it. While I would sure appreciate someone going crazy and reviewing it entirely, this is certainly not needed. I included the full code so it can be run and tested.
I...
@Vogel612 I remember years ago when my team would fire up the Intel burn test on our machines when it got cold. It would raise the temperature of the room by 5-10 degrees.
I'm working on a Django Twilio app, and I believe it's coming along well. I just want to improve my code writing skills. How can I improve the below code?
def save_number(request):
from_number = request.POST.get('From', '')
try:
obj = SaveNumber.objects.get(phone_number=from_number)
if o...
Sorry, your question is too broad for Stack Overflow; I've migrated your post to Code Review, where they specialise in providing feedback on working code. — Martijn Pieters ♦25 secs ago
can you give an example why it seems "messed up" for code reviews? background: I'm quite satisfied of the way IJ does optimize imports. — MWiesner58 secs ago
Ask the person who banned it in your code review? — jpa35 secs ago
Hi Felipe, welcome to Stack Overflow! Since you're basically asking for a code review of working code, I suggest you move this to the codereview.stackexchange.com site instead. Stack Overflow is more geared to finding answers to very specific problems or errors. — Dan Bowling55 secs ago
Thinking back, it is the only software that doesn't come as part of Office or Windows that MS doesn't blow Apple's system out of the water - because MS doesn't have it at all.
I've created a program that will pull spreadsheets out of a large tarball.
How it does this is, first it specifies the file name through the "folio" number which is given as an argument when the program is called. From there it runs a bash command that will list a text file containing the inform...
NumPy arrays are great for both performance and easy use (easier slicing, indexing than lists).
I try to construct a data container out of a NumPy structured array instead of dict of NumPy arrays. The problem is the performance is much worse. About 2.5 times as bad using homogeneous data and abo...
This is my first attempt at refactoring - FindIngredients and I'm wondering where I can improve. The github link in the code directs to the project that still has the old code.
The user has data validated selections to make in cells B2 through H12 on Sheets("Plan"). Each type of meal has certain...
Since this question asks about a specific performance issue with NumPy rather than for a general critique, it has been migrated from Code Review to Stack Overflow. — 200_success28 secs ago
Here is a code I developed some time ago. I wonder if there is anything I can do to improve it. It works for non-loopy mazes which was already my goal.
In the maze defined, True are the open ways and False are the walls.
The main subjects that I gladly accept suggestions can be listed like this...
I've just started a new class learning Java, and since it's been a long time since I've programmed in it I thought I'd put up my first project to get back in the swing of things. Here is my first assignment:
Welcome to the Bridge Crossing Problem. Person Pn can cross the bridge
in n minute...
What is the code supposed to be doing? Feel free to ask on Code Review, but be sure to include as much code and context as possible, and tell us more about what your code is doing, how it's doing it, and why it's doing it that way. — Mat's Mug47 secs ago
question from last exam :
//fill in
struct box{
//fill in
T a;
};
int main(){
box<> b1 = 3.14;//its all about this line
box<unsigned> b2 = 13;
double d = b1;
unsigned u = b2;
}
How to fill this code ?? I've got poroblem only with this first line of main function .
Because somone don't se...
I have coded this mess of JavaScript and a bit of jQuery. Everything here works perfect as intended, however it is a real mess. What would be the best way to clean this up with best practices and such?
class new_class
attr_reader :shop_id
SECRET_API_KEY = "asdasdasQWRESFSDFVSDFASDFSADFASDF...
Below I have implemented a class that will generate HTML to build the structure for a navigation menu.
define('BASE_URL', 'http://localhost/site');
class Navigation
{
private $doc;
private $xpath;
private $rootNode;
/**
* Initialize navigation.
*/
public function...
I am starting to get into OOP, I think. Just want to know if the below code is good practice. Is this how I should be using my controller and model, in it's simplest form?
Controller:
public function index()
{
$appointmentsByLabel = Appointment::findAppointmentsByLabel('2');
$app...
I have coded this Ruby code. Everything here works perfect as intended, however it is a real mess. What would be the best way to clean this up with best practices and such?
class new_class
attr_reader :shop_id
SECRET_API_KEY = "asdasdasQWRESFSDFVSDFASDFSADFASDF123123ASDASD$%$%"
...
I've been working on a small Java project by myself for a department that does not do a lot of software development but mostly database stuff.
I showed my boss the code I've been writing and he saw that in some classes there were some static variables. He then told me to put the static variables...
Let's say I have a program that uses another language/shell commands, to do the most important aspects of said program.
Would it be bad to use the tag for the language that's doing the important aspects?
For example, I have this Ruby code:
puts "Hello world!"
`echo "Hello World!"`
This examp...
I have a table containing about 30k rows of data and there's several table associations. The problem is that there's like 18 columns, and each column requires 1 db query.
Here's an example of what I'm doing
if col_num == 0
tmp_string_text = finding_phase
elsif col_num == 1
tmp_string_te...
been messing 'bout with JS when I stumbled upon a wall.
Basically I want my HTML code to run my Js code forever or well, for a very long time at least.
How can I accomplish this?
HTML and Js file down below, I appreaciate any answers that can help me deepen my understanding in JS and HTML in g...
Unfortunately, asking advice about code not yet written is Off-Topic on Code Review, you may consider taking this to Stack Overflow, but if you decide to, please read their on-topic guide and help center before posting. — Quill15 secs ago
Why does one need elevated permissions for one form of deletion and not for the other? Can TRUNCATE be used for malicious purposes other than throwing data out the window?
i am still kind of new to C++, i have been trying to make a basic Blackjack game using a struct for the cards and a list for each players hand. After a lot of reasearch on std::list and it's functions i have come to this result of my base functions (Value system and main is still not finished, ju...
I am PHP programmer whom only recently started to play with a bit of JS/jQuery. Because of that my code is probably something that most of You hardocding JS programmers would see as disgrace (again I am far from being one of you).
I wanted to create simple but quite customizable "tab > content" ...
@greybeard and NayukiMinase, actually no... This question is not on-topic for Code Review as the question is asking about how to write code yet unwritten, inserting the values in the back rather than front. This type of question is against the on-topic rules of Code Review. — Quill56 secs ago
I just started looking in to LESS. Mixins looked like a nice feature, so I made some simple ones to handle my responsive css:
.phone(@style) {
@media only screen and (max-width: 420px) {
@style();
}
}
.tablet(@style) {
@media only screen and (min-width: 421px) and (max-width...
If by issues you mean broken code, then no, Code Review is not for broken code. If by issues you mean spaghetti code, then sure, that's okay — Quill10 secs ago
I want to make the Header Graphic so that it changes when the page changes views. is that done in the CSS? well I guess I haven't added a header graphic yet either....