In this case, the title describes what the code about. It's just missing the "Please tell me how this could be better."
I'm not saying it's a high quality question, I'm just not convinced that it's off topic if adding "Please tell me how this could be better." would make it on-topic.
I wrote a sub to remove the blank entries in a row without shifting the cells around but it seems unnecessarily clunky and I'd like to get some advice on how to improve it.
Public Sub removeBlankEntriesFromRow(inputRow As Range, pasteLocation As String)
'Removes blank entries from inputRow a...
I'm trying to review and figure the issues in the above code. Any inputs to point out problems are welcome.
using namespace std;
typedef basic_string<char> string;
class CHighLow
{
public:
CHighLow() : nCurLow(0), nCurHigh(0) {};
void add(int nHigh, int nLow)
{
if (nHigh
I'm extremely amateur when it comes to C++ in general, but I wanted to make a little "Pyramid Escape" text based game. I'm not done whatsoever but before I continue I want to see what I could possible do differently.
//
// main.cpp
// TextFiles
//
// Created by Neal Carico on 3/12/15.
// Co...
I've implemented a table view controller for the purposes of subclassing. The table view controller implements a pull-to-refresh which will automatically reload the table view's data. I am looking for general feedback on my class.
DXYBaseTableViewControllerHD.h
#import "DXYBaseViewControllerH...
There is nothing in the docs that says rawQuery will not return null. I would be especially concerned about that if the query is not valid SQL. If I was code reviewing this I'd tell them to put a null check in, in case there is a null return from rawQuery. There's never anything wrong with defensive coding. — Gabe Sechan2 mins ago
I recently attempted to win this contest: https://www.freelancer.com/contest/Build-a-Website-for-an-Irish-Pub-180934.html, but unfortunately, I didn't win the job.
The winning web is here: http://nguoivietcode.com/irishpub/ and my idea is here: http://anagmate.moxo.cz/hogans/
My question: I fee...
Let's start off by acknowledging that this is a partially religious debate.
It is my point of view that testing private methods is something you should often avoid, but there are exceptions.
Why shouldn't I test private methods?
Because you're testing whether or not your application works, no...
so pretty much if I want them private I just do that after I am done testing. maybe I need a refresher on the public versus private aspect to see if I am really thinking clearly on the whole private things.
Haven't used code review before, but figured I'd put this one out there.
I have a set of API endpoints where the URL is not standardized, so I could either get "api/auth" or "api/auth/" (may or may not end with "/"). I'm 'registering' the endpoint, plus the HTTP Method that comes in, so I can ex...
I'm using a simple query to list the value of two fields in a database
like "select number, name from vedette order by name".
This query is use each time someone use the web site.
I got the feeling that postgreSQL perform the query from the first row to the last each time someone enter the site.
...
I'm just learning Haskell and I wanted to know if I'm going in the right direction with my solving of the Haskell 99 problems. The file of interest is here which I've also reproduced below.
module OneToTen where
{-- Problem 1: Find the last element of a list. --}
myLast :: [a] -> a
myLast [] =...
Q is a fictional character in the James Bond films and film novelizations. Q (standing for Quartermaster), like M, is a job title rather than a name. He is the head of Q Branch (or later Q Division), the fictional research and development division of the British Secret Service.
Q has appeared in 20 of 23 Eon Bond films; all except Live and Let Die, Casino Royale and Quantum of Solace. The character was also featured in the non-Eon Bond films Casino Royale (1967) and Never Say Never Again.
== Novels ==
The character Q never appears in Ian Fleming's novels, only the Q Branch is mentioned; although...
@JeroenVannevel It's got some great ideas and concepts, especially from a physics standpoint. I just wish they hadn't spoiled the whole thing at the end.
@JeroenVannevel The one thing that doesn't really add up is the wormhole thing. Which you can go into a wormhole/blackhole and come out somewhere, but according to Stephen Hawkings, you would come out like a plate of spaghetti.
@Hosch250 In a sense, yes. Except the black hole's gravitational pull is not necessarily stable, and the black hole really doesn't care what shape you are when you come in. It would probably tear you out bit by bit as you spiral into it, rather than compressing you as a whole.
A black hole is a mathematically defined region of spacetime exhibiting such a strong gravitational pull that no particle or electromagnetic radiation can escape from it. The theory of general relativity predicts that a sufficiently compact mass can deform spacetime to form a black hole. The boundary of the region from which no escape is possible is called the event horizon. Although crossing the event horizon has enormous effect on the fate of the object crossing it, it appears to have no locally detectable features. In many ways a black hole acts like an ideal black body, as it reflects no light...
The little animated simulation there kind of shows what would happen
@DJanssens @all If you like black holes and such, I made a tune some time ago that has samples from Stephen Hawkings about black holes. Go here and click on Dark Matter to listen and/or download free
Cygnus Loop is also inspired by space, though does not contain any words.
I'm sorry that you haven't been given this comment before, but I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information. — Simon André Forsberg17 secs ago