|
Such a database already exists, but we just call it the live (or production) database
Real life testing until it goes wrong, in which care it's just real life
I was considering the joke icon for this one, but then I remembered this wasn't actually a joke with my last employer (and many out there)
|
|
|
|
|
[nostalgia] I miss the good old days when we would program classic asp directly in the production environment. Who the hell needed a test environment? [/nostalgia]
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Exactly, project managers never seem to budget for the time or cost of such a fallacy.
|
|
|
|
|
Exactly! And syntax checking, who needs that? What could possibly go worng?
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
I miss the good old days when we would write our code on a black screen with green letters. A typo meant that the computer crashed and you had to start over.
But even more do I miss the good old days when we would chisel our code on stone slabs and just literally punched our employers in the face with it and called it a "go-live" (in those days pronounced as "ugga bugga!")
|
|
|
|
|
Yeah, but on the other hand, make the slightest mistake and it could come back and hit you in the head[^]...
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
|
Microsoft used to do that after their module testing : just release it and let customers find the bugs.
But this changed : they also skip the module tests now.
|
|
|
|
|
Haha, yes, a prod database would be perfect, but I meant I'd want something like that public, or semi-public, i.e. registered users.
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
If you created your application using the Event Sourcing pattern you could do exactly that. Since every event would be timestamped, you could replay an entire day's worth (or month's worth, or more) of actual use of your application. You could do it in real-time, or greatly accelerated to test specific components of the application.
You can see this at play on a very small scale in this video about time-travel in Redux dev tools. Since every change to application state is stored as an event, it becomes easy to debug by stepping backward or forward to view the application state at any point in time.
|
|
|
|
|
Incorrect invoices being created?
That is OracleERP for you!
|
|
|
|
|
And most in-house, DIY ERP systems.
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
Just a personal preference, but I've come to dislike the look of this syntax. I think it's the indentation.
StudentName student2 = new StudentName
{
FirstName = "Craig",
LastName = "Playstead",
};
vs
StudentName student2 = new StudentName();
student2.FirstName = "Craig";
student2.LastName = "Playstead";
|
|
|
|
|
You don't have to indent like that.
This space for rent
|
|
|
|
|
In C++11 you can just (when you have declared the proper constructor)
StudentName student2 = {"Craig", "Playstead"};
It would surprise me if C# had no corresponding way...
... such stuff as dreams are made on
|
|
|
|
|
megaadam wrote: StudentName student2 = {"Craig", "Playstead"};
It hasn't, at least not that direct.
The closest attainable solution is to define a constructor with needed parameters.
You always obtain more by being rather polite and armed than polite only.
|
|
|
|
|
Or the very subject of this topic, an object initializer:
StudentName student2 = new StudentName {"Craig", "Playstead"};
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
Give it another iteration of new language features and we'll probably have the even shorter C++ version. At times I wish they went faster but at least MS is steadily chipping away at language verbosity in C#; unlike Sun/whOracle who seem to revel in Java's bloatyness.
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
|
|
|
|
|
I would Java.Lang.Objection.RaiseSpecificObjection.Object to that slam on Java being wordy!
|
|
|
|
|
I just love it. Most of the terseness is easy to read as well, except those LINQ monsters that ReSharper turns your loops into. Even a few of them are easier to read.
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
I like it when it's short enough to fit on a line:
StudentName student2 = new StudentName{FirstName = "Craig", LastName = "Playstead"};
But when it gets bigger than that I prefer the older form. Or, if it could indent it like this:
StudentName student2 = new StudentName{FirstName = "Craig",
LastName = "Playstead"};
I'd be happy.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I always use your second style here, all function calls are broken up with one param per line, all neatly lined up. (I am so anal about code tidyness )
|
|
|
|
|
Munchies_Matt wrote: I am so anal about code tidyness
... and sooo paid by the LOC it seems
modified 19-Nov-18 21:01pm.
|
|
|
|
|
We actually align the = signs as well. It makes it MUCH easier to read the 2 columns of assignment!
(so you shouldn't feel overly anal about it)
|
|
|
|
|
Anything that gets rid of squirly brackets has got to be good.
|
|
|
|