|
Duplicate of this question .
I'm learning C++ at the moment, and I'm coming across a lot of null-terminated strings. This has got me thinking, what makes more sense when declaring pointers:
char* string
or
char *string
? To me, the char* format makes ...
Started by Skilldrick on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
The only time I use the other format it makes....
Given that you can make multiple declarations on a single line it makes more sense to me the char* foo makes more sense when declaring a single variable.
Are pointers.
|
|
Linq to entities seems much easier and safer than entity SQL. Can you give an example where using entity SQL makes more sense than Linq to entities?
Started by tom greene on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Personally....
They can then move on to 'proper' LINQ to SQL .
It can be a very useful stepping stone for migrating your DBAs to a domain-modelling framework .
Entity SQL was the original language design for use with EF and bears many similarities with T-SQL .
|
|
Without going into too much detail we are looking to use XML as meta-data to describe constraints on properties (This is a cutdown example and XSD did not support our proposed complex model), there are two options being considered, which of the following...
Started by Student for Life on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
That said.
Plus it makes more sense semantically to my brain.
To parse and do error checking in.
|
Ask your Facebook Friends
|
Hello guys,
I think everyone is aware of -server command line JVM parameter. Does it make any sense while running Java application as Server??
I read that it does some more optimizations, and because of that, some of your Java code can behave differently...
Started by Nachiket on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The server JIT will run heavier optimizations on code earlier, which makes....
The -server flag makes the JVM more the just-in-time compiler to make different trade-offs.
Or 'volatile') is flawed, but may escape detection with tests .
|
|
The reason why I ask this is because I need to know whether not using ORM for a social networking site makes any sense at all.
My argument why ORM does not fit into social networking sites are:
Social networking sites are not a product, thus you don't...
Started by jpartogi on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Using an ORM versus not using an ORM doesn't seem to make a huge difference.
The generic methods of query generation often make naive mistakes, not runtime efficiency.
Writing plain SQL yourself.
|
|
I am going to install Debian on our new dedicated server and I have a chance to set up hard drive partitions.
The server has two 750GB drives configured as RAID 1. We are going to have 10 Postgresql databases, where each database will be about 2 GB. There...
Started by Greg Dan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It is relevant if you have a place where data may fill up the... .
It's not a backup solution.
Just be aware that RAID1 may only save you in case of a hardware fault .
I don't think it's relevant anymore in terms of performance or for any practical reason .
|
|
Which do you guys prefer? I've been looking into both and there definitely seems to be some inconsistency in what people call them.
I will try and jot down what the differences are and you can correct me if I'm wrong.
MVC
Model holds references to it'...
Started by DevDevDev on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In this sense the MVC.
To the Business Object) is scattered throughout the View and Controller objects .
|
|
I was writing a function to figure out if a given system of linear inequalities has a solution, when all of a sudden it started giving the wrong answers after a seemingly innocuous change.
I undid some changes, re-did them, and then proceeded to fiddle...
Started by rodarmor on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
And watch the call stack and local variables and look for suspicious activity Make the system fail that will "make the system fail" running/debugging and watching If it runs fine you are looking/trying the wrong thing and you need to try....
|
|
What I am used to: Archives on the servers (NY, IN, NC) On my development machine: A directory named ~/work Subdirectories named ~/work/NY/devproject, ~/work/NC/project etc Not infrequently, subdirectories named ~/work/NY/release/1.3/project, ~/work/NY...
Started by Thomas L Holaday on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It would keep wanting to put the contents of your child directory into the... .
Because of the way Git works, you really don't want to place working directories for repositories (or branches) in a directory under the working directory for another repository .
|
|
I've created a question about this a few days . My solution is something in the lines of what was suggested in the accepted answer. However, a friend of mine came up with the following solution:
Please note that the code has been updated a few times (...
Started by Nazgulled on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you create a pipe, you get two file.
This small helper should be easily and don't make sure that all the ends are closed properly.
It up into smaller parts makes it much easier to understand.
|