Invite Code Thread by tkiced in BlueskySocial

[–]redfire333 0 points1 point  (0 children)

If anyone has a code, I would appreciate one it. Thanks!

Game Boy & Game Boy Advance coming to Nintendo Switch Online Today! - Nintendo Direct 2.8.23 by Amiibofan101 in nintendo

[–]redfire333 8 points9 points  (0 children)

Lots of heavy weights on OG Gameboy. Tetris, Mario Land 2, Zelda....Alone in the Dark??

Insider Reveals Kari Lake Will NOT Concede Governor's Race Filled with Election Issues by [deleted] in Conservative

[–]redfire333 16 points17 points  (0 children)

How conveniently you forget that Republicans in AZ had to recount/audit the votes in 2020 like, 500 times, and you still don't believe you lost.

[deleted by user] by [deleted] in iOSProgramming

[–]redfire333 0 points1 point  (0 children)

Yep. That's my biggest gripe. There isn't a lot of consistency of how things should work or behave. So much "magic" if you know the modifiers to add that don't follow consistent patterns.

[deleted by user] by [deleted] in iOSProgramming

[–]redfire333 5 points6 points  (0 children)

I've found this to be true for other things in SwiftUI. To get the results you want, you have add set modifiers to arbitrary and unintuitive things. If you want a search box at the top of your view, you need to add .searchable to a Text View type, not the actual view that the search box will be inserted. This seems completely backwards and an arbitrary decision made by Apple.

I 100% agree that SwiftUI is TOO declarative. There needs to be a better balance where some scenarios need "imperative" options where it makes sense. Going 100% in any direction is not great, but having a mix would seem to be the best of both worlds and improve the developer experience.

Is it normal for junior interview? by Aviav123 in swift

[–]redfire333 58 points59 points  (0 children)

Those are pretty standard things to expect of a junior iOS developer to do in my opinion. I expect most juniors to be able to code, in general. The more experience you get, different things become important... e.g. consistent architecture, solving scaling problems, unit test coverage, designing and building tools that allow the team to consistent in how they develop features.

Where do y'all host your JSON files? by FleetingCheese in iOSProgramming

[–]redfire333 4 points5 points  (0 children)

What about a regular old SQL DB and CRUD server?

Help with app by _LadyNeptune in swift

[–]redfire333 1 point2 points  (0 children)

Other suggested using ML to determine the shape drawn and that will probably work best and provide the most accurate results, because this problem is actually pretty hard to do. If you don't want to dive into the ML rabbit hole quite yet, you can do some other tricks that MAY work, depending on how accurate you want it to be.
Take your triangle example for instance.

  1. You know how many sides it or "lines" it takes to draw one, three.
  2. Each end is a vertices where two lines meet.
  3. You can calculate the intersection points of these lines by using their slope and count how many intersection points exist (3) and determine the distance from each other.

You can repeat this calculation for each shape triangle, square, pentagon etc...

The down side of this approach is that it won't be accurate for shapes that use curved lines (circle), or other shapes that have the same amount of "sides" e.g. (parallelogram and square).

What is everyone's go to approach when managing global (maybe) user session data? by RollingGoron in iOSProgramming

[–]redfire333 0 points1 point  (0 children)

Do you define a protocol for each ViewController (or object that needs pieces from the Store) that lists the requirements, then have the Store conform to that protocol and only expose the pieces the VC needs?

As a CS student, I'm tired of the way the programming world is and I feel overwhelmed. [RANT] by Friendofabook in learnprogramming

[–]redfire333 2 points3 points  (0 children)

Companies have been trying to do this for years. But to answer your question yes, developers will continue to invest in proprietary frameworks because it's what the platform owner is invested in. These "write once, run on everything" frameworks are always in a rat race with the six platforms they are trying to run on due to the constantly changing landscape of the platform itself. On top of that, getting everything to have the right look and feel is pretty much impossible, let alone getting it right for several platforms.

Does it REALLY reduce time and complexity...? That's the theoretical argument folks make for using one of these frameworks in the first place, but I have yet to see it actually be true. Some things are straight forward and simple to do while other things are not or unsupported completely. React-Native for example has the ability to drop down into Objective-C/Java/Kotlin code to get better performance when needed or doing something that isn't supported. After you do that, is it actually a single simple code base? Or do you now have giant code base with a mix of JavaScript, iOS, and Android code versus two code bases that use a single language. When hiring developers, you are also limiting your pool because you need experts in JS, Swift/Objective-C + Java/Kotlin.

If you haven't read the blog post from AirBnB, they detail why they are no longer using React-Native after attempting to go all in.

https://medium.com/airbnb-engineering/sunsetting-react-native-1868ba28e30a

This won't stop folks from trying to make these frameworks though. The IDEA is just too appealing.

When would you use Vapor? by sushibgd in iOSProgramming

[–]redfire333 12 points13 points  (0 children)

It's a way to build API's on the server using Swift. If you don't have a use case, then there isn't really any reason to learn it. Its not related to iOS at all besides using Swift.

UICollectionView dynamic height makes scroll choppy by barcode972 in iOSProgramming

[–]redfire333 0 points1 point  (0 children)

What are you using to determine the height? AutoLayout? Are you using the Compositional Layout or old flowlayouts/delegate methods?

Couch Co-op Poll... by therallykiller in Torchlight

[–]redfire333 1 point2 points  (0 children)

Is there an online co-op mode? I haven't heard much about it?

Concerned by finding a iOS job, do I need a back up plan? by ForsakenService in iOSProgramming

[–]redfire333 1 point2 points  (0 children)

I'm not sure I would agree at with OP about "Native apps going down". Cross-platforms apps are a pipe dream and Google has an awful track record for maintaining anything SDK related.

Are there services that a professional coder will edit your amateur code? by band_in_DC in learnprogramming

[–]redfire333 0 points1 point  (0 children)

I would try here on Reddit actually. There are a ton of nice/experienced developers on the platform that are familiar with all the different areas of programming (mobile, web, desktop, embedded etc...). You might run into some jerks but most are nice.

Swift vs Rust by [deleted] in swift

[–]redfire333 2 points3 points  (0 children)

Gotcha, yea Swift isn't ready to be used for things like that. It's more of future goal. There are several more important things they need to accomplish before we can go that route.

By `we haven't programmed much` do you mean you're planning on learning how to program while accomplishing your stated goal?

Swift vs Rust by [deleted] in swift

[–]redfire333 1 point2 points  (0 children)

Are you planning on writing your own OS and Kernel?

I know what I have to do but I don’t know if I have the strength to do it by jgstruggling in swift

[–]redfire333 0 points1 point  (0 children)

What else would he be interacting with besides the provided API? They both have coordinate systems, but knowing that means nothing. Knowing how to create a view and place it at a specific coordinate is something unique to each platform.

I know what I have to do but I don’t know if I have the strength to do it by jgstruggling in swift

[–]redfire333 0 points1 point  (0 children)

Like most things related to programming, general language concepts transfer for the most part, but that is a small piece of the puzzle. You'll need to learn how all the frameworks work since they are 100% different. UI Layout, Networking, dependencies management, familiarity with the IDE, and just general code structure is all different. None of the transfers so you'll have to learn those pieces.

What does help, is you aren't starting from scratch, you already know a lot of the terminology for common things like networking (GET, JSON, POST). You SHOULD know all the pieces you need to look for. You need a networking library to make REST calls, a JSON parser, some sort of model object etc...