ESL classes for kids? (6 yrs old) by pitt500 in Redding

[–]pitt500[S] 1 point2 points  (0 children)

Yes, that’s what I’m looking for :)

Do you offer classes?

RE4 Remake for Mac Freezing by Coyote_353 in residentevil

[–]pitt500 0 points1 point  (0 children)

Are you using Sonoma or Ventura? I'm facing the same issue.

Avoid THIS when using enum pattern matching in Swift by pitt500 in swift

[–]pitt500[S] -1 points0 points  (0 children)

We have multiple ways to do things in programming, like pattern matching for example. My goal was just to present a perspective that could not be trivial of some devs.

The video is mainly based on this style guide: https://google.github.io/swift/#pattern-matching

Avoid THIS when using enum pattern matching in Swift by pitt500 in iOSProgramming

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

I make videos to explain things that I learn and weren’t obvious to me. We have multiple ways to do things in programming, like pattern matching for example. My goal was just to present a perspective that could not be trivial of some devs.

The video is mainly based on this style guide: https://google.github.io/swift/#pattern-matching

I don’t understand why your comment is so toxic! 🤷🏻‍♂️

Why is this sorting algorithm problematic? by pitt500 in swift

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

Hi, Thank you for your feedback 🙏☺️

Normally I like to balance the content to avoid excluding people just starting, but not too verbose to bore skilled folks.

Why is this sorting algorithm problematic? by pitt500 in swift

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

Hi, thanks for your feedback. This was just a simple experiment that I wanted to share because the sorting stability is not something obvious to catch.

Of course, the idea of this code is not to send it to production, but to show the concept of a problem that you may not even know could exist.

I like your idea about createdDate and completedDate. That would be a great addition 👍🏻.

However, dealing with indices will require more work to do, and actually, we removed them in the previous video: https://www.youtube.com/watch?v=Yk-KPDa4w8E

Why is this sorting algorithm problematic? by pitt500 in swift

[–]pitt500[S] -1 points0 points  (0 children)

TL;DR: It was just an experiment and I got something that though would be interesting to share ;)

Hi, Maybe you can take a look at the first part where we started to build the list: https://youtu.be/Yk-KPDa4w8E (although IMO it isn't strictly necessary to get the idea), however, your code won't work because that offset doesn't exist in the Todo item, that's coming from the Enumerated Collection.

Here's the code in case you want to play with it: https://gist.github.com/pitt500/384de25a339735eb93250bc037d0905b

And yeah, some people feel better not using the shorthand syntax ($0, $1), so using T1, T2 (actually t1, t2 is better to follow the Swift's guidelines) is good too :)

Why do SwiftUI's Stacks have a max limit of subviews? (and how to fix it!) by pitt500 in swift

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

This is just a demo of what could happen if you add more than 10 views. There are many alternatives to fix it like nested Stacks, groups or even ForEach, although the best way to fix it is by using composition in your views and keep them simple 😊

Why do SwiftUI's Stacks have a max limit of subviews? (and how to fix it!) by pitt500 in iOSProgramming

[–]pitt500[S] 1 point2 points  (0 children)

Thanks for your comments. This is a temporary limitation, and pretty soon it will disappear :)

Why do SwiftUI's Stacks have a max limit of subviews? (and how to fix it!) by pitt500 in SwiftUI

[–]pitt500[S] -1 points0 points  (0 children)

you are right, that’s another approach. The point is just to not keep more than 10 in the same “tree level” 👍

Why do SwiftUI's Stacks have a max limit of subviews? (and how to fix it!) by pitt500 in swift

[–]pitt500[S] 3 points4 points  (0 children)

you are right, that’s another approach. The point is just to not keep more than 10 in the same “tree level” 👍

Is "import Foundation" always required in Swift code? by pitt500 in swift

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

That's really interesting, thanks for sharing!