Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Comment Re:I use Win11 (Score 1) 24

...the desktop apps are better than just about anything you will find on Linux or the BSDs.

I will argue against strict adherence to this statement. Gnome applications written to the project guidelines have become very fine, since the introduction of GTK-4 and libadwaita. I prefer many of these to their equivalents on MacOS.

It's true that most of these fall into a general category of "utilities", and that Windows enjoys a broader ecosystem driven by commercial incentive. But Windows programs are hardly "better' for this, and the widely varied usability is generally sub-par compared to level that's become norm for Gnome/Adwaita software.

Comment Re:The 1990s called... (Score 1) 60

To a certain extent, I don't disagree. I think programming via LLM is an insane goal, and frankly will just lead back to something akin to a programming language, just more poorly defined. Learning some arcane incantation to get consistently good answers isn't anything I would stake a career on.

But it really HAS been useful to me when I'm trying to learn new programming languages because the state of documentation is so poor. As long as I have links back to source documentation, I can read up if something goes wrong. And for things like giving me tasks and writing questions to test my knowledge, it's quite good.

It's a pretty good tool, and given the energy/environmental costs, I wouldn't actually be sad if it were shut down. But it can occasionally make my life easier as long as I use it judiciously.

Comment Re:And replace them with what? (Score 1) 29

Addendum

I'd prefer "req" over "required" as it would be used often: frequent tokens/idioms should be short. And "str" instead of "string".

One could put ranges and other decorations, perhaps custom ones:

var x:num.range(0, 99.99);
var s:str.maxLen(12);
var s:maxLen(120); // shorter version of above, strings don't need explicit types.
var u; // untyped, but treated as string by default
var foo=7; // automatically "int" based on constant.
var fi=7.0; // automatically num (decimal*)

(Variable declarations and parameter declarations use similar conventions)

* Treated as decimal by default, but big exponents will automatically bump its storage from 16 bits to 64 bits.

Comment Re:And replace them with what? (Score 1) 29

For one, get away from C-based syntax, at least the ugly parts. Second, don't overload "+" for both concatenation and math (Js); that was bigly stupid. Third, give us optional named parameters. Anonymous objects are not a good substitute. Fourth, clean up name-space management instead of using a hacked-on "fix".

Example function declaration:

func myFunc(aa, bb:int, cc:num.required, dd:required, ee:int=7) {...}

This example is "semi-typed" as "aa" doesn't require a type (is not validated). "dd" doesn't require a type but can't be white-space-only or null. "ee" is initialized with "7" if not passed in a call or is blank/null.

I've yet to find a newer language that has all the features listed.

Slashdot Top Deals

RAM wasn't built in a day.

Working...