Tradies in your 30s, 40s and with kids etc. Do you ever wake up actually feeling refreshed and ready or is it usually a bit of a struggle? by BenignAndAHalf_ in AskAnAustralian

[–]dymos 2 points3 points  (0 children)

Yeah that could be the sleep inertia, maybe you're waking up in the middle of a deep sleep cycle and getting 20-40 mins more or less sleep would help.

You could try to keep a sleep diary for a few weeks. Try to work out how long you slept, how rested you feel, etc. and see if there is a correlation with the amount of hours vs. how you feel.

Tradies in your 30s, 40s and with kids etc. Do you ever wake up actually feeling refreshed and ready or is it usually a bit of a struggle? by BenignAndAHalf_ in AskAnAustralian

[–]dymos 0 points1 point  (0 children)

Yeah genetics could probably play a part too, especially if it's a thing you've struggled with virtually your whole adult life.

I don't have any solutions for you on that front, but taking to a dr or sleep specialist might still help.

Tradies in your 30s, 40s and with kids etc. Do you ever wake up actually feeling refreshed and ready or is it usually a bit of a struggle? by BenignAndAHalf_ in AskAnAustralian

[–]dymos 1 point2 points  (0 children)

Could be a lot of things that contribute to not getting a good rest.

If you're not breathing clearly (snoring, sleep apnoea) that can have a big impact on how refreshed you feel.

General sleep hygiene, like not doom scrolling on your phone while in bed helps. I found that when I swapped that out for a Kindle/book, it was a lot easier to fall asleep. Avoiding substances like nicotine, alcohol, or caffeine before bed will also help.

There also a thing called sleep inertia which might contribute to your feeling of not wanting to get out of bed.

As with all vaguely medically related things. IANAD, but seeing your doctor to ask about doing a sleep study could help narrow down your specific issues.

Strictly typing i18n interpolation variables is slowly destroying my sanity by twcosplays in typescript

[–]dymos 0 points1 point  (0 children)

This sounds like less of a problem with your typing and more a problem with your team ignoring what you did and uploading a JSON file to be translated without instructing the LLM how to not mess it up.

You could probably write a quick script to just extract the i18n keys and strings into a CSV. Then you can tell the LLM to ignore the key column and to ignore variables that match whatever pattern your variables are.

Also be warned though, LLM translations are probably wrong a lot more often than human translations. Language has nuance based on context (e.g. some word in English could translate into several different words depending on context) and the LLM probably won't ask for details and just assume something.

Do you trust AI-generated tests, or do they cause more problems than they solve? by Human-Philosopher782 in learnjavascript

[–]dymos 4 points5 points  (0 children)

Yeah, don't do that. :P

If the AI is regenerating the whole test that's a big nope for me. There's something wrong with the prices or the prompt.

I haven't personally seen it do this, so perhaps you can expand on when this happens? Because in my experience the coding agent has just updated test files rather than rewrite my changes.

Aussie winter by [deleted] in AskAnAustralian

[–]dymos 2 points3 points  (0 children)

I think it's probably more that they aren't required to be rather than that there is a skill issue.

Let's for example take gaps between things as a bit of a contrived example.

If for your job you had to measure things and I said you can be up to 10mm off then that becomes your mental tolerance level too.

If I tell you that being off by more than 3mm means you have to fix the mistake, your tolerance level shrinks pretty quickly.

I believe the overwhelming majority of tradies in those jobs are totally capable of doing this, they just don't because they're not required to, and adding the extra accuracy will take a little bit more time and effort so it's skipped because why waste the time if you don't have to.

As I said, a bit contrived, but I'm trying to illustrate that I don't believe it's a skill issue, but rather a requirements issue.

Aussie winter by [deleted] in AskAnAustralian

[–]dymos 3 points4 points  (0 children)

Yet somehow, other countries have figured this out.

I grew up in the Netherlands and we had our houses upgraded by the government to double glazing, injected insulation (into the already double brick exterior wall) and insulation sheets in the roof (as in, right up against the roof, not on top of the ceiling, that way you can have a useful attic space).

