The following is my implementation of the absolute value function in the MIPS assembly language. I would very much like to hear constructive criticism of my code from you as well as any words of wisdom you want to pass my way. The code is heavily commented.
######################################...
The classic Chutes and Ladders game has a grid of 100 squares with various "chutes" (which send a player backwards) and "ladders" (which promote a player forward). The goal here was to randomly create a series of these chutes and ladders such that the net effect is that there are 50 more squares...
So I am just getting started with Modular JS and I am converting a spaghetti coded jQuery UI using the revealing module pattern.
My concern is, basically, am I doing it right.
tab_template:
<cfoutput><ul class="list-group form_wrapper"><li class="list-group-item form-group"><div class="row"><d...
Stack overflow is not the place for code reviews. Having said that, I would not store the index, you will have to update it when adding, deleting new groups. I would just track the id of the current group — Juan Mendes29 secs ago
Questions like this are better suited for codereview.stackexchange.com since you don't really have a programming problem. Note however that project structure is very subjective and will elicit a variety of opinions. There is no "one size fits all" — charlietfl1 min ago
This is a function that converts an integer value to a null-terminated string using the specified base and stores the result in a char array that I must allocate (with malloc). I have decided not to use malloc. Allowed functions: malloc. Loops: while Please review my code.
char *itoa_base(int va...
since these are all working code samples and you are trying to ask for comparison, this is probably a better fit over at code review. codereview.stackexchange.com — Claies32 secs ago
I have written some code that is designed to be an endianness utility for c++. It functions as I intend, but the code used in the conversion is somewhat complex and I would like to find a way to make the code more clear.
The Code:
#include<type_traits>
#include<cstdint>
#include<iostream>
enum...
My Code: https://jsfiddle.net/p2Lnf4tg/22/
Codes: 1, 2 and 4 "don't" let you highlight the image with your mouse.
What's the correct way of doing this, I saw these codes, but which one is right?
There are some many different ways to do this code I'm confused about which way is right.
If you w...
I currently have a system which loops through a bunch of my website domains and checks their status and sends me a notification letting me know if they are up or down. The stripped down version of the relay code is below, I've removed the email/DB update code etc.
It pings a transponder (a file ...
@200_success, please have a look at the edit history. IMO, OP's original title wasn't that bad. Though I believe "Transform a double loop with if statements into logical operations on arrays", describes the problem more accurately. — Stewie Griffin10 mins ago
Also, I am in awe that you're so generous to provide world class programming lessons to me/random strangers! CR is a whole different level than SO^^ — findwindow11 hours ago
@asteriskNinja Just a note. If you're going to recommend people go to Codereview, please point out that they will need to re-write their question to avoid it being closed. In this case, the OP would need to embed all the code that they want reviewed directly in the question. — Zak41 secs ago
@asteriskNinja Questions asking "What is best practice?" and questions containing pseudocode are both off-topic on Code Review. — 200_success5 secs ago
@StewieGriffin If statements describe what the code is, not what it does
We're not very interested in what the code is, because the review may likely change that. We're more interested in what it does, which provides proper context to any reviewers.
Interesting, that seems to be working quite well, and is just as quick as my switch. (Maybe even faster.) I think it's safe to say that this resolves my issue, and I'm not sure why I decided to do it the hard way. (I'm not sure how I missed that SO question. I guess I just assumed no one else has this issue.) — EBrownJun 12 '15 at 17:50
Well they put me in a different department today, from 1600 to 0030, because I hate my current department, and at 0030 they moved me back to my normal department.
@Zak That's a trifecta I do not want to take part in.
Maybe because Code Review doesn't have any relationships with other sites other than "This belongs on Code review" "NO IT DOESNT" "Thanks I've cross posted to CR"
3
SO and CR are like an old married couple where SO is the one making the rash decisions and CR is telling it off all the time
Programmers is the 40 year old, balding, middle-aged man having an existential crisis because he doesn't know what he is doing in this life or his purpose
BWT I thought I should mention that in my new job, if I do get it, a large part of it will be code reviewing code for security.
So CR has helped in more ways than one :)
The next stage is an on-site full day interview which will see how I mesh with the team, playing a few games of LoL with the team (Which has to be the best interview method I've heard of, lol) and individual programming interviews with a developer
I'm hoping that doesn't include Fizzbuzz since I haven't studied algorithms in a very long time
I wouldn't have issue with a fizzbuzz test, just a point of saying I have no idea what the programming interviews will have
The questions I was asked in the technical interview were very web-based, such as asking what sql injection/xss was, how I could prevent them, downsides, that sort of thing
Please help me improve this code.
Move snake using : a w s d.
(My compiler doesn't support initialization of index variables inside loops, so please ignore this part)
#include <stdio.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <ncurses.h>
#define...
After the last post had some minor improvements for me and the beta release was actually used for some things, I decided that the GUI was too ugly to continue like this and rewrote the whole GUI in JavaFX.
The Matrjoshka - Usage
This posed some challenges for MVC / MVP, because of some peculiar...
Case in point: I have about 10 tickets referring to the same issue raised on the same day AFTER informational communications were sent out explaining the issue wasn't working
Below Angular JS function in ng-class
$scope.highlight = function (row, column) {
var columnName = column.toLowerCase();
//Quantity Highlight
if (columnName.indexOf("units") != -1) {
//340b Provider ID and service Date C340B_flag
//duplicate RX ID...
@Vogel612 I needed to figure out what you mean with "Matrjoshka". I first thought some new strange framework until I understood that you mean that puppet.
I am working on an endless tower defence game in Unity. To keep track of money, damage, hitpoints and stuff like that I will be using BigInteger, which can represent arbitrarily large integer values. Unfortunately, Unity does not come with a BigInteger implementation, but I managed to find one on...
My dad's PC got wrecked pretty hard by that, it still runs and over the last months it has stabilized but I should really do a clean install after upgrade
For some reason the Windows Store is still totally missing on his PC