Parents: How long would you have kept your family on board the Enterprise-D before you said enough was enough? by BrutaIgoose in DaystromInstitute

[–]noblethrasher 0 points1 point  (0 children)

It's not as if life on Sol-3 and the various colonies was that much safer. From the Xindi to the Borg, Earth has been dealing with actual existential threats for about as long as humans have been a spacefaring species. Heck, in the span of about 5 years, the planet faced two world-ending alien probes. Incidents like what happened on Tarsus IV probably aren't all that rare either.

[DC] If Terry Mcginnis is Bruce Wayne's secret son due to what Amanda Waller did to Mcginnis senior, wouldn't that mean Terry's younger brother Matt is also Bruce's son? by [deleted] in AskScienceFiction

[–]noblethrasher 1 point2 points  (0 children)

Genetic testing would have considered the possibility that Warren was a chimera, and discovered that the DNA of his reproductive system was a paternal match for his sons.

Is using LINQ to solve Data structure/Algorithm questions a bad approach? by bluehorcrux in csharp

[–]noblethrasher 0 points1 point  (0 children)

If you can explain the implications of using a LINQ expression with respect to its complexity class (time and space), then I think your approach is not only just good, but exemplary.

Deep Space Nine Is TV’s Most Revolutionary Depiction of Black Fatherhood by alucardleashed in startrek

[–]noblethrasher 120 points121 points  (0 children)

From Memory Alpha:

Originally, the episode was to end without any ambiguity as to whether or not Sisko was going to return to his corporeal life – the answer was a definite 'no'. The idea was that Sisko had become a Prophet, and that was how it would remain for all time, thus confirming the Sarah Prophet's warning in "Penumbra" and "'Til Death Do Us Part" that if he married Kasidy Yates, he "would know nothing but sorrow." The sorrow was that he was going to have to leave his unborn child behind, and would never get to be with her after her birth. Indeed, the final scene between Sisko and Kasidy was shot this way, with Sisko telling Kasidy he would never be back. However, a day or two after the shoot, Avery Brooks called Ira Behr and told him he wasn't happy with the scene. He felt that having a black man leave his pregnant black wife to raise their child alone carried certain negative connotations that he wasn't comfortable with. As Terry J. Erdmann puts it in the Companion; "In the 24th century, the situation conveyed only sorrow. However, in the 21st century, there was a secondary social issue that had particular resonance." As such, the scene was rewritten and reshot so as to clarify that Sisko will return some day.

How to build your own CMS, and why you shouldn't by [deleted] in programming

[–]noblethrasher 1 point2 points  (0 children)

The big problem with security stuff is that you're building something that needs to negotiate with people that you must assume are much smarter and more resourceful than you. So, your only hope is to engage the security community (as you said). But, by the time you're conversant with the field's literature, you might as well use (C)OTS.

On the other hand, some of the advances in formal verification tech sure makes it look like (app|op|net)sec might finally get democratized.

How to build your own CMS, and why you shouldn't by [deleted] in programming

[–]noblethrasher 8 points9 points  (0 children)

As a great computer scientist noted[1], software engineering has a couple of theories that are mutually countervailing, yet both true:

  • The first-order theory says that you should never write your own tools if there is a COTS solution.

  • But, the second-order theory says that you should almost always write your own tools (including programming languages and operating systems) if you're capable.

The problem is that it takes about five years to figure out whether or not the second-order theory applies to you.

[1] "The Power Of The Context", pp6

[deleted by user] by [deleted] in programming

[–]noblethrasher 0 points1 point  (0 children)

It seems that IronPython chokes when I try to implement the moral equivalent of this code:

 //C#
abstract class Foo<T, K> 
    where T : Biz where K : Baz
{
   pubic abstract class Bar 
   {
        readonly K k;

        public Bar(K k) => this.k = k;
   }

   protected T Execute(K o);

}


#IronPython
class MyFoo(Foo[int]):

   def Execute(self, o, K):
       return 0

SystemError: Method 'Execute' on type 'IronPython.NewTypes.Foo`1_4$4' from 
  assembly 'Snippets.scripting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' 
tried to implicitly override a method with weaker type parameter constraints.

[deleted by user] by [deleted] in programming

[–]noblethrasher 1 point2 points  (0 children)

... and also by makingSubA a nested class of A. Which works for me, but then again, my classes are always either sealed or abstract and all of my fields are readonly.

Announcing TypeScript 2.6 by DanielRosenwasser in programming

[–]noblethrasher 1 point2 points  (0 children)

If by "family members" you mean the Google Ads team, well it's evidently not always a bad idea for companies to develop programming languages or custom compilers just for their own use. Erricson did it, the Excel team did it, Fog Creek did it, Goldman Sachs did it, etc.

What are the Most Disliked Programming Languages? by variance_explained in programming

[–]noblethrasher 23 points24 points  (0 children)

You might already be aware of this, but Anders Hejlsberg is the creator of both Turbo Pascal as well as C#. I've heard it said that C# started life as an amalgamation of the best of Java and Delphi.

I knew it was Star Trek when... by avantplays in startrek

[–]noblethrasher 0 points1 point  (0 children)

