hairyballs

joined 1 year ago
[–] hairyballs 1 points 1 year ago* (last edited 1 year ago) (3 children)

There are still obvious things the BC cannot get. For example:

struct Foo;

impl Foo {
    fn num(&mut self) -> usize { 0 }
    fn index(&mut self, _i: usize) { }
}

let foo = Foo;
foo.index(foo.num()); //error
[–] hairyballs 1 points 1 year ago

It's like someone has pooped on my screen.

[–] hairyballs 2 points 1 year ago

Genuine question: what's wrong with templating engines?

[–] hairyballs 2 points 1 year ago

My coworkers do document the code:

/// Returns a list of foos, given a bar. 
fn get_foos_from_bar(bar: Bar)
[–] hairyballs 1 points 1 year ago

Htmx is a godsend for that. You actually write HTML while having AJAX easily.

[–] hairyballs 1 points 1 year ago* (last edited 1 year ago)

The desktop website is so bad... I ask for a light theme in my settings, they don't care (it's white on black) because it's HARD to add a few CSS rules. Then there is a flash of light which could give a seizure to someone with a condition. It's shitty design at its peak. That doesn't really inspire confidence...

[–] hairyballs 2 points 1 year ago

Firefox is really badly integrated in MacOS. The fn + arrow shortcut doesn't work, for example, it's not integrated in the menu system (the menu shortcuts don't work) etc. But there is Sideberry, so...

[–] hairyballs 3 points 1 year ago

Nope, my webpages are not just nested divs. I use nav, main, form, select, etc to name a few. I actually use very few JS. It's mainly for communication with the server when I need AJAX to retrieve data.

[–] hairyballs 2 points 1 year ago

It's much easier to work with streams of untyped data in a weakly typed language.

[–] hairyballs 1 points 1 year ago (1 children)

Funny, I think C++ is literally the worst language to learn programming. I would go with JS or OCaml at first, then Rust if they need manual memory management.

[–] hairyballs 4 points 1 year ago

This is especially true for steam... what a crappy app

[–] hairyballs 4 points 1 year ago

I have a degree in philosophy (and no other diploma) and I make $200k/year as a senior developer. The degree does not really matter.

view more: ‹ prev next ›