|
Yeah, that's just... ouch...
If my objects ever have more than a couple dozen fields, I start thinking of the most logical way to split them up.
But if you're manually initializing 150 fields at once, whether it's in one object or an object tree, it's time to rethink your design.
|
|
|
|
|
The database already was a horror by itself, but could not be changed without risking a complete collapse. They were simply attempting to add something like data access classes and initializing data objects from data query results. It was a feeble attempt to bring some order to this application because a good part of the application logic was hidden in database triggers. Doing CRUD operations with data access objects usually had unexpected side effects.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I like the first. Less typing and more readable.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Initializing is for sissies. Real programmers do not initialize.
|
|
|
|
|
I woud simply use a parametrized constructor to construct and initialize the instance at once.
var student2=new StidentName("Craig","Playstead");
|
|
|
|
|
Sadly I've been corrupted by javascript and I am currently finding this the most readable (and I do this for SQL as well for INSERT INTO column lists)
StudentName student2 = new StudentName {
FirstName = "Craig",
LastName = "Playstead"
};
I know, I've gone rabid and need to be put down out of humane concern.
|
|
|
|
|
Exactly what I like to use ... except I would never have a "student2" ... maybe "classClown"; etc.
|
|
|
|
|
I always hated that style of indent = { indent.
When I learned C it was:
void main()
{
IndentedCodeHere;
}
I cringed when I saw:
void main()
{
CodeHere;
}
as if that made it easier to read.
Then JavaScript came in
function main() {
Codehere;
}
Which I can live with, and I get. But it just seems wrong.
It is VERY hard to match the braces visually, but the editors do it for me...
But indentation matters.
|
|
|
|
|
Am I not seeing what you're seeing? I don't see ANY indentation there.
FWIW, I prefer this indentation:
var student2 = new StudentName
{
FirstName = "Craig",
LastName = "Playstead",
};
|
|
|
|
|
Just a personal thing but I hate code visually floating out to the right. I get that it lines up with the "new" but I find that disturbing, like I need to go in and fix it OCD style. I see the same thing with some default SQL formatters (like from RedGate). First thing I go to customize.
|
|
|
|
|
Currently, I have Win10 Home installed on my machine.
If I wish to use the powers of Visual Studio Community 2015 and SQL Server Management Studio to the full, do I really need to install Win10 Pro?
|
|
|
|
|
No - they will work in Win10 home (and do on my laptop)
|
|
|
|
|
If you end up wanting to do Hololens development you're going to have to have Win 10 Pro installed.
This space for rent
|
|
|
|
|
I second what Duncan says: I'm running Home, and VS2015 and SSMS work fine (even if VS2015 is noticeably slower to start than VS2013, even from SSD!)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I don't know what kind of work are you planning, but for me, regarding general development scenarios, hyper-v alone is well worth move (and price) towards PRO.
modified 19-Nov-18 21:01pm.
|
|
|
|
|
Agreed.
Hyper-V and Remote Desktop make Home a non-starter (IMO). Its inability to join a domain puts the final nail in that coffin.
|
|
|
|
|
If you are doing any ASP.Net, remember that IIS is not available with Home edition. You can still develop ASP.Net, you just have to use the VS web server.
"Go forth into the source" - Neal Morse
|
|
|
|
|
I've seen a couple of websites that say Windows 10 Home doesn't have IIS, but I've been running Win10 Home for nearly a year and full IIS 10 (not Express) has always been available to install in the 'turn Windows features on or off' window. It probably has pretty strict connection limits the same as it would in Win10 Pro, but it works as expected.
|
|
|
|
|
Good to know! I had wrongly assumed that it was the same as previous win OS's.
"Go forth into the source" - Neal Morse
|
|
|
|
|
kmoorevs wrote: IIS is not available with Home edition
So that's why I lose all my formatting when I try and run my website. Having read Web Servers in Visual Studio for ASP.NET Web Projects it seems it's easier just to buy Win10 PRO.
|
|
|
|
|
£$¥£--¢£€ (9)
Hint 1: Don't get caught.
Hint 2: Bernard Madoff did.
No hint 3, time is up.
|
|
|
|
|
i have to start somewhere XD
DRUDEELDS
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
|
I guess this is something a non native english can't solve
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
Sorry mate, i would never have gotten that
I don't even know the word
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|