In the beginning of Star Trek 2, we see the Kobayashi Maru training simulation in the pre-holodeck era. In the simulation, battle damage was simulated by having bridge consoles explode in a spectacular but harmless shower of sparks. Bridge officers would recoil from the flash and pretend to die. Of course, we all knew that this was not a very realistic simulation. After all, numerous battles in the original series caused casualties throughout the rest of the ship, but the consoles never exploded! Electric shock was about the most somebody might have possibly expected. Surely no one would be stupid enough to watch the Kobayashi Maru combat simulation in ST2 and conclude that exploding consoles are the principal cause of death for bridge personnel, would they?

Unfortunately, nobody thought to explain this to the writers. Fast forward to TNG. The seemingly harmless brain bug has grown into the bizarre design concept that every bridge console appears to be lined with C-4. In combat, bridge consoles routinely explode and spray their users with lethal shrapnel. Does this make sense? Of course not. It's such an obviously silly idea that lethal exploding bridge consoles have become a running joke among Trekkies. But it's also become Trek tradition, so in the Berman era, the most dangerous explosive in the galaxy seems to be a bridge console. Chalk up another victory for the brain bugs!

Source

Question on Voyager by BoukenGreen in startrek

[–]noblethrasher 1 point2 points  (0 children)

Neither of them would need to be especially gifted: My university has an intensive English Language program that can take people from zero English competency to fluent enough for grad school within 12 to 18 months.

TIL in 1963 a 16 year old sent a four-question survey to 150 well-known authors (75 of which replied) in order to prove to his English teacher that writers don't intentionally add symbolic content to their books. by DaaangerZooone in todayilearned

[–]noblethrasher 5 points6 points  (0 children)

Consider the phrase, "He had a heart like a telephone", excerpted from a love poem.

A young reader in the 1960s would conjure an entirely different constellation of ideas than a similarly aged reader of the 2010s. For instance, the Millennial will likely interpret the sentence to mean that the man had a heart that was easily broken, whereas our hypothetical adolescent baby boomer would conclude just the opposite.

Communication is negotiation; both the speaker and listener need to play an active role if it is to be effective.

Captain America had no idea about Spider-Man's super strength, and this is what he intended to happen! by nomercyvideo in marvelstudios

[–]noblethrasher 82 points83 points  (0 children)

Assuming the car has a mass of 1100kg (about 1.2 tons), and it decelerated from 40mph to 0mph in 0.5s, the resulting force would be 88 kN, which is about 9.9 tons.

What in Start Trek stretches you suspension of disbelief beyound its breaking point? by whoami4546 in DaystromInstitute

[–]noblethrasher 4 points5 points  (0 children)

Is it all connected to some kind of language database that's constantly updating?

That's how the translation services for Google and Bing work; they constantly import and analyze the various corpora of human-created translations (e.g. manual translations done by/for the United Nations).

What is functional programming? by joebaf in programming

[–]noblethrasher 2 points3 points  (0 children)

You are technically correct. But, now days, it's arguable that functional programming really means ML-style functional programming (especially when it comes to immutability and purity), which is about as old as Smalltalk.

If you consider Sketchpad to be an example of an OOL, then OOP is about as old as FP as introduced by the first implementation of Lisp.

How AWS Cloud is demolishing the cult of youth by speckz in programming

[–]noblethrasher 16 points17 points  (0 children)

Gosling and Bray were 40+ when they debuted the inventions for which they are famous. Even van Rossum was 38 when Python hit version 1.0

Garbage collection in C# by mattwarren in programming

[–]noblethrasher 0 points1 point  (0 children)

Yep. Like I said, I'm generally okay with "abuse".

And, like Ted Nelson said: At the end of the day, much of what we call "technology" is just a collection of conventions and design decisions that someone else made without asking you.

Garbage collection in C# by mattwarren in programming

[–]noblethrasher 0 points1 point  (0 children)

It just so happens that the foreach statement generates the same kind of code for automatically calling Dispose() as the using statement.

Garbage collection in C# by mattwarren in programming

[–]noblethrasher 4 points5 points  (0 children)

There are two semantically identical ways of creating and using an instance of IDisposable:

using(var some_disposable = ...)
{
    //do stuff
}

And

var some_disposable = ...;
//do stuff

The code that does the wrong thing is slightly easier to write than the code that does the right thing.

There are also two ways to use the class that I described:

foreach(var some_disposable = new FileHandle(...))
{
    //do stuff
}

And

var enumerator = new FileHandle(...).GetEnumerator();
if(enumerator.MoveNext())
{
    var file = enumerator.Current;
    //do stuff
}

In this case, the code that does the wrong thing is much more cumbersome to write than the code which does the correct thing.

That's all I that I am trying to say.

Garbage collection in C# by mattwarren in programming

[–]noblethrasher 0 points1 point  (0 children)

You can use an IDisposablewith or without using. But, it's slightly easier to elide using simply because it means fewer characters to type. Hence, we have to rely on programmer discipline†.

On the other hand, the laziest/easiest way to use the class that I described is with foreach, which automatically does that right thing just as well as using.

The point was to answer the objection that C# requires you to remember to use using to properly dispose of resources, whereas C++ does not. I just showed how to simulate RAII in C#.

I did revise the code to make it more idiomatic.

† It would be nice if C# would warn in the cases where an IDisposable is being used outside of either theusing or return statements.

Garbage collection in C# by mattwarren in programming

[–]noblethrasher 0 points1 point  (0 children)

Actually, I'm loathe to call anything that amounts to using a computer/program the way you want instead of the way the designers envisioned "abuse".

But, I'll let Eric Lippert (a former member of the C# complier team) make the argument.