[-] jim_stark@programming.dev 6 points 1 year ago* (last edited 1 year ago)

Edge is stuff tacked on Chromium. How can it be better?!

6

One can boot into the command from grub by editing kernel parameters.

Another way is edition the grub configuration and setting GRUB_CMDLINE_LINUX_DEFAULT="text". But now it's not possible to boot into a graphical env.

So is there way to create menu entry just for command line so it will be one of the ways to log into the system?

10
submitted 1 year ago* (last edited 1 year ago) by jim_stark@programming.dev to c/cpp@programming.dev

I use Helix Editor and by default it uses clangd as LSP server.

But when I use "newer" C++20 features I get warning messages in the editor that they are only available in "later" C++ versions or I get straight up error messages.

So how do I tell clangd that I am writing C++20 code? I am guessing passing an argument (-std=c++20) or creating a "project properties" file...

This is the Helix Editor configuration file, languages.toml:

[[language]]
name = "cpp"
language-server = { command = "clangd", args = [] }
auto-format = true

Please let me know the right way to do it.

[-] jim_stark@programming.dev 4 points 1 year ago

JS simply does not care.

[-] jim_stark@programming.dev 6 points 1 year ago* (last edited 1 year ago)

Aren't we past that point?

VS Code is Electron based and it can even be deployed in the cloud. We are talking about one of the most popular IDEs.

[-] jim_stark@programming.dev 4 points 1 year ago

Isn't installing KDE on it a task?

[-] jim_stark@programming.dev 4 points 1 year ago

compose into some crazy one-liner piped chains of commands

Why not something that is completely redesigned from the ground up:

[-] jim_stark@programming.dev 4 points 1 year ago* (last edited 1 year ago)

IIRC a startup tried to exactly that... It's wasn't any faster and is actually harder to develop.

EDIT:

Sorry ignore these videos. I don't remember which YouTube video it is. But more importantly Rust + WASM got really better than JS these days.

[-] jim_stark@programming.dev 4 points 1 year ago

Nobody:

Google: Software Morghulis

[-] jim_stark@programming.dev 6 points 1 year ago

reference compiler closed source

Is it still closed source? What is the reason?!

[-] jim_stark@programming.dev 9 points 1 year ago

FYI: There is a Linux distro that bets heavily on D Lang, Serpent OS.

12
submitted 1 year ago* (last edited 1 year ago) by jim_stark@programming.dev to c/dotnet@programming.dev

The documentation uses is in the example for "declaration patterns" but the book I am reading uses a switch statement. But when I try to run the code I run into errors.

using System;

public class Program
{
  public static void Main()
  {
    var o = 42;

    switch (o) {
      case string s:
        Console.WriteLine($"A piece of string is {s.Length} long");
        break;

      case int i:
        Console.WriteLine($"That's numberwang! {i}");
        break;
    }
  }
}

Error:

Compilation error (line 7, col 6): An expression of type 'int' cannot be handled by a pattern of type 'string'.

EDIT

Changing from

var o = 42;

to

object o = 42;

worked.

Full code: https://github.com/idg10/prog-cs-10-examples/blob/main/Ch02/BasicCoding/BasicCoding/Patterns.cs

10

What does "control falls through a switch statement" mean in this context? Control just moves on to the next statement?

I thought if there is no match and a default case doesn't exist it will raise an exception. Is it not true?

[-] jim_stark@programming.dev 5 points 1 year ago

Tim Corey.

He really takes time to explain things. Like if someone takes 10 minutes he takes 40 minutes. And it's worth it; you just don't get the info but also the "perspective".

[-] jim_stark@programming.dev 4 points 1 year ago* (last edited 1 year ago)

You can be sure software {…} will behave the same

never had that issue before, as long as they have the same version and config

Pure:

If you uninstall a software it might still have residues. If you install a faulty driver, even if you uninstall it, it might still permanently mess the system configuration.

But with nix if you uninstall something it's like it never existed in your system.

Reproducible:

With nix all the apps in your OS are configure using a single or a few config file(s). So if you want to setup another system the same way you don't have to go hunting for dotfiles.

avoid dependency conflicts

that’s not something I have to deal with on Debian/Mint.

Because you are recommended to use only software present in the repositories. If you are the kind of person who doesn't need software outside of your OS repositories then of course you might never need to worry about dependencies. Other people are doing the job for you.

But if you want to software not in the repos and even if you want to package it for your OS you might run into dependency issues. Never with nix. It's more for people who don't mind packaging software for themselves (and the community) and don't want to deal with nasty dependency issues.

[-] jim_stark@programming.dev 5 points 1 year ago

I wonder what would be the developer experience be like when developing a cross platform app: .NET vs Flutter

view more: next ›

jim_stark

joined 1 year ago