|
|
I dunno. There's another?
|
|
|
|
|
When I first learned BASIC in the '80s, the only structure available was the array, so we had to use that and build up more complex structures, but that's just not necessary with C#, OOP, and Collections. So I am saddened to these posts from the last few days:
"Int32[] playerNumbers, String[] playerLastName, Int32[] playerPoints" --
Arrays how to delete multiple entries[^]
"Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints" --
Cannot convert type int[] to int[^]
"Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints" --
delete method not deleting[^]
"Array carPark[10][2];" --
What Is Wrong With The Code And Why Doesnt It Run When I Try To Run It In C#[^]
Those first two are the same member, the third probably is as well.
The fourth is at least using a two-dimensional array, but he obviously copied it from somewhere and has no idea what it is.
Oh, sweet Bob, they keep coming...
"public string[][] Select(string query)" --
How to return array or list 2 dimensional from SQL Query[^]
WTF!?
"ProcessDelete(Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints )"
method for copying array into new array[^]
And they just keep coming:
"ProcessDelete(Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints)"
Trouble With Arrays And For Loops[^]
"DeletePlayer(Int32[] playerNumbers, String[] playerLastName, Int32[] playerPoints, ref Int32 playerCount, Int32 MAXPLAYERS)"
For loops and decrement with arrays[^]
|
|
|
|
|
Looking at that last one there are several things wrong with it.
If this is a school project then perhaps it is the teacher that needs pulled out of the 80's
|
|
|
|
|
ledtech3 wrote: If this is a school project
That's very likely.
ledtech3 wrote: teacher that needs pulled out of the 80's
Indeed. I know I'm old-school, but this is a ridiculous level of archeology.
|
|
|
|
|
PIEBALDconsult wrote: I know I'm old-school
ftfy
|
|
|
|
|
PIEBALDconsult wrote: When I first learned BASIC in the '80s, the only structure available was the array,
Then C introduced the struct .
Then C++ decided struct should have methods, and called it a class and added all sorts of other artifacts (inheritance, polymorphism, and encapsulation.)
Then came along relational databases, and we were introduced in C# to a newfangled way of working with structures, the DataTable , DataView and DataSet , but those caused impedence mismatches so a new artifact was born, the ORM.
Then the jar-heads decided to inflict themselves on the process because this was all too complicated and created JSON, a string "structure" that took us back to the BASIC 80's of untyped data and structure encoded in the string itself. Simultaneously, the "kids" (who were not even a glimmer in the eyes of their parents in the 80's) decided that relational databases were bad and gave us NoSQL, which, guess what, uses JSON, is document oriented and requires client-side callbacks to "join" data across documents.
And this is called progress.
Marc
|
|
|
|
|
Marc Clifton wrote: Then C introduced the struct .
Exactly, even Pascal has records (?), variant records as well.
Of course in Perl you'd have to use a hash ( ), but at least it's something.
|
|
|
|
|
To say nothing of COBOL.
No please, say nothing of COBOL!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
I didn't. I didn't even think it. Until now, thank you very little.
|
|
|
|
|
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
I'd heard of COBOL.NET, but since I last touched COBOL almost 30 years ago I though I'd do a quick search. I found this:
program-id. Program1 as "ConsoleHelloWorld.Program1".
data division.
working-storage section.
procedure division.
display "Hello World"
goback.
end program Program1.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
You can use COBOL to write restful webservices these days...
http://azac.pl/cobol-on-wheelchair/[^]
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
You can probably go from Land's End to John O'Groats on a unicycle, but should you!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
Depends on how important the charity you're sponsoring is to you. Apparently it can be done in less than 9 days in a wheelchair, so you'd only have to take one week of work off.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Dan, I said Quote: You can probably go from Land's End to John O'Groats on a unicycle. I can't even ride one.
Let me know when you're going, I'll chip in some sponsorship!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
If you can find me a 50k sponsorship I'll learn to ride and start on the 32nd of Nevember.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
If I could find a 50k sponsorship I'd learn to ride one myself.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
COBOL's a pleasure compared to RPG !!! (IBM AS/400 for example)
|
|
|
|
|
I've never "played" with RPG (unless we're talking Doom!), but I've had my time with AS400 "screen scrapes".
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
heh - I love the way people say 'this is right, wrong, do it this way' but at the end of the day, if that's the only way you can make it happen, well ...
so good on you for 'screen scrapes'
'Mr Pragmatic'
|
|
|
|
|
Hey now, RPG was the bomb compared to Assembler. I loved the AS/400
To err is human to really mess up you need a computer
|
|
|
|
|
oh Im not dissing it - if its all you have, then you just use it (and ILD-RPG 400 was a different animal) - I used to have RPG modules calling all sorts of system routines - loved it
|
|
|
|
|
Garth J Lancaster wrote: RPG (Making sign of the cross)Hisssss!!!
A hardware plugboard as program, gack!
Psychosis at 10
Film at 11
Those who do not remember the past, are doomed to repeat it.
Those who do not remember the past, cannot build upon it.
|
|
|
|
|
Exactly. When reading Piebald's post, also I thought of some "serialized as text" compatibility mode. That's progress in these times...
|
|
|
|
|