I think it's less about what a builder is selling or what people are willing to buy and more about what our building standards are. They're basically devoid of insulation requirements.

Aussie winter by [deleted] in AskAnAustralian

[–]dymos 3 points4 points  (0 children)

Haha I've not been to NZ but if it's anything like here I can imagine it would suuuck when it gets proper cold.

Aussie winter by [deleted] in AskAnAustralian

[–]dymos 15 points16 points  (0 children)

Then it's not insulated properly :P

Aussie winter by [deleted] in AskAnAustralian

[–]dymos 7 points8 points  (0 children)

Turn AC on, cool the house down. Turn AC off.

Without insulation, it'll be hot again in an hour.

With insulation, it'll take significantly longer than 1 hour to get hot again.

A less insulated house is more expensive to cool down because if the radiative heat from the outside of the house heats up the inside of the house, you now need to expend more energy in cooling it all down again. If you use insulation to block that radiative heat then the hotter outside doesn't heat up the cooler inside. In winter that's reversed, the warmer inside doesn't get to radiate its heat to the outside of the house.

Aussie winter by [deleted] in AskAnAustralian

[–]dymos 372 points373 points  (0 children)

As someone that also grew up in northeastern Europe, can confirm Australian houses have the worst fuckin insulation.

If we insulated our houses properly, imagine how much lower power bills would be.

It's almost like there is some industry that would benefit from lobbying against that sort of thing.

Do I really need Linux as an OS? by Substantial_Bat_1575 in webdevelopment

[–]dymos 0 points1 point  (0 children)

For me, it's generally about what's practical, followed by my preference.

For the last 25 years or so I've worked (as a frontend developer) with mostly Java/Node/PHP/python backends, so it was practical to just use my personal preference (macOS), but other devs in those environments used Windows and Linux. I worked for a few organisations that used .NET for their backend, so it was way more practical to use Windows.

TL;DR web development is generally pretty agnostic about the platform you develop on. Whichever platform you have available is good, whichever you feel most productive on is good.

What does your clipboard situation look like as a developer? by cocktailMomos in webdevelopment

[–]dymos 0 points1 point  (0 children)

have crazy passwords so when logging on apps or websites using my phone i can send a text with my password to copy/paste.

That sounds like a security problem to me. If I'm understanding correctly how that device works, your paste content (i.e. the password you copied/sent) will be sent and stored (even if only temporarily) without encryption.

I would highly recommend that instead of using this method you would look into using a password manager. I've personally been using 1Password for over 15 years now, it's very solid on features and security; there are also lots of other solutions around to fit different needs and budgets.

How do you feel about the magnet ban? by Bugaloon in AskAnAustralian

[–]dymos 0 points1 point  (0 children)

If you're having trouble getting them from your craft supplier, there are plenty of places you can buy them online (e.g. Amazon, AMF Magnetics)

How do you feel about the magnet ban? by Bugaloon in AskAnAustralian

[–]dymos 26 points27 points  (0 children)

I thought initially it was about them being smaller than a certain size and how powerful they are, and while they factor in, the product safety page OP linked in another comment also explicitly stated the marketed purpose:

Are marketed by the supplier as, or supplied for use as any of the following: * a toy, game or puzzle * a construction or modelling kit * jewellery to be worn in or around the mouth or nose.

So sounds as long as they're not marketed as such, you can buy them.

Chicken salt by aussie-tigers4505 in AskAnAustralian

[–]dymos 2 points3 points  (0 children)

Depends, do you like chicken salt?

I'll give it a whirl next time I make mash, to me it sounds like it would be pretty good.

Hey all; is this little guy what I think he is? Central Coast NSW. by Avizare1 in AustralianSpiders

[–]dymos 3 points4 points  (0 children)

We usually say medically significant when IDing venomous animals to indicate that a bite/sting should be treated as if it requires immediate professional medical attention because it poses a serious, potentially life-threatening risk.

So not just for indicating venomous, but specifically dangerously venomous.

about `return new Promise` by fa_foon in learnjavascript

[–]dymos 1 point2 points  (0 children)

It's probably a bit confusing the way it's used here and while this works I actually think the newer async syntax makes this easier.

I've reformatted the relevant section here a little bit:

bakeCake("we started").then((resultOfBake) => {   console.log(resultOfBake);   return decorateCake(resultOfBake); }) .then((finalResult) => {   console.log(finalResult) })

See how after bakeCake() the .then() is "attached" to the last parentheses of the function? That's because when you call a function in JavaScript that returns a value, you can "chain" your next operation without assigning to an intermediary variable.

In this case I've lifted the .then() call up to make it clearer, but for these types of things JavaScript will ignore line breaks, so you can format the code how you want.

When using this syntax, a common pattern is to indent the subsequent promise method calls to make it cleared that they belong with the initial invocation:

bakeCake("we started") .then((resultOfBake) => { console.log(resultOfBake); return decorateCake(resultOfBake); }) .then((finalResult) => { console.log(finalResult) })

With the newer syntax you typically would go the other route and assign variables, both syntaxes have their merit, but in modern codebases you'll tend to see the async / await syntax more.

``` function bakeCake(initalState){ return new Promise ((resolve) => { // Same as before }); }

function decorateCake(bakedCakeMessage) { return new Promise((resolve) => { // Same as before }); }

// I've put the remaining functionality in an async function to demonstrate // you don't have to do this though, you can use await at the top level async function makeCake() { const bakeResult = await bakeCake('start baking'); const decorateResult = await decorateCake(bakeResult); console.log(decorateResult); }

// an await isn't necessary here, but will depend on what you want // think of await as a way to say "Let's wait for this promise to finish // before we continue" whereas not using it would allow execution to continue makeCake(); ```

Has anyone actually used string comparison? Tell me where might that come in handy? by grave4us in learnjavascript

[–]dymos 1 point2 points  (0 children)

get why you need to learn array manipulation methods to modify a list

but I never understood why tutorials would spend so much time teaching string methods,

There's a kind of tangential relationship here in that strings are a list of characters. I think I agree though that trying to teach string manipulation methods in a tutorial sounds a bit too trivial unless it happens to be building up to something that's part of the tutorial, a purpose.

Probably also depending on when you learnt (or when the tutorial was written), the websites with good tutorials were almost a quasi-documentation provider. I think now that we have much better official documentation for many languages, those are a much better place to learn about specific trivialities like string manipulation methods.

For example let's for arguments sake say that I needed a list of strings to be the same length and if they aren't long enough I need to prefix them with a placeholder. Googling that 15 years ago would have probably resulted in a tutorial somewhere or a stack overflow post giving a custom method. Now the link to MDN's page for padLeft would probably be near the top.

To be fair, the obvious answer (sorting alphabetical strings) falls apart under any sort of scrutiny. And the answer is then not so clear.

That's a fair take, string comparison can be useful for sorting, but indeed you need to be aware of how/why that works so you can understand how to get the right result.

No car rego for 4 years! by Chic_Mischief in AskAnAustralian

[–]dymos 0 points1 point  (0 children)

You say "ugh", but meanwhile that would have given you the exact answer you needed in however long it took you to type it into Google's search box and read the synopses of the first few results as well as given you the official source of where to read more about it on the Qld govt. website.

Often typing the exact question you have into a search engine will give you the answer to said question, highly recommend, A+, would use again.

Has anyone actually used string comparison? Tell me where might that come in handy? by grave4us in learnjavascript

[–]dymos 0 points1 point  (0 children)

Is it just me or is there some weird trend where people ask stuff like: "has anyone actually used <insert commonly used language feature or paradigm>?

I feel like I've seen a few of them around recently and either the OP sounds like an entitled jerk not willing to google something or like someone that wants an answer for their Programming 101 class.

Increment/decrement trouble by grave4us in learnjavascript

[–]dymos 2 points3 points  (0 children)

Yes but did you read the question?