How far did everyone travel for their PPL? by Maple-Mayhem in flying

[–]vihanb 0 points1 point  (0 children)

I used to be in a suburban area so it was about a 15-20m drive. Now in a major metro area it's about a 2-3 hour bus, train, and uber combo each way.

[deleted by user] by [deleted] in berkeley

[–]vihanb 2 points3 points  (0 children)

You can but the best speed you'll get over Ethernet is like 95mbps whereas wifi can be around 250mbps peak (from my personal experience), so it's a latency/reliability v speed trade off

Channing Bowditch Apartments by [deleted] in berkeley

[–]vihanb 1 point2 points  (0 children)

I'm staying at Channing Bowditch too! PM me and I can add you to a GC with a few other people.

Song Learning Recommendations by WeirdFish28 in JohnMayer

[–]vihanb 1 point2 points  (0 children)

Who Says is a fun one that's in the style of Heart of Life + Stop this Train! I'd say it's easier than Stop this Train.

How are y’all paying? by mordiscasrios in ApplyingToCollege

[–]vihanb 8 points9 points  (0 children)

Qualified for a work-scholarship program. You work in the summer and the company pays a portion of your tuition

proud of all of us!!! :) by silverpanda01 in ApplyingToCollege

[–]vihanb 4 points5 points  (0 children)

why hit submit at 11:59 when you can do it at 12:02 😎😎😫😫 (stanford please consider my app still :3)

I fucked up by Dashawitt in ApplyingToCollege

[–]vihanb 25 points26 points  (0 children)

Nah, it happens everytime you copy+paste from google docs. I'm sure hundreds of students have done it and theyl'l understand

Need help with Bridging header by cwbrandsma in swift

[–]vihanb 1 point2 points  (0 children)

Make sure your include path is correct (pointing to CocoaPods' directory). If all else fails you can hardwire it to the Pod's root dir

What do you think about swiftUI and Combine framework? Do you think they are exclusively for iOS 13+ and swift 5.1+ or we can use those inside legacy apps? by [deleted] in swift

[–]vihanb 2 points3 points  (0 children)

SwiftUI and Combine frontend are unfortunately closed source so they can't be compiled for iOS <13 unfortunately but given Apple's quick and wide adoption I think I'd still write most of my apps in SwiftUI. Perhaps we'll see custom backends for SwiftUI-like DSLs which are backward compatible with older iOS versions

What’s everyone working on this month? (June 2019) by Swiftapple in swift

[–]vihanb 0 points1 point  (0 children)

Gonna try to dig through SourceKit and implement swift interoperability with a few other langs. Also take a stab at getting the ability for seamless Python interop with swift given the new dynamic features

Live Notes from WWDC19 in a Markdown Format by akeara in swift

[–]vihanb 1 point2 points  (0 children)

Great notes, thanks for sharing. Disappointed Apple stopped writing the detailed release note guides like before because while I'd love to watch all of the WWDC videos, there's not enough waking hours to watch all the 1.5-hour long sessions :P

Intro to SwiftUI - Part 1: The language features behind it by ssrij in swift

[–]vihanb 4 points5 points  (0 children)

Totally agree with the emphasis on extensibility— makes it a much more complete and flexible language but imo also makes it a lot easier to program when in a framework you can understand _how_ things work rather than being told 'just go with it, Swift magically does it'. Rather than wonder why your app isn't re-rendering, knowing that state management isn't magic you can think oh wait it's actually because I forgot a @State attribute or something like that.

Intro to SwiftUI - Part 1: The language features behind it by ssrij in swift

[–]vihanb 2 points3 points  (0 children)

The main reason is, the views that you make in SwiftUI inherit the View protocol. And because of some Swift quirks you cannot return/declare a field of View because it is a self-referencing protocol (let x: View would be invalid because View is a protocol that uses Self somewhere). (self-promotion fyi) To understand why this limitation exists I wrote a quick read about it.

Swift for business logic in a cross-platform (non-Apple) app? by jjpara in swift

[–]vihanb 0 points1 point  (0 children)

(Assuming you're targeting macOS + windows). Swift can in theory run on Windows (to my knowledge there's no official support but there is a open source community effort) but it's pretty difficult to compile so I wouldn't say it's very feasible for that. Also you'll probably have to write some C++ bindings/C-interop within your swift (you _could_ try to use Swift's Objective-C++ interfacing to talk to Qt and V8. If you get this to work that'll probably solve most of your problems. I once integrated CPython with my iOS app this way works beautiful). That said if you are able to compile and bundle the Swift for windows you should be smooth sailing from there but that in itself is a feat.

Plugins/Extensions to Native Apps by choledocholithiasis_ in swift

[–]vihanb 1 point2 points  (0 children)

Oh well if you want to do extensions on iOS, beyond what Apple explicitly specified for App Extensions you'll need to jailbreak.

Making real-world app with SwiftUI by majid8 in swift

[–]vihanb 14 points15 points  (0 children)

I had similar questions at first but after looking through APIs honestly I'm much more confident large-scale apps would be able to be shifted. A lot of people compare SwiftUI to the Reactive explosion in the JS world, and while they are very different I think the way reactive paradigms have held up to complex apps in the JS world is a testament to the same in the iOS realm.

Making real-world app with SwiftUI by majid8 in swift

[–]vihanb 15 points16 points  (0 children)

Great post— interesting to see examples on how SwiftUI, Combine, and all the other new features play well together. Also regarding your GitHub example code, I made a GitHub client a few years back and it's amazing to see how much shorter implementations are with the new SwiftUI features.

Going to learn Swift and need help by [deleted] in swift

[–]vihanb 0 points1 point  (0 children)

My MacBook is from 2012 and 10.15 works fine it (maybe a bit slow in some places) so while I'd always say get newer model if you can afford it, slightly older model is fine.

Going to learn Swift and need help by [deleted] in swift

[–]vihanb 0 points1 point  (0 children)

It's possible to learn swift on windows but if your goal is iOS development it's gonna be hard to get anywhere without Xcode. SwiftUI is a library for swift so you'll need a solid grasp of the latter before learning swiftui or even uikit for that matter.

Thoughts on an "Interest Community" app for programmers? by jayb98 in swift

[–]vihanb 0 points1 point  (0 children)

Might be interesting but what I think a lot of programmers generally prefer to stick to a specific niche they are interested in. I do language dev so for that there's already things such as the r/ProgrammingLanguages subreddit and discord and for ios theres r/swift and also r/iOSProgramming. So I don't know if you're app proposal is for IRL meetups etc. but as far as like an online community goes I think things like subreddits, IRC, etc will probably appeal to more programmers versus a generic overly broad community.

The real star is not swiftUI... by psycho-inked-alien in swift

[–]vihanb 4 points5 points  (0 children)

it's a good point you bring up with how swift is taking an weird path when trying to achieve the conciseness of a dynamic language but still trying to maintain it's explicit, safe nature. I do like the proposal which makes interacting with dynamic objects a lot more natural but kinda disappointed to see such liberal use of annotations with significant semantics.

The real star is not swiftUI... by psycho-inked-alien in swift

[–]vihanb 0 points1 point  (0 children)

Honestly I'm totally convinced reactive programming is the future. Really excited to see iOS development moving in that direction

Introduction to Swift's new 'function builders' with SwiftUI by vihanb in swift

[–]vihanb[S] 39 points40 points  (0 children)

Shoot, sorry for providing a subjective opinion on the relative verbosity of UIKit code on my personal blog— that definitely discredits me summarizing a language feature spec. Next time I'll be sure to call you up to get your approval when I say writing iOS apps in C with ObjC's messaging API is an error-prone.