ttmrichter

joined 3 years ago
[–] ttmrichter@lemmy.ml 1 points 1 year ago* (last edited 1 year ago) (1 children)

That's what it does.

What is the intent? WHY does it do this?

I'm baffled as to what the entire point of this is.

[–] ttmrichter@lemmy.ml 1 points 1 year ago (3 children)

I don't get it. What's it supposed to do beyond making me repeat letters? Do you have something that actually explains the intent somewhere?

[–] ttmrichter@lemmy.ml 3 points 1 year ago

My favourite IDE is a shell, Textadept for editing, and gdb for debugging.

[–] ttmrichter@lemmy.ml 9 points 1 year ago

Time to break out the block cannon. Ain't no way that I let anything Zuck touches touch my stuff.

[–] ttmrichter@lemmy.ml 6 points 1 year ago

This. This right here. For anybody to embrace anything they have to perceive and advantage to them to do so. If you can't persuade them of such an advantage they won't do it.

[–] ttmrichter@lemmy.ml 4 points 1 year ago (1 children)

The name is a really weird one. Sounds more like a spreadsheet than a social media application.

[–] ttmrichter@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

A whole lot of misdesigns are only a "small amount of brain power" to use. As your language accumulates these, however, the load builds up.

This also has the extra problem that overloading in general brings with it. What is the result of 3 + "string"? What is the result of "string" + 3? You have to have rules for this. These rules have to be learned. They have to be kept in mind. There is room for error. And of course the way different languages react to them will vary strongly.

For example in Rexx, Python, and Ruby these are errors (and with the latter two the error changes depending on which order). In Awk and Perl the result is 3 in both cases.

Format strings are better than + as concatenation, to be fair, but are still not very good compared to separate concatenation operators. It's hard to make them type-safe. They separate the value from its location in the string.

Using actual concatenation operators has the advantage of format strings, but add the possibility for type safety. For example in Ada:

...
    Put_Line("Distance: " & Distance_Value'Image & "km");
...

See here, & will only concatenate string types. If you want to print something that's not a string, you have to convert it to a string. This means you can't accidentally mix types. Further, it's immediately obvious where a given value will show up in the output. Compare and contrast with the C equivalent:

...
    printf("Distance: %skm\n", distance_value);
...

Not only is location of the value obfuscated—trivial to spot here, but in a complicated string it's very difficult to spot at times. And it's easy, too, to have the format code not match the value. As this example illustrates. Again, easy to spot in trivial code like this, but horrifically hard in real-world code, especially if the variable type changes.

[–] ttmrichter@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (2 children)

String concatenation with + is evil. Well-designed languages (Lua, for example, among many others—I'm not calling PHP well-designed!) doesn't do this.

Why?

Because +, in every other context is commutative, but suddenly, in the case of concatenation, it is not. This is an unnecessary cognitive burden for no material gain.

Concatenation can be accomplished by juxtaposition (e.g. SNOBOL4, Rexx, much of the C family tree), by .. (Lua), by . (Perl, PHP), by || (PL/I, Rexx again), by & (Ada, some BASIC dialects), etc. without this added cognitive burden of overloading + for no good reason.

[–] ttmrichter@lemmy.ml 10 points 1 year ago (1 children)

No.

ActivityPub is a protocol. It has no agency.

People can save the Internet. Perhaps with ActivityPub, perhaps with something else.

[–] ttmrichter@lemmy.ml 4 points 1 year ago

And here we see the seeds of ~~IRC's~~the Fediverse's irrelevancy being planted and lovingly tended.

What you just said could have easily been put into the mouths of any number of IRC advocates 20 years ago. Where is IRC now? Remind me.

 

This is so capitalism at all levels that it hurts to watch.

  • Corporation peddles snake oil that kills people.
  • Corporation doubles down on that snake oil at a time of a global pandemic when lives are doubly on the line.
  • A scientist speaking out against the technology with verified studies and measurements is sued by said corporation.
  • Said scientist has to beg for money to get even the smallest chance in court in the face of the corporate juggernaut.

Ladies and gentlemen: I give you CAPITALISM!

 
 

cross-posted from: https://lemmy.ml/post/221845

This is arguably one of the most important archives of computer science and engineering information available. And 50 years of it is now free. Get out there and play while educating yourself on things you didn't know were ancient history!

 

Protests are all well and good but they're not helping the Ukrainians on the ground. Governments aren't helping Ukrainians on the ground either. Maybe it's time to help them help themselves.

 

I think this is one of the more disturbing snack food photos I've ever seen. Source: https://pixelfed.social/p/zhang.dianli/384136325581485643

 

Humanity has discovered FTL travel. All trips in the direction of the galactic core vanish without a trace. Plotting the disappearances reveals two things:

  1. They outline a sphere.
  2. The sphere is expanding at the speed of light.
view more: next ›