|
What question? I'm not sure that link is correct... it just takes me back to this same thread?
|
|
|
|
|
My question was....
Oh yes, and I've worked in at least 5 countries where the people will tell you it's the best country in the world. Can you guess which?
When I went to your site it said the USA was the best country in the world. So you've got the first of the the five that sprang to mind.
Best wishes from an ex systems engineer
Paul
|
|
|
|
|
I can actually rank the places I'd like to live, tell me how close I am to your list...
1. USA
2. Canada
3. England
4. Japan
5. Germany
(I speak the languages in those places)
|
|
|
|
|
I was ranking the places in terms of the people who live there. In order..
1) The French love France
2) The Americans love the USA
3) The Swiss love Switzerland
4) The Canadians love Canada
5) Various Brits like parts of Britland
6) Jointly, Anzacers, Scandanavians and some other Euros love their bits
My personal list is somewhat different. I've been to about 60 countries, but only worked in 12 or so. You have to live and work somewhere to get a 'feel' for it.
However, in terms of enjoyment it was hard to beat London as a student and Amsterdam in your twenties. And that was the last time I was coding seriously in IBM assembler. (Vaguely steering the message towards the title)
Paul
|
|
|
|
|
@ Britland
|
|
|
|
|
I still have fond memories of SAP table and field names I used in ABAP/4. Table 'names' were normally 4 letters, and field names 5, but the table 'names' were formed according to heuristic, which we quickly learnt. Unless you are going to spell out all names, then the shorter, standard way of shortening them makes. Example, MARA was the highest level material master table in Inventory, then MARB was the next level down, followed by MARC etc. Field names were fun, mixtures of English and German names shortened to normally 5 letters, so a document number in inventory would be MARC-BELNR.
|
|
|
|
|
I remember a Cobol program that had an interesting set of variable names. It wasn't until I read the following line that it all came together...
Perform sex thru night varying position from top to bottom until tired out
There are so few computer languages these days that allow us to combine literature and IT.
Paul
|
|
|
|
|
Whenever I have trouble sleeping at night I start reading a COBOL text book. Usually does the trick in about 5 sentences. Would that be a "feature" of the language or the textbook?
Phil
|
|
|
|
|
superb!
|
|
|
|
|
COBOL was my first pro language, and I used to take great joy in writing code in "English" (the 88 lines were the thing; they were more-or-less equivalent to enumerations, but they msde it possible to write code in linguistically-parseable sentences).
And it's not a dead language; my COBOL '99 and ME are as popular as ever.
|
|
|
|
|
Recently in a CodeReview I found that a developer was using two variables in Web.Config like ConnectNetwork1, ConnectNetwork. In the code he was using one variable to Chat and Other variable to transfer files, which was giving a bug.
When I pointed out, now he has copy pasted the same value in both the keys, while the expected result was to maintain a single key and correct code accordingly.
See how some people think differently.
|
|
|
|
|
Did you say 'think' ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I assume he did think about it for a second and thought that he would always recognize the situation and correct for it. That's the lazy way out in my opinion.
Phil
|
|
|
|
|
After all, does he have to support it? Probably not
|
|
|
|
|
(DOWNLOAD Book)link where would u make it.
DOWNLOAD Book
a href="dnload.aspx?filebook=../pdf/book.pdf dnload.aspx
string strRequest = Request.QueryString["filebook"];
if (strRequest != "")
{
string path = Server.MapPath(strRequest);
System.IO.FileInfo file = new System.IO.FileInfo(path);
if (file.Exists == true)
{
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + filebook.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(filebook.FullName);
Response.End();
}
else
{
Response.Write("This file does not exist.");
}
}
else
{
Response.Write("Please provide a file to download.");
}
Pavan Pareta
|
|
|
|
|
It does not sound logical. One can just entrap querystring and then manually build the path, defeat the download statistics routine or an optional logon check.
You should pass some ID and read the file on serverside and stream it. The file should be away from virtual folder.
|
|
|
|
|
Hi,
Someone I know, new to C, made this slight error, not very big .... but funny.
char myStr[] = ``just testing'';
And I quote from the 10 commandments of C:
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
As demonstrated by the deeds of the Great Worm, a consequence of this commandment is that robust production software should never make use of gets(), for it is truly a tool of the Devil. Thy interfaces should always inform thy servants of the bounds of thy arrays, and servants who spurn such advice or quietly fail to follow it should be dispatched forthwith to the Land Of Rm, where they can do no further harm to thee.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
And here I thought you were talking about using the two single quotes (`` ) at the start of the string instead of a single double quote (" ) as the WTF, but then you go and use the same WTF in your comments.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Obviously used to using LaTeX, doesn't it use something like that format for quotes?
|
|
|
|
|
Aren't those ASCII 96s, not ASCII 39s? That's what I thought the WTF was.
|
|
|
|
|
I don't get it, what is wrong here (except for the weird quotes)
|
|
|
|
|
Actually, I don’t get it either and I have about 20 years C programming experience.
The code shown would generate errors at compile time – simple to fix.
If the code where typed correctly, then what would bounds have to do with it?
I usually use a pointer to constant string for such strings, but if I wrote it like that I would type:
const char myStr[] = "just testing";
Without seeing the context in which it is used, that’s all I can see.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Well I'm glad that I'm not the only one who can't see it. I wonder if he meant to have an array size in the char[] declaration? The only other thing that I can think is that he is reusing this variable elsewhere, and that's where the error is (i.e. the point where the bounds checking would come into play).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Programm3r wrote: made this slight error
Where
.net is a box of never ending treasures, every day I get find another gem.
|
|
|
|
|
A possible problem with the code is that the programmer seemed to be sizing the array in a very arbitrary way. Unless of course "This is a test" is the max intended size of the array and the rest of the code isn't going over the array size.
Plus it forces every programmer who looks at the code to start counting on his fingers, getting to 10 and saying, "damn" before starting over because he couldn't remember if he included the space between 'this' and 'is' ;v)
|
|
|
|