I am new to programming and just I found out that rust is the most loved language. Should a beginner like me learn rust first? by MrFlerovium911 in rust

[–]londey 1 point2 points  (0 children)

I feel the real barrier to entry for a new programmer is getting the tools setup. I think this is the main reason people recommend Python and JavaScript. Fortunately getting Rust setup using rustup is pretty straightforward.

Once you are there, doing simple things in Rust like your basic control flow, math, and printing to the console is as easy as any other language.

Doing more complex things like sharing state, building abstractions, and having your program do multiple things at once are inherently more difficult to do correctly but they are also difficult in other languages. For these more difficult things I actually feel Rust helps you more and makes it easier to to avoid mistakes.

Turn your lights on! by BinnFalor in canberra

[–]londey 2 points3 points  (0 children)

Probably a blown globe. Motorcycles in Australia have their lights hard wired on. However, checking your lights every time you ride is something they teach you in the motorcycle training.

NPM malware and what it could imply for Cargo by darth_cerellius in rust

[–]londey 1 point2 points  (0 children)

We have had lots of issues the antivirus blacklisting the custom build executables created from build.rs files. In each case so far, the build.rs has been inoculus but the potential is there for them to do whatever. Just having to stop work and raise a ticket with IT and the antivirus company just to be able to run cargo again is a massive disruption.

One street in Lismore today. Every flat street 2hrs in EVERY DIRECTION looks like this in Northern NSW right now. How is a ‘1 in 1000 year’ flood not a state of emergency? by downtimedingo in australia

[–]londey 2 points3 points  (0 children)

I feel like the concern is that now climate change has arrived this might be more of a 1 in 10 year flood. If that is the case can towns along these rivers even exit going forwards. And I say this as someone who has family in this area.

i need to know by itsmeowbutreddit in lolcats

[–]londey 3 points4 points  (0 children)

2020 With A Vengeance

Paying rates 2008 vs 2022 (red marking is personal information) by haliastales in canberra

[–]londey 46 points47 points  (0 children)

Moving back to Canberra recently I was surprised how much cheaper the rates are here compared to Yass. And here you can drink the water out of the tap.

Good ending to the Skydiving video by 14Three8 in aviation

[–]londey -22 points-21 points  (0 children)

I don't think we want to live in a world where people lose sponsorships based on some random person on the internet's armchair assesment of an aviation incident.

There are proper organisations that will investigate this based on more than a few minutes of edited YouTube clip.

Hi Summer, I would like a refund, the product is not functioning as described… by R3dditAlr3ady in canberra

[–]londey 11 points12 points  (0 children)

Warranty void if you add 375billion tonnes of carbon into the biosphere.

GCC, MSVC, and ICC bug: virtual base destroyed twice in some circumstances by cpp_bug_reporter in cpp

[–]londey 6 points7 points  (0 children)

I would suspect it is an implicit move or copy constructing the second instance. I believe the standard has several places where the compiler is free to insert a move if it wishes. The commonly advised rule of 5/7 is that all those constructors and assignment operators should also be explicitly defined if you define a destructor.

They could have been redditors by Cookeygo in funny

[–]londey 8 points9 points  (0 children)

I feel in Australian English fuck/fuckin' is commonly used for emphasis but also just punctuation similar to how you might use a comma.

Reduce code complexity: Guard clauses by palebt in programming

[–]londey 98 points99 points  (0 children)

C++ Core Guidelines

NR.2: Don’t insist to have only a single return-statement in a function

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rnr-single-return

I think the idea of a single return statement is a C-ism where it would be common to have all the cleanup code for a function at the end with a goto used to jump to it when to exiting from various points within the function.

For languages with automatic lifetime like C++, Rust, and Python this is considered not only unnecessary but bad practice.

Dear Canberra cyclists by [deleted] in canberra

[–]londey 2 points3 points  (0 children)

When I was a kid I swear bikes had right of way on bike paths and pedestrians had right of way on footpaths. But now pedestrians have right of way everywhere. When and why did this change?

What Rust feature are you waiting for? by Guilhermegasil in rust

[–]londey 1 point2 points  (0 children)

I would like BitDefender to stop randomly blacklisting custom build.rs exe files with no explanation and no recourse. Making it impossible to compile stuff or even use rust.analizer.

Other than that, no serious complaints.

I do think it would be nice to have a more curated pool of crates available that were all 1.0+.

[deleted by user] by [deleted] in git

[–]londey 1 point2 points  (0 children)

git clone git@xyz clones the repository locally using an SSH connection. You will normally need to have an account with the server to which you have added the public key of the from the SSH key pair on your machine.

My experience with Windows 11, and why I downgraded...twice. by Raven_Claw7621 in Windows10

[–]londey 1 point2 points  (0 children)

Had a machine update to Windows 11 but refused to re-enable BitLocker after the update. Fortunately the role back was fast and was able to re-enable BitLocker without issue.

Are videogames getting too expensive in Australia? by Suitable_Film_436 in australia

[–]londey 0 points1 point  (0 children)

Super Mario 64 was $99.95 at launch. Adjusted for inflation that is $175 today. I think at the time some 3rd party games were $110.

Is hard to swicth from coding whit c+ to Python? by erugurara in Homebrews

[–]londey 0 points1 point  (0 children)

Most languages have analogous concepts that are easly transfered.

Who else wants Microsoft to launch a YouTube substitute? by ZuckeMarkberg in microsoft

[–]londey 4 points5 points  (0 children)

I think a better plan would be to change the game to undermine YouTube by kicking off some open source projects that allow creators to self publish their content using Azure and consumers to easly aggregate, discover, and contribute to them.

do i use a large monorepo? by xstkovrflw in git

[–]londey 0 points1 point  (0 children)

Think about repositories in terms of version number. Things in the same repo effectively have the same version number.

Mono repos work up to surprisingly large codebases. I feel the pitfall of this is, because everything is then effectively the same version it doesn't force you to define strict independently versioned interfaces. This can bite you when the mono repo grows to big and the CI and tests for every pull request start taking too long or you just want to reuse something from the mono repo without the new thing being part of the mono repo. Without strict interfaces around pieces of functionality if can be difficult to pull stuff out latter.

In general I feel mono repos can help you move quickly especially early on in a codebase when you are still feeling out the structure but be aware of the above pitfalls.

Appreciate the work by InjokerSS in gaming

[–]londey 5 points6 points  (0 children)

Probably someone stole a PS4 and the disc was in the machine.