• 5 Posts
  • 224 Comments
Joined 1Y ago
cake
Cake day: Jun 14, 2023

help-circle
rss

What is the actual evidence trump wants to end democracy? I’ve only seen an out of context clip so far


That’s fair, personally keybindings always struck me as something easier to automate than pay for


That’s sick, unfortunately too late, ended up ditching full fat vs, employer wouldn’t pay for rider so I just went full into vscode and then vim/helix

What do you use Rider for that can’t be easily done via CLI?


Makes it work universally, even if the gui isn’t made with a standard toolkit

Also it’s ai they don’t care about efficiency


You can think bigger than that, as an example from the other day, I got it to a Display implementation for all of my error types in rust, it generated nice user friendly error messages based on context and wrote all the boilerplate around displaying them

Also got it to generate a function that generated a unique RGB colour from a user ID, did it first try and I could use it straight away

Both those things would’ve taken me maybe 15 minutes by hand but I can generate and proofread them in seconds

That said, I don’t use copilot I use chatgpt, it’s intentional when I use it not just being shoved in my face all the time which might help my opinion of it


Of course but presumably on occasion you do work in other languages? I work in all kinds of languages and so jumping between them it’s pretty handy to bridge the gap

I think you could definitely still get value out of generating simple stuff though, at least for me it really helps get projects done quickly without burning myself out

For small one off scripts it makes them actually save more time than they take to write (for example colleague had to write the permissions of a bunch of files recursively into an excel doc, chatgpt did 90% of that I did 9 and he did 1 lol)


It’s so hard to eat this soup with this fork you gave me why the hell did you put so many holes in it?!


It took me so long to get this mentality down

I still take enjoyment from writing code well but I no longer give a shit what happens to it once it’s done

Prob half my projects were just my manager deciding we needed something on a whim and then never using it


Both of those things are effectively exactly the same though


Exactly.

It’s to speed up boilerplate and save you having to look up function names or language specific syntax for that one feature you want to use, not to entirely do your job for you


I’ve found it behaves like a stubborn toddler

If you tell it not to do something it will do it more, you need to give it positive instructions not negative


I use it for writing functions and snippets all the time, at least in python and rust as long as you describe what you want it to do properly it works great

Example I used recently: “Please generate me a rust function that will take a u32 user id and return a unique RGB colour”

Generated the function, I plugged it in and it worked perfectly first time


Absolutely, I think the people who say it’s completely useless for code are in denial

Definitely not replacing anyone but my god it has sped up development by generating code I already know how to write 90% of

No more having to look up “what was the for loop syntax in this language again?”


This is absurd, the amount of effort that must have gone into this purely for shits and/or giggles


Better yet inline PHP inside the inline python in your rust code


Wouldn’t help if your chosen instance is down, same problem unless multiple other people are storing your code on their servers

Otherwise it kinda already is federated, you can have multiple remotes configured for a repo and push to both at once I’m pretty sure, then if one goes down you just use the other and sync later


This is unfortunate for new programmers cause I think it’s some kind of learned instinct rather than a hard rule



“tells the user the current time” would be an excellent comment for a clock

I’m not the best at commenting my code, but generally I just try to think of what information I’d want to know if looking at this 10 years from now

Imo comments are best used sparingly, don’t bother commenting something that anyone with a basic understanding of programming would understand straight away by reading the code

Functions should generally be commented with what parameters are and what they’re for, plus what they output

use reqwest::Client;

// create a http client class that all other files can import 
// so as to only create one instance globally 

pub struct HttpClient {
    client: Client,

}
impl HttpClient {
        pub fn new() -> Self {
            HttpClient {
                client: Client::new(),
            }
        }

        pub fn client(&self) -> &Client {
            &self.client

        }

}

Here’s an example where if I were to stumble onto this file 10 years from now, I might think wtf is this looking at it out of context, the comment explains why it exists and what it’s used for

