|
CodeWraith wrote: Now your path to the Dark Side is complete
The Dark has so many Sides, I don't think my path could ever be complete.
|
|
|
|
|
If only we knew someone who'd written a book about it[^], eh @Pete-OHanlon?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
|
TypeScript is fantastic. I love it and I wish that C# had features like rest and spread (yes, these are JavaScript features, but as it's TypeScript we're talking about, I'm claiming that one for the home team).
|
|
|
|
|
Breaking the lounge rules here, a question about spread. Given something like:
Math.max(...aLargeArray)
and that I read that it does inplace replacement of the parameter list, did you ever look at what happens when the array has 10's of thousands of entries?
I was about to use the spread operator on something and realized this might be a very bad idea, so opted for Math.max.apply(Math, aLargeArray)
|
|
|
|
|
Yeah, that would be a bad use of it. I wouldn't use a spread operation in a scenario like this.
|
|
|
|
|
Definitely one of those things that I feel like I need to try, but never had the time. Maybe this is the encouragement I need to finally give it a go.
"Go forth into the source" - Neal Morse
|
|
|
|
|
|
I've never needed to use it so I haven't. What does it give you?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
ZurdoDev wrote: What does it give you?
It's the difference between strongly typed vs. duck-typed. So you get real Intellisense and compile-time type checking, which when coupled with an IDE like Visual Studio (one option among many) you get to see the type errors before running the program. Some of the type definition syntax is more functional programming-like, so you can say "this type is of type A or B", which is neat.
Given my general (and strong) distaste for duck-typed languages, TypeScript is a definite boon and significantly decreases the number of bonehead (and some not so bonehead) mistakes that I make programming in pure Javascript. My coding is also faster due to Intellisense, almost up to par with my efficiency with C#.
|
|
|
|
|
Marc Clifton wrote: It's the difference between strongly typed vs. duck-typed. Ya, that's what I have always heard. I guess it's just never been a problem enough for me to care. Someday maybe.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Not getting new stuff when it's new isn't the worst of ideas. It's been true for HDMI/HDTV and it's very true in the web space. While we're at it, .NET 1.0 was a great concept but I'm glad I didn't get aboard back then in retrospective as well.
Tech producers are too focused to produce an MVP quickly that they kinda forget the V in the process, going for quickly first.
That said, I don't know how V TS was when it was first released. I am just stating general truths here.
|
|
|
|
|
Welcome to the club
Marc Clifton wrote: Why didn't I do this sooner?
I would speculate that for the same reason that I didn't: Skepticism and too much hearsay.
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
Our heads are round so our thoughts can change direction - Francis Picabia
|
|
|
|
|
If you have waited this long, you might as well wait one more year then move entirely off of JavaScript with Blazor. Of course, TypeScript will probably cut out JavaScript, as well, and switch to compile directly to WebAssembly, so you will still be off of JavaScript either way.
|
|
|
|
|
Is autocorrect where you get your car repaired?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I thought that was when the car drove itself
To err is human to really mess up you need a computer
|
|
|
|
|
no, it's only for trading your prius to a real car.
(in case you're wondering even worse off chinese brands aren't even accepted at the recycle depots or landfills)
Message Signature
(Click to edit ->)
|
|
|
|
|
I believe it is when your wife/spouse is sitting next to you when you are driving and starts to "correct" you and warns abput being too close to that car, to people walking by, to the traffic lights and signs, to bikes and dogs passing by, etc., etc., etc.
|
|
|
|
|
Not when my wife is driving. I'm a coward, so I look out the passenger-side window. I don't want to see Death coming, and the look of abject terror on his face when my wife runs him over.
Software Zen: delete this;
|
|
|
|
|
And that is why you end up with a muffler for a rear-view mirror.
G-d Damned Autocorrect!
I, for one, like Roman Numerals.
|
|
|
|
|
Never thought of it that way.
My dad's been a mechanic all his life. I guess he's the original autocorrect.
|
|
|
|
|
...dealing with retards today. Normally, I can (just) barely stand them, but today, the idiots are really disturbing my calm.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
#realJSOP wrote: the idiots are really disturbing my calm.
Then it may be time to get religious:
Quote: God, grant me the serenity to accept the things I cannot change, Courage to change the things I can, And wisdom to know the difference.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
This is when you take your feet off the table.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|