HN user

arunix

185 karma
Posts3
Comments207
View on HN

And at the end of that Bob says:

For my part I'll just say that I have given due consideration to the points you've made, and while I disagree with your conclusions above, I have integrated several of your better ideas, as well as this entire document, into the second edition of Clean Code.

Right at the end of the article:

Why not release the belugas into the ocean?

It's geopolitically difficult to return many belugas to their native waters, because many come from Russia, Lott said.

Sending the Marineland belugas into the wild would have been "inhumane," Trites said. At least half of the animals were born into captivity, so they don't know how to hunt and wouldn't be accepted by the local beluga population.

"The animals are so social that they can't survive on their own," he said.

TNG introduced various civilisations that drive much of the plot in DS9.

Season 1: Ferengi

Season 4: Trill, Cardassians

Season 5: Bajorans

Also, Chief O'Brien and his wife Keiko who were recurring minor characters in TNG have more important roles in DS9.

Jumping Spiders 1 year ago

I didn't understand the vampire thing. That seemed like the least realistic part of the story.

Rhombus Language 1 year ago

That syntax suggests the first pair will be flipped, and the rest will just be as they were, i.e. more like flip_first

Consider

    % perl -v | head -2

    This is perl 5, version 40, subversion 0 (v5.40.0) built for x86_64-linux
    % 
    % perl -E 'use feature "switch"; my ($x, $y); given ($x) { $y = 1 when /^abc/ }'
    given is deprecated at -e line 1.
    when is deprecated at -e line 1.
This is also mentioned in the docs:
  Smartmatch is now seen as a failed experiment and was marked as deprecated in Perl 5.37.10. 
  This includes the when and given keywords, as well as the smartmatch operator ~~. 
  The feature will be removed entirely in the Perl 5.42.0 production release.
https://perldoc.perl.org/perldeprecation#Smartmatch

> In python you can't tell whats a variable and whats a list, and whats a dictionary by looking.

In Perl, sigils are used to distinguish between scalars/lists/hashes. Sigils and references are not the same thing.

https://www.perl.com/article/on-sigils

https://perldoc.perl.org/perlreftut

OO in Perl is lower level compared to Java or C++, so e.g. instead of having a class construct, you have to simulate a class - typically by binding (blessing) a data structure to a namespace. Then any functions in the namespace become methods that can be called via the data structure (object).

In practice, this has turned out to be a mixed blessing because of how tedious it is to do this repeatedly. So over the years there have been many libraries created to make this easier, each with different features.

There's currently work underway to modernise Perl's built in OO to address these problems.

On the other hand, this makes some things easier, e.g. Design by Contract can be added to Perl just by writing a library.

Another example, adding traits to PHP required updating PHP itself, whereas in Perl there are libraries to do that.