(we’ll ignore the fact I totally didn’t just add this comment because I suck at commenting personal projects)


Just because you can take a hammer to it doesn’t mean that’s the best solution

In the right situation I imagine it could be a useful tool, much more subtle than just smashing the thing, less time consuming than taking it apart


Not that I know of, I meant it could be put in a pressurised spray bottle, for example a deodorant can


If it’s bolted to a wall and unattended neither of those things are an option


You don’t necessarily need to put it into the air supply, could just bathe the specific device you want disabled in helium from a deodorant can or something


Listen we all know deep down the solution is to try to parse it with regex



You’re probably right but it wouldn’t be a clean implementation for the os to do it. If it was more universal and better documented app devs could just put notices in themselves


Did the people there actually believe they were robots? Impressive acting of course but you can see they’re costumes in the video and I imagine it’d be more obvious in person


I think all apps should have those explanation screens of what’s not going to work if you deny X permission and why, especially in the case of an issue like this

It should request location access, and if it’s denied tell the user that it won’t be able to get the location data from images and give them a button to have it ask permission again


I’ve actively been told off at work on multiple occasions for putting too much effort into making my code reusable and extendable later down the line

(As of recently I’ve had to rewrite an entire project from last year because I gave up and just wrote a big blob of difficult to maintain code, then unsurprisingly the requirements changed)


Ah right, wild guess says it’s designing systems for them and not attempting to teach 5 year olds c++


So teaching/tutoring or something different? Had thought schools were a lot more balanced gender wise nowadays, at least from what I remember



Man I wish there were more women in programming, I’ve met like 3 and one of them was the sole female classmate in cs

I’d finally have something I could talk passionately about without boring them out of their minds


That would just be irresponsible we want fewer bugs not more of them!


Clearly you should just ship it with the debugger and call it a day



Definitely need to look into this for future, would make dev so much easier to just write for web and not have to deal with react native’s bullshit


Honestly doing it again I’d just write in xamarin or something not web orientated because as it turns out the web app is going to need to be separate anyway

I might look into capacitor but is that not basically just electron?


I do not code in C it was just a throwaway meme lol


I am spoiled by dotnet and rust error messages. They tell you exactly what the problem is, where it is, and in rust’s case sometimes even how to fix it

Then there’s C with “segmentation fault”


Long rest prevented areas in BG3
What's everyone's thoughts on how baldur's gate handles areas you're not allowed to short rest? I get that it adds to the challenge to have to conserve resources but up until moonrise towers the game has let us long rest when and where we please My friend and I have been burning through spell slots like nobody's business because when we start to run low on health and short rests we just throw everything we have at finishing a fight thinking we're going to long rest afterwards, only to be realise we can't and now have to fight through the remaining areas with no spell slots Would be nice if the game warned you when you were entering an area you wouldn't be able to long rest so we'd know to be a bit more conservative with resource usage and I feel like this is going to be a pattern going forward Tl;Dr don't mind not being able to long rest in certain areas but would be nice to have a heads up
fedilink

Screenshot is taken from the worst premade ever video WPE absolutely butchering the English language 2023 edition The game looks pretty cool but I don't recognise it and can't seem to find it with image search, does anyone recognise it?
fedilink

What are the best customizable routers nowadays?
Was rather shocked to find BT hubs don't allow you to change DNS servers anymore and force you to use their own ones, so I can't properly setup adguard. What routers are people using now that are reliable and will let me control my own network configuration
fedilink

Who else foresees environmental problems with this later down the line?
Microsoft are looking at putting datacenters under the ocean, which sounds like a really good idea to cool them but I can’t help but think a couple decades from now it’s going to start causing us problems
fedilink

De-googled contactless payment?
I'm trying to move away from Google and other big tech corporations as much as I can without sacrificing practicality but it seems like the only way to make contactless payments is with stock android on a Google approved device. Is there any alternative out there that would allow me to make contactless payments without these conditions met? (For example, if I put grapheneos on my phone)
fedilink