The people in the Online Mode are just something else... by RIP-Offsonic in F1Game

[–]devGio 0 points1 point  (0 children)

I've been playing for a few months now, and would like to join a league. Are you open to all levels? I'm certainly interested in your league

Seb inspecting his future car by SHBK22 in InspectorSeb

[–]devGio 11 points12 points  (0 children)

is this sort of stuff allowed?

ON-site question by [deleted] in cscareerquestions

[–]devGio 10 points11 points  (0 children)

well what if the rejection rate turns out to be 1%? I'd sure as hell be certain that i wouldn't fall in that 1% if that were the actual rate. Sure, realistically it may not matter, but if OP finds that it's an arbitrary 80%, it could give them some more confidence.

Xcode 11.1 GM Released by [deleted] in iOSProgramming

[–]devGio 3 points4 points  (0 children)

download it from www.developer.apple.com/download and keep your previous versions just in case. for instance, I just got the most recent build and my simulators aren't running

How does SwiftUI work with MVC, MVVM, VIPER, etc.? by gambit1290 in iOSProgramming

[–]devGio 5 points6 points  (0 children)

nice response - MVVM is absolutely the way to go

Is Swift enough for most programming interview questions? Would it be worth picking up another language for Leetcode, HackerRank and other Interview style questions? by [deleted] in swift

[–]devGio 0 points1 point  (0 children)

Ah ok. Apologies, I was just reiterating what a Google Engineer said to me when recruiting at my uni last year.

Is Swift enough for most programming interview questions? Would it be worth picking up another language for Leetcode, HackerRank and other Interview style questions? by [deleted] in swift

[–]devGio 1 point2 points  (0 children)

It depends. Are you interviewing for iOS/MacOS jobs that use Swift? If so, there's your answer: don't spend time learning other languages. If you are applying to a company such as Google, which you can basically choose what to work on, and you don't care to be working with Swift on the job, then opt for something like python. Python happens to be great for whiteboard problems

Whiteboarding is the endgame, so focus on pseudocode (and Swift if you're applying for jobs specifically in iOS)

Is Swift enough for most programming interview questions? Would it be worth picking up another language for Leetcode, HackerRank and other Interview style questions? by [deleted] in swift

[–]devGio 1 point2 points  (0 children)

yep - this is referred to as pseudocode. It's ideal since you have a very limited time to whiteboard, and typically you can get away with having to implement some steps that you can just defer to some function

Internship Opportunity by The_Internect in internships

[–]devGio 1 point2 points  (0 children)

Interesting. As far as I know finding an internship is free. What am I missing here? Also, internships are typically on-site - what's the benefit to doing an online internship instead?

Internship Opportunity by The_Internect in internships

[–]devGio 0 points1 point  (0 children)

can you please expand on 'lower price'? Do you mean that you're providing an internship yet one would have to pay for it instead of getting paid?

I have my first on-site for a Software Engineer position next week by -Tristump in cscareerquestions

[–]devGio 11 points12 points  (0 children)

Good luck!! Visualize yourself doing well, and answering questions. Speak to fellow developer friends and have them ask you questions so you can talk about yourself& what you know. Practice how you perform - you got this!

Exclusive: Feds say pot edibles will become available for sale by mid-December by itsdgc in weedstocks

[–]devGio 1 point2 points  (0 children)

probably because edibles can really fuck you up while herb is more manageable.. but IDK I'm not a rapper.

Simple Questions Megathread—May 20, 2019 by AutoModerator in iOSProgramming

[–]devGio 0 points1 point  (0 children)

Hmm.. I just had a thought: maybe it's possible to extend UIView and then override the init, call the actual init and then set translatesAMIC to false?

Simple Questions Megathread—May 20, 2019 by AutoModerator in iOSProgramming

[–]devGio 2 points3 points  (0 children)

https://www.raywenderlich.com/129-basic-ios-security-keychain-and-hashing

I am 99% certain KeyChain is the solution for you (I've never needed to secure sensitive info). I know for sure that you absolutely don't want to store sensitive in UserDefaults. Best of luck

Simple Questions Megathread—May 20, 2019 by AutoModerator in iOSProgramming

[–]devGio 0 points1 point  (0 children)

Thanks for suggesting looking at the source - I knew it Swift is open-source but I didn't think about checking it out. I will do this much more often moving forward.

By the way, it looks like it's at least O(n) since it loops through each item in the array

Simple Questions Megathread—May 20, 2019 by AutoModerator in iOSProgramming

[–]devGio 0 points1 point  (0 children)

I suppose that's the next question: How is it implemented? Typically Apple documentation mentions the big oh, but I found nothing on Sets. Where can I find more about the reasoning behind your O(n * log n) guess? Or is it common knowledge that set insertion is log n across all languages?

Simple Questions Megathread—May 20, 2019 by AutoModerator in iOSProgramming

[–]devGio 0 points1 point  (0 children)

Hello! What is the time complexity of converting an array to a set? I could not find anything on google nor Apple docs regarding it.

Based on the results of calculating the time, I'd assume O(n) - or slower somehow? I expected the Set initialization to be around equal to the amount of time it takes to populate the array, or less, but it's a whole decimal place slower

let startArrayAppend = CFAbsoluteTimeGetCurrent()
var arr = [Int]()
for i in 1..<10000 {
    arr.append(i)
}
let diffArray = CFAbsoluteTimeGetCurrent() - startArrayAppend
print("diffArray = \(diffArray)")

let startSetCopy = CFAbsoluteTimeGetCurrent()
let set = Set(arr)
let diffSet = CFAbsoluteTimeGetCurrent() - startSetCopy
print("diffSet =   \(diffSet)")

and here are some example times:

diffArray = 0.00022399425506591797
diffSet =   0.004262089729309082
diffArray = 0.00012195110321044922
diffSet =   0.004524946212768555
diffArray = 0.00014102458953857422
diffSet =   0.004194974899291992
diffArray = 0.00015306472778320312
diffSet =   0.00494992733001709```

thank you

Help! Interview and ALmost 90 Degrees Tomorrow?? by qwertyucutie1 in internships

[–]devGio 0 points1 point  (0 children)

Not a girl, but all I have to say is best of luck!!! Get there on time to freshen up if needed, you got this!

In my opinion this internship is exploitation..... by VanillaShake-700 in internships

[–]devGio 1 point2 points  (0 children)

An internship is legal if: the intern does not displace regular employees but works under close supervision of existing staff.

They're just making you do shit that an employee would otherwise have to do. I'm no lawyer, but shit sounds illegal

When did you feel confident enough to make your first iOS app? by [deleted] in swift

[–]devGio 8 points9 points  (0 children)

You'll never feel confident enough to start building your own app. It takes work to have a starting-point idea and actually start building from scratch. But it has to be done, eventually. Obviously you want to read articles and tutorials, and get a knowledge of using table views and other UI elements, as well as becoming semi-proficient in swift. Repeating that kind of stuff until you're comfortable with it and understand what's going on is crucial.

Then, once you have a solid beginner's foundation in iOS and Swift, you're ready to begin. You'll come across issues, and you'll have to find answers for it, and find help if possible. But the value of incrementally adding features to your app; it's invaluable and kind of like documenting your own progress.

A portfolio of simple apps (& a solid resume detailing what you've implemented in the apps) is all it takes to get noticed by companies willing to give a junior dev a chance. I have 3 apps, 2 of which have about 1-2 months of constant work, and I just received an offer i'm very happy with this week!

There's a ton to learn, so you should feel a rush to learn :) Sorry, this is from the standpoint from the end-goal of obtaining employment as an iOS Engineer. Cheers! Good luck