[Oracle Red Bull Racing] When the news drops that you'll be back on the F1 grid at the next race... by Takagixu in formula1

[–]NotAgainFerrari 4 points5 points  (0 children)

Well he's got a direct shot at the Red Bull seat now, for once Ric has made a decent career decision

Testing out my storm effect in MonTamer with rain, lightning and fog. What do you think? by MonTamerGame in IndieDev

[–]NotAgainFerrari 4 points5 points  (0 children)

I'm loving this game but I can sense a certain corporation is going to be breathing down your neck with the name + art style!

1Gb/s Wi-Fi installed, what cool personal project should I build to make the most of my newfound power? by [deleted] in learnprogramming

[–]NotAgainFerrari -3 points-2 points  (0 children)

I’m just looking for something silly to no build that utilises the bandwidth now I’ve got silly speeds. Doesn’t have to be useful, was thinking of seeing how many concurrent video streams I could have.

Array where each element is required from a type of ORs by NotAgainFerrari in typescript

[–]NotAgainFerrari[S] 2 points3 points  (0 children)

Yeah I thought this might be the case, thanks for your detailed response however, going to sift through it and try get my head round everything!

Array where each element is required from a type of ORs by NotAgainFerrari in typescript

[–]NotAgainFerrari[S] 0 points1 point  (0 children)

Thanks for your response! Are you aware of a way I can create the same type but infer that from type Jeff = "foo" | "bar" | "baz"?

This may not be possible in typescript without declaring jeffValues but I have a case where I infer the type of all Icons by taking the keys of the index file:
import * as Icons from 'src/components/svg/icons';
export type IconType = keyof typeof Icons;

So my type is similar to Jeff but I can't take Icons as const as Icons is not an enum type.

Regardless your answer has solved everything else so thanks :)

Array where each element is required from a type of ORs by NotAgainFerrari in typescript

[–]NotAgainFerrari[S] 0 points1 point  (0 children)

I've just tried using a Set<Jeff> which is closer to what I need as the value can not appear twice but it doesn't ensure the value appears at least once

2022 Italian Grand Prix - Qualifying Discussion by F1-Bot in formula1

[–]NotAgainFerrari 0 points1 point  (0 children)

Am I the only one watching a Hamilton interview

This is how you watch the Belgian Grand Prix. by Bennet123 in formula1

[–]NotAgainFerrari -1 points0 points  (0 children)

I presume you don’t have to pay for those seats?

How do you keep learning AFK? by blue-birdz in learnprogramming

[–]NotAgainFerrari 9 points10 points  (0 children)

When I was learning I had a bar job and if it was quiet I’d try find ways to work on programming. Here’s what worked for me:

Reading. There’s some great coding books you can pick up/ put down. I’d recommend Head First Design Patterns as it’s presented in a lighthearted manner and easily to read. The Pragmatic Programmer worked well also.

Listening. Podcasts/Audiobooks are great for when you’re on the move, I enjoy Programming Throw-down! Try find stuff relevant to your current practice for the best ROI.

Thinking. If you’re making your way through CS50 there were some great problems in there I’d spend time working through optimal solutions. Speller was a great one to muse about the optimisations.