|
A find a blend of Google and Intellisense works for me - but yes, I take your point the framework is massive. Assembler is much more interesting to the likes of me though.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
And there are new languages coming out every day!
Wear your mask! the life you save may be your own.
|
|
|
|
|
Richard MacCutchan wrote: If only I could.
(Obligatory Reply):
Do you mean just 'do one language' or do you mean 'do it well'?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
PIEBALDconsult wrote: Do one language and do it well.
I can do both And both are continual "doing it better" experiences. That never ends, no matter how many years I've done development. Not only because of course the language features evolve.
|
|
|
|
|
Marc Clifton wrote: JS: let s = Foo = `${foo}`;
Or, if you get the quotes in the right place:
let s = `Foo = ${foo}`;
Marc Clifton wrote: C#: braces are on separate lines
JS: opening brace is on the same line.
Actually, in C#, braces can be on the same line, a different line, or whatever you call the abomination of a formatting style that @OriginalGriff prefers.
JS mostly doesn't care. It's only an issue with things like return { ... }; , where putting the opening brace on a new line confuses the parser into thinking it's two statements with a missing semicolon after return .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Aside from the opening brace belonging on the same line as functions, conditionals, &etc., which is a well established and eternal truth, I have a question:
Using javaScript, I have never used 'let' to introduce a symbol declaration. I have used 'var'. Aside from some sort of visual distinction, does it serve any value.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Yes, variables declared using let[^] and const[^] behave differently to those declared using var . The MDN documentation does a pretty good job of explaining the difference.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
It's all about the scope.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Richard Deeming wrote: Or, if you get the quotes in the right place:
Oops.
Richard Deeming wrote: Actually, in C#, braces can be on the same line, a different line,
Well yes, but ever since C++ I've used the separate line style.
Richard Deeming wrote: JS mostly doesn't care. It's only an issue with things like return { ... };
I believe
return ({...}); also helps that? I know in some cases I have to put the object {} in parens so as not to confuse JS.
|
|
|
|
|
used to do this all the dang time.
I don't write Javascript anymore unless I have too. hasn't happened in over a year! Yay me.
But I switch between Powershell, SQL, C# etc... I sometimes forget how to comment in the language I am in at the time. It seems strange to me. I can write code quite well switching around. But I cannot remember how to comment in Powershell vs SQL vs C#.
The Brain it is strange.
To err is human to really elephant it up you need a computer
|
|
|
|
|
rnbergren wrote: I sometimes forget how to comment in the language I am
Most folks I know don't know how to comment in any language; or, if they do know how, they don't use that ability.
|
|
|
|
|
Just like Turn Signals on Cars
To err is human to really elephant it up you need a computer
|
|
|
|
|
rnbergren wrote: I sometimes forget how to comment in the language
Comments? What are those and when did that feature get introduced?
|
|
|
|
|
This is a good post and I feel the same way about it.
Also, don't you _HATE_ the backticks used in JS string interpolation?
C# interpolation is actually nice and clean.
|
|
|
|
|
Marc Clifton wrote: C# vs. JavaScript/Typescript dyslexia
I find this in general. A great number of modern languages use the C/C++-style syntax and so differences can get confusing. Java, Kotlin, Rust, D, etc. all suffer from/contribute to it.
|
|
|
|
|
Marc Clifton wrote: Half the time I wrote the wrong syntax for the wrong language. Don't write both.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Marc Clifton wrote: C#: if (!String.IsNullOrEmpty(foo))
JS: if (foo)
Those two are not the same. Consider foo = "0";
|
|
|
|
|
I sometimes still type 'Dim i as Long' in C. VB is the computer science equivalent to Saigon.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
It is a mental discipline of learning how to forget. I have only half way mastered it.
So many years of programming I have forgotten more languages than I know.
|
|
|
|
|
Yes! I've been going through exactly this all week.
cheers
Chris Maunder
|
|
|
|
|
(posting this because of the invitation morning CCC below)
First let me say that you should take anything I say with a grain of salt. I am not a physicist or mathematician. My interest in sphere packing came after Ukrainian mathematician Марина В'язовська published the solution for the sphere-packing problem in 24 dimensional space[^].
With that being said I make the following postulate:
Our Milky Way galaxy (and therefore all other galaxies) appears to be a single object. In other words, the matter outside of the singularity appears to share the same space. The 'extra mass' required to explain the rotational speed is not necessary. You don't need a PhD in mathematics to explore this idea. And apparently I am not the first person to discover this strange property of n-spheres[^].
However I can't find anyone else making the claim that galaxies might be single objects. It only requires two assumptions:
1.) That the particles that make up the atom are moving in higher dimensional space.
2.) That atoms are tightly packed at the maximum density[^] within the singularity at our galactic center.
If that is true then you can use simple geometry to calculate that some of the particles inside the singularity also exist outside of the Schwarzschild radius at our galactic center.
TL;DR:
There is no dark matter. The 'extra mass' required to explain galaxy rotational speed is not necessary. Galaxies appear to be a single objects.
I invite criticism and opinions. But I am leaving in a few minutes and will not be back for several hours.
Best Wishes,
-David Delaune
|
|
|
|
|
Randor wrote: I invite criticism Your momma was a snow blower!!
|
|
|
|
|
|
Your mother was a hamster and your father smells of elderberries!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
The problem with this is that we have plenty of evidence (gravity, electromagnetic radiation, ...) that on the macroscopic level, space-time has 3 space dimensions and 1 time dimension. It is possible that at extremely small scales (much smaller than a proton) there are more space dimensions, but this has yet to be proven.
I have not checked the math in the article that you linked, but even if it is correct - your theory requires that macroscopic objects must have more than 4 dimensions. As I said above, there is no evidence for this whatsoever.
Sorry.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|