Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "swift"
-
People with programming languages named after them:
Haskell Curry
Ada Lovelace
Agner Erlang
Blaise Pascal
Taylor Swift30 -
Trying to teach coding to a kid:
Kid: Can you teach me XCode?
Me: No but I can teach you Swift or Objective-C
Kid: But I want to learn to code in XCode
Me: Yes you will code in XCode but I will teach you swift
Kid: My dad said that you actually know how to code but apparently not.12 -
Swift, oh my god, why do you have to be like this?
I'm looking to write a simple for loop like this one in java
for(int i = 5; i > 0; i--) {
// do shit
}
Thats it, simple, go from 5 to 1 (inclusive), I saw that to iterate over a range in a for loop (increasing ordeR) I can do this
for i in 0...5 {
// do shit.
}
So I thought maybe I could do this to go in reverse (which seems logical when you think about it doesn't it?)
for i in 5..<0 {
// do shit
}
But no, this compiles FINE (THIS IS THE FUCKING KICKER IT COMPILES), alright, when you the code runs you get a fucking exception that crashes the mother fucking application, and you know what the problem is?? This dogshit, shitStain of a language doesn't like it when integer that the for loop starts with is larger than the integer that the for loop ends with MOTHERFUCKER ATLEAST TELL ME THAT AT COMPILE TIME AS A MOTHERFUCKING WARNING YOU PIECE OF SHIT!!
Alright *deep breathing*, now we can't just be stuck on this raging, we're developers need to move forward, so I google this, "Swift for loop in reverse" fair enough I get a straight forward answer that tells me to use the `stride` functionality. The relevant code for it
for i in stride(from:5 to:1 by:-1) {
// do shit
}
Wow looks fine and simple right?? (looks like god damn any other language if you ask me, no innovations here piece of shit apple!) WRONG BITCHES !!! In the latest version of Swift THE FUCKING DEVELOPERS DECIDED TO REMOVE STRIDE ALTOGETHER, WITHOUT ADDING IN A GOOD REPLACEMENT FOR THAT SHIT!
Alright NOW IM FUCKING MAD, I got rage on stackoverflow chat, a guy who's been working on ios for quite a while comes up n says and I quote
"I can sort of figure it out, but besides that, iterating in reverse is uncommon enough that it probably hasn't crossed anyone's mind."
Now hope you guys understand my frustration, and send me cookies to calm me down.
Thank you for listening to me !27 -
Resume: experience in c, c++, java and Android.
Recruiter: DO YOU HAVE 10+ YEARS EXPERIENCE WITH SWIFT AND IOS??!!8 -
My first experience with Swift ended in me infecting myself with a virus (kinda). I wanted to create a macOS app that would listen for a global key event, catch it and then type a word.
During development I set it up to listen for ANY key event and to type "BALLS". So what happened? I compiled the code, everything looked good, I started the app and pressed a key which emitted a key event. The event was caught by my app and it typed "BALLS", just as expected. However, the typing of the word caused a NEW key event to be emitted, which the app also caught. The infinite loop was a fact. FUCK!
I tried closing down XCode but all I could see was "BALLS BALLS BALLS" everywhere. I tried everything I knew but it just kept typing "BALLS". I had to hold down my power button to make it stop.
I finally finished the app (which I named "The Balls App", I kept the word "BALLS"). I solved this issue by only listening for KeyUp and when emitting the "BALLS" word I just used KeyDown.7 -
Wow, my girlfriend has been really efficient wrapping and organising the presents under the tree... You could say she’s a Swift Package Manager!!3
-
Kotlin: I don't have ternary operator, it's bad for readability
Swift: I removed ++ and --, cause they are old fashioned
Dart: *screams*23 -
I know python , JS, java etc. Some might know php, some others might swift and so on.. but the only language understood by everyone all over the globe is this 😂(wait for it to load, and you will believe what I'm saying :P )10
-
Landed my first grad role as a software developer!
Node, c#, VB, xamarin, swift!
30k!
Life is good folks25 -
Function definition in various programming languages
//JavaScript/PHP
function myfunc()
{
}
//Swift
func myfunc()
{
}
//Kotlin
fun myfunc()
{
}
//Rust
fn myfunc()
{
}
//Next...
f myfunc()
{
}25 -
Holy moly..
Working on my MacBook and out of nowhere: *click* dead..
Try to restart it, fan spinning for a second, then: nothing.. recovery mode. Nothing..
FUCK!!
Doing research on my iPhone.. see Louis rossmann had a case like this in which one foot of the clock on the main board doesn’t have connection.
But I don’t have the right tools to open the MB..
I turn it around, shake it shake it shake it shake it baby like Taylor swift, knock on the back, knock on the keyboard and voila.. working again😪
Didn’t think that still works with modern technology..6 -
Getting the nth character of a string.
Every other language:
string[n]
Swift:
string[index(string.startIndex, offsetBy: n)]8 -
Random thought: what would a Taylor Swift song about the Swift programming language sound like (besides catchy AF)?5
-
❤️ Swift ❤️
for (i = 0; i < polygon.count; i++) {
// some print statement
} **
This highly advanced and futuristic piece of code made the Swift compiler eat 14+ GB of RAM while trying to syntax-highlight, before crashing my 8 GB-equipped Macbook.
** yeah, "C-style 'for' loopz syntaxx deprecated since Swift 3 blah blah". Let's reinvent an industry-standard for no goddam reason, because Swift is the FUTURE, oh, and because fuck you by the way.3 -
If you ever use emojis for variable naming, please do a favor for the whole developer community by formatting your hard drive twice and then never touching a computer again - because you're an idiot.
Seriously though, why Apple? This screenshot is from the official Swift Language documentation...13 -
First thing to do after downloading swift for linux is to obviously place the folder inside another folder named Taylor2
-
My girlfriend started to develop iOS. After that she says Fucking Xcode and Fucking Swift a lot of times. I couldn't understand so I also tried to study iOS. And now I say. Fucking XCODE!!3
-
Even Apple believes that Xcode suggestions are not reliable... 😂😂😂
(From App Development with Swift book in iBooks Store from Apple)6 -
Worst part about Swift 3, is searching on StackOverflow for the answer to a question but it's written in Swift 1 and it's not compatible11
-
swift might be coming to android
personally I think it would be awesome to have one common language for mobile development that isn't just some hack or patchjob like some other projects are
what do you guys think?31 -
Explaining what a method does:
"""Python has docstrings"""
/** Java has javadocs */
SwiftHasSuperFreakinLongMethodNames()
Seriously Apple...7 -
Damn, my boss added me to a "almost" complete protect with a bunch of spaghetti code in a language that I don't know more than the syntax of for loops and declaration of variables (swift) ..... I'm really fucked6
-
Theres a debate in my company about whether or not to be using RxSwift on iOS apps. I'm not 100% convinced. Today we had two submissions for a coding challenge come in. One uses nearly all the same Rx modules this company does, one was vanilla Swift.
Just by chance noticed the vanilla app writer contributed ~5k lines of code to the challenge overall. Including libraries, the Rx one contributed ~45k.
That to me is just bat shit crazy. It would want to be the most amazing, time saving, bug reducing thing the world has ever seen to justify that volume of code.4 -
Does anybody know why java is brown in GitHub, html is red, objective-c is blue, and swift is yellow?21
-
Thanks Apple to not natively supporting hex colors in Swift! That would be too convenient I suppose...4
-
After making great progress in Swift, I was advised to go back and learn Objective-C. 2hrs in I'm like...1
-
"/path/to/my/file.swift:143:34: error: cannot convert return expression of type 'String.SubSequence' (aka 'Substring') to return type 'String'"
Ah yes, I love it when Substring isn't String5 -
Every language ever:
"You can't compare objects of type A and B"
Swift, on the other hand:
"main.swift:365:34: note: overloads for '==' exist with these partially matching parameter lists: (Any.Type?, Any.Type?), ((), ()), (Bool, B ool), (Character, Character), (Character.UnicodeScalarView.Index, Character.UnicodeScalarView.Index), (CodingUserInfoKey, CodingUserInfoKey ), (OpaquePointer, OpaquePointer), (AnyHashable, AnyHashable), (UInt8, UInt8), (Int8, Int8), (UInt16, UInt16), (Int16, Int16), (UInt32, UIn t32), (Int32, Int32), (UInt64, UInt64), (Int64, Int64), (UInt, UInt), (Int, Int), (AnyKeyPath, AnyKeyPath), (Unicode.Scalar, Unicode.Scalar ), (ObjectIdentifier, ObjectIdentifier), (String, String), (String.Index, String.Index), (UnsafeMutableRawPointer, UnsafeMutableRawPointer) , (UnsafeRawPointer, UnsafeRawPointer), (UnicodeDecodingResult, UnicodeDecodingResult), (_SwiftNSOperatingSystemVersion, _SwiftNSOperatingS ystemVersion), (AnyIndex, AnyIndex), (AffineTransform, AffineTransform), (Calendar, Calendar), (CharacterSet, CharacterSet), (Data, Data), (Date, Date), (DateComponents, DateComponents), (DateInterval, DateInterval), (Decimal, Decimal), (IndexPath, IndexPath), (IndexSet.Index, IndexSet.Index), (IndexSet.RangeView, IndexSet.RangeView), (IndexSet, IndexSet), (Locale, Locale), (Notification, Notification), (NSRange,
NSRange), (String.Encoding, String.Encoding), (PersonNameComponents, PersonNameComponents), (TimeZone, TimeZone), (URL, URL), (URLComponent s, URLComponents), (URLQueryItem, URLQueryItem), (URLRequest, URLRequest), (UUID, UUID), (DarwinBoolean, DarwinBoolean), (DispatchQoS, Disp atchQoS), (DispatchTime, DispatchTime), (DispatchWallTime, DispatchWallTime), (DispatchTimeInterval, DispatchTimeInterval), (Selector, Sele ctor), (NSObject, NSObject), (CGAffineTransform, CGAffineTransform), (CGPoint, CGPoint), (CGSize, CGSize), (CGVector, CGVector), (CGRect, C GRect), ((A, B), (A, B)), ((A, B, C), (A, B, C)), ((A, B, C, D), (A, B, C, D)), ((A, B, C, D, E), (A, B, C, D, E)), ((A, B, C, D, E, F), (A , B, C, D, E, F)), (ContiguousArray<Element>, ContiguousArray<Element>), (ArraySlice<Element>, ArraySlice<Element>), (Array<Element>, Array <Element>), (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>), (ClosedRangeIndex<Bound>, ClosedRange Index<Bound>), (LazyDropWhileIndex<Base>, LazyDropWhileIndex<Base>), (EmptyCollection<Element>, EmptyCollection<Element>), (FlattenCollecti onIndex<BaseElements>, FlattenCollectionIndex<BaseElements>), (FlattenBidirectionalCollectionIndex<BaseElements>, FlattenBidirectionalColle ctionIndex<BaseElements>), (Set<Element>, Set<Element>), (Dictionary<Key, Value>.Keys, Dictionary<Key, Value>.Keys), ([Key : Value], [Key : Value]), (Set<Element>.Index, Set<Element>.Index), (Dictionary<Key, Value>.Index, Dictionary<Key, Value>.Index), (ManagedBufferPointer<Hea der, Element>, ManagedBufferPointer<Header, Element>), (Wrapped?, Wrapped?), (Wrapped?, _OptionalNilComparisonType), (_OptionalNilCompariso nType, Wrapped?), (LazyPrefixWhileIndex<Base>, LazyPrefixWhileIndex<Base>), (Range<Bound>, Range<Bound>), (CountableRange<Bound>, Countable Range<Bound>), (ClosedRange<Bound>, ClosedRange<Bound>), (CountableClosedRange<Bound>, CountableClosedRange<Bound>), (ReversedIndex<Base>, ReversedIndex<Base>), (_UIntBuffer<Storage, Element>.Index, _UIntBuffer<Storage, Element>.Index), (UnsafeMutablePointer<Pointee>, UnsafeMut ablePointer<Pointee>), (UnsafePointer<Pointee>, UnsafePointer<Pointee>), (_ValidUTF8Buffer<Storage>.Index, _ValidUTF8Buffer<Storage>.Index) , (Self, Other), (Self, R), (Measurement<LeftHandSideType>, Measurement<RightHandSideType>)"17 -
Dear Swift, we have to break up. I’ve found a new language to love. Oh don’t act so surprised, you know our relationship was on shaky ground. You never let me have any fun. You’re always telling me what to do and how to do it and I’ve had enough. You treat me like a child, and I’m moving on.
Things were good in the beginning, and you may have impressed me with your automatic reference counting, but my new language can do that too, and so much more, and does it faster than you could ever imagine. You see unlike you, my new language doesn’t boss me around. It *trusts* me, Swift. That’s the one thing you never could understand. I need to be trusted; and know that I can trust in you.
Well I can’t. Not anymore, Swift. It’s over. My new language just treats me better than you ever could. I’m sorry it came to this but I deserve better than you Swift. We’ve both known this for a long time.
I wish you the best, but you probably shouldn’t call.
I’m with Rust now.1 -
❤️ Swift ❤️
A new minor version of the compiler has been released !
How sweet !
Which comes with the latest Xcode, which is of course mandatory to deploy on your devices !
How cool !
Let me also break all your code because I've decided to change some obscure programming paradigm, and also because FUCK YOU. -
The first two stories on slashdot's homepage are:
1. Google releases Angular 2, breaks backwards compatibility
2. Apple releases Swift 3, breaks backwards compatibility
If you use either of those tools, why do you put up with this? When did software engineering stop being about building useful or enjoyable things for our customers, and start being about doing thankless make-work for Silicon Valley billionaire companies? Is this the legacy we want to leave to the world?4 -
Me: I've got this wonderful idea, I'll try it in swift
OSX: download the 4.47 GIGABYTE Xcode
Me: :'( ok
Xcode : you need to update your OS and that's again more than 4.5 GIGABYTE
Me : Sublime -> Main.class1 -
I’m a long time Objective-C and Swift developer...I’ve been asked to “research” a project using React Native.
It felt dirty to be writing an iOS app using JavaScript.
I’m still not sure why and how React Native is better/faster than native Swift.
Someone change my mind...11 -
Short rant: I hate xcode, I hate Swift, I hate Apple.
After 3 weeks of intensive work (I'm an apprentice, part-student, part-worker), I was happy to go back to school and was like "Oh we're going to learn iOS, sounds cool !".
It is now friday, I have homicidal tendencies growing inside me, I want to cry whenever I hear xcode or swift.
Why in the hell I can't use a string argument when I'm calling a function NEEDING a string arg ?
Why do xcode take so long to tell me that there is a problem, why is the error message not explicit AT ALL ?
Why dictionaries so hard to manipulate, EVEN IN JAVA IT'S SIMPLIER.
Why putting our API call in specialized files make them run AFTER EVERYTHING ELSE and the solution that is given to us is deprecated since 5 years ?
Why is a classic c-style for loop is now deprecated ?
These are just a drop in the ocean of WHAT THE FUCK IS THAT that we came across this week.
Fuck Swift, fuck xcode.7 -
For those of you iOS Swift developers, how long did it take to learn and have a decent app with database functionality, coming from a different programming language background?8
-
I was interviewing for a new position that would be primarily Android development with a chance that I would help out on iOS when necessary. When I got their coding challenge, it had to be done for iOS in Swift. Made no sense, but now I can say I finally wrote a project in Swift.
-
Swift changes syntax again! Apple is treating their language like an Apple product. Why can't they decide? What's that? you have a project? Goodluck converting your code when we decide to change everything ;)6
-
This is my first and current Rant/story so here it goes, I've been working for a company for past 10months now, where i was interviewed on Java, then i was put into mobile development and started to build an app in swift (successfully finished it) after two months i was working on ARKIT(didn't build anything BIG mostly R&D), then started working on React-native and built an app from scratch using firebase as backend (both RN and firebase was new to me) and pushed it to AppStore and PlayStore, and currently i'm working on Flutter!.. At first it was pretty irritating switching frameworks and technologies but now i've become more positive about it and i look at it as an opportunity to learn new stuff :)1
-
❤️ Swift ❤️
Compiling fails due to many inter-dependent errors (think database deadlocks).
1 - Comment the code that produces the "locking" error.
=> Code compiles.
2 - Uncomment the code that produces the "locking" error.
=> Code compiles.
My peepee hard5 -
Having to write Swift and Kotlin for a while at work and now switching back to working on web technologies (for a different job), I would say JavaScript is ugly.4
-
GOD DAMN !@^@ react-native bridge to #@$^&ing objective-c bridge to an intermediate objective-c friendly #$@!ing swift class to communicate to a @$#!ing external swift framework #$@!ing POS!
And $!@# you Apple Mach-O Linker error!5 -
❤️ Swift ❤️
"Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler"
but srsly2 -
I decided to learn Swift as I would like to make apps. So I installed swift and swift-jupyter in my Linux server after my 2012 iMac literally took 20 fucking minutes to compile `print("hello world")` in Playgrounds. Meanwhile, my server compiles python code in a swift jupyter notebook in seconds.
-
When someone defines a Bool3 type in swift to represent true, false and undefined. Even tho swift already has Optionals as a first class feature. 😳
-
In what fucking programming language a constructor can return a nullable value???
Swift of course. :|
Fuck apple :-)5 -
Side project is swift. Loads of feedback! I'm happy. Fucked up part is the users who wants it uses Android. Oh well, time to learn React Native2
-
Lately I needed to write some swift code and I‘ve never used it before. But acutually I find such a beautiful langange, maybe the one with the best type system ever.
Swift for the win!5 -
Started learning Python from Java, C#, Objective-C, Swift.
It’s like Rocket Engineer who have to build a car. It’s easy but you have to learn almost everything from the beginning.6 -
GOD ALMIGHTY I HATE SWIFT & XCODE...
Why the fuck does it take a horrendous amount of time to muck about with layout constraints. Why the heck does xcode choose to add constraint layouts to elements that already have pissing constraints! Why does dealing with something as trivial as tables have to be so god damn fucking involved when HTML and CSS let me create and style tables in fuck all lines.
And what the hell is up with how pissing long xcode takes just to figure out that 1 extra line of code I've just added. You jump to another file and xcode finally decides to be an ide again and bitch at the fact that you've forgotten to add some parameter or that they've decided to rename paramter "x" since version fuck nows what.
Working with abstract classes is fun, lets use protocols (because interfaces are too old school) and then lets tack on something we call extensions and then lets make people piss about with convenience initializers.
And lord almighty, what the fuck is up with casting, what all this ?! BS. What's wrong with just checking if the value is null in the first place, or whats wrong with giving something an initial value, oh because having to unwrap shit is more elegant right??
And good god, I need to own a fucking cinema screen just to have the storyboard open, there's less fucking panels on the Sistine Chapel ceiling
then there is in xcode.1 -
Anyone have one of the new MacBook Pros with Touchbar? I'm looking for some project ideas to work on.
I already am working on a project for the Pi-hole project (network wide ad-blocking) but I am looking for some other good ideas. I think Apple's view of the Touchbar fell short, but as developers I think it opens up a lot of possibilities to use it as a great information/monitoring tool.
I am also still learning Objective-C and Swift so I am a newbie.5 -
Having to use Xcode 4 alongside the new 8 to support old iOS versions. I almost wrote the code twice, once in Swift and once in Obj-C.
-
Hey everybody been a while but I have a rant. Swift fucking swift and IOS dev. Okay so been learning swift for some frontend casual work, no worries they are lending me a mac to work in.
Now comes the rant part IOS is fine to work in I dont have any qualms about platform but.. FOR THE LOVE OF COMMON FUCKING SENSE GET SOME FUCKING CONSISTENCY.
You have made swift statically typed language to supposedly make developing more consistant and better fine no worries i dont like static typed languages cause they are unnecessary but fine. then you go NAH FUCK IT EVERYTHING IN A MODULE IS IN GLOBAL SCOPE, FUCK IMPORT STATEMENTS, FUCK MAINTAINABILITY AND FUCK YOU FOR ASKING.6 -
I was thinking maybe I could learn Swift. Then I saw the accepted pull request about deleting i++ and i-- operators...
Seriously wtf, i mean OK setting them as deprecated, but deleting ? Dude no3 -
About to start my first ever freelance job. The problem is I think I've overestimated myself and under quoted for the project.
Hoping for the best and I'm any case, this will be a good experience in terms of learning about the freelance world right?3 -
For a web developer that wants to try mobile development, which is better, native (java-swift), or react native?16
-
Just developed my first interactive iPhone app using Swift!
It's only basic, changing the screen when tapped from black to white like a flashlight, but feels great to have done it after learning the language over the past few weeks. 😊2 -
What do you think about swift?
Does it have future?
It went open-source and is very fast and easy.
I found this project which brings swift to the server side in linux and mac: https://www.perfect.org/ and it seems promising.10 -
If you wanna think that I'm a bad programmer, that's ok, but I can't put up anymore with Xcode.
Jesus Christ. An entire afternoon spent trying to make an array with two dimensions. I tried every fucking way I found in SO, in the apple site and in every another site that I found in my way.
First: For every example for Swift 3 there's another 10 for Swift <3.
Second: Mutable arrays, as I'm noticing, aren't a thing anymore, so, to declaring array size we go! Except it's impossible to. Tried 3 different ways. Not a single one worked.
Third: Actually, one of the 3 tries worked, for int arrays, and for some obscure reason it won't work for strings, as declaring the array as [String] is too general for swift, I mean, I completely agree with it, a [String] array could contain anything right???? FUCK NO. IT CONTAINS STRINGS YOU FUCKER!!!!
I swear, if the equipment was mine and not from the office, I would have thrown that piece of shit which disconnects from the fucking computer every 30 seconds that apple calls keyboard out of the window already.
Why the fuck do I need to develop for iOS in swift/xcode?? There's so many cross platform alternatives out there, good ones in fact, but no, we must build the applications natively or else the phone will catch on fire according to my boss.
I kinda liked Apple until now.
From now on? Fuck Apple.10 -
Swift 1 and 2 were really pain in the ass!! You had to write God damn completed word of each statement. Eg : "presentViewController" is now "present" in Swift 3. Or that fucking "NS" in every object :)))
Thanks God! Thanks Apple! No more bull shit keyword!2 -
When you heard your friend wants to recruit someone who can master R, Rails and Swift at the same time....3
-
Notice how the Apple code samples have moved from the very well designed Objective C to a mature Swift... (sorry, typo, manure Swift) Swift 1.0, wait 2.0, no hold on 3.0, oh yea 4.0. It's a moving target for their developers with code samples all over the place...
Once Swift stabilizes, sure, ok, force everyone and everything to change (seriously?).
Apple, why the FUCK do you think we want to deal with your beta crap forced down our throat? Its bad enough the language is an inconsistent illogical mess but having to come along with you for the 'we-don't-have-a-clue-what-we-are-doing' ride is utter bullshit. Leave the GOD DAMN Objective C samples up for crying out loud.6 -
Updating a legacy written by the ceo from swift 1.2 to swift 3.1
No storyboard, main controller with 2200+ lines of code and viewDidLoad method with 500+ lines of code.
Almost no comments and code is illisible.
Weeeee8 -
COBOL, Clipper, DBase, FlashCode, DOS 3.30, Novell, dot-Printers ... Now learning Swift... Emojis for variables! ... I'm to old for this..... Damn millennial languages.5
-
Unrealistic employer:
Looking for a Full Stack developer with 8 years experience in Swift and 10 years experience with PHP.2 -
!rant
I’ve just looked into Rust a bit deeper and was absolutely stunned by how many things it has in common with Swift. The Syntax, the features, the concepts, the "philosophy".
Previously I thought that Kotlin is what comes closest to Swift.
Anyway, Rust seems like a beautiful language and it’s no wonder that it is one of the most loved languages out there!
The compile time index out of bounds errors blew my mind!2 -
I've been writing Java the last few days. Really makes me remember why I enjoy writing objective c / swift so much. It's not necessarily the crazy syntax of objective c. It's the conventions behind the languages. It's very easy to make your code read like prose. Which when you become used to this it's very hard to jump back into spaghetti code with abbreviated variable names and such.3
-
Guys.... Were getting famous?
Oh shit that's Facebook....
* Posts the screenshot and runs away :) *
Taylor Swift...... You betrayed?rant please ley me use all tags and don't downvote joke/meme hello world welcome to devrant my friend nomaan devrant random taylor swift is with apple? hello werelord i still love you we're going places2 -
When it’s 3am and you are working on an exception for more than 2 hours and have optimized your whole code just to be sure and remember you are writing swift not java: some ints have low max value like UInt8.3
-
It drives me Insane that AWS still doesn't support Swift 3 for iOS. We're almost to the point where Apple is going to drop Swift 2 support in XCode and Amazon STILL has not gotten it.
I've started deploying Gateway APIs in Objective-C and linking them to the bridging header just so we can finally move foreword in our company and quit relying on legacy Swift support. Which is something I was really trying to avoid because we don't like mixing languages unless absolutely necessary. It's not a problem, but it's incredibly annoying to me. What IS a problem is having to start new projects already using legacy code from the very beginning.
What is amazon going to do when the next release of XCode comes out? Tell all new customers to downgrade?
Why even offer native Swift APIs if you're going to go this long and still not migrate, Amazon?! -
Every FUCKING time iOS releases a version update, I have to update my Xcode, my code to the latest swift, my third party libraries..
Do you feel my pain , Apple?1 -
Had a swift 2.0 project with 32 warnings.
*updates project to Swift 3.0*
756 warnings. Can anyone beat me?3 -
My life ends in a simple sentence:
"Unexpectedly found nil while unwrapping an optional value"
Only Swift developers will understand.2 -
Just saw a job ad asking 8+ years of Swift experience.
Swift is a language that appeared 4 years ago >:-(2 -
I'm a C++/Obj-C programmer finding it ludicrously hard to switch to Swift.
I find that the constant ability (leading to very poor programmer code) to reduce syntax and add tokens reduces readability and nowhere is this more apparent that with closures.
I'm working through (to my shame) Ray Wenderlich's Swift course and the closure chapter has this:
PS I loathe K&R as much as I do Swift so it's all in Allman formatting for clarity.
let multiply: (Int, Int) -> Int =
{
(a: Int, b: Int) -> Int in
// do Something else
return a * b
}
Why oh why isn't this more simply and elegantly written as:
let multiply = (a: Int, b: Int) -> Int
{
// do Something else
return a * b
}
The equals sign shows clearly that it's a closure definition assignment, as does the starting 'let'. But this way all of the stupid excesses, like the 'in' keyword, the repetition of the params / return type only this time with useful labels and additional tokens are removed and it looks and reads much more like a regular function and certainly a lot more clearly.
Now I know that with the stupid ability of Swift you can reduce all this down to return $0 * $1, but the point I'm making is that a) that's not as clear and more importantly b) if this closure does something more than just one line of code, then all that complicated stuff - hinted to by the comment '// do Something else' means you can't reduce it to stupid tokens.
So, when you have a clousure that has a lot of stuff going on and you can't reduce it to stupid minimalism, then why isn't is formatted and syntactically better like the suggestion above?
I've mentioned this on the Swift.org (and got banned for criticising Swift) but the suggestions they came up with were 'use type inference' to remove the first set of params / return type and token.
But that still means the param list and return type are NOT on the same line as the declaration and you still need the stupid 'in' keyword!5 -
How I always feel about Xcode when compiling Swift code, opening storyboard files, or just in general.
We need to make some of these stickers. ++ -
When engineers get so CS-driven they can’t see simple things 🙃
Another manager messaged me and my boss last night to ask whether he’ll have to expose a certain function to be available in objective c classes (we’re iOS devs and most of our code is in swift, but some older stuff is still in .m files). He said he dug into the lower level code and didn’t see any connections or exposures so he assumes he’ll have to add these. My boss concurred and told him to go ahead and make them available.
Then I showed up with my didn’t go to university brain & searched the codebase for calls to that function from .m classes. There were like a hundred lol, working just fine. It’s already exposed. Neither of them thought to do that.2 -
Swift SUCKS
Why?
Because of its absolutely useless complexity...
a total simple thing: i have a string and want to concat a integer with it, so:
var x = stringVar + intVar; right? NO
its var x = stringVar + String(intVar);
or getting the index of a element in a array?
var index = array.indexOf(element); thats logic, right??? Not for swift, gotta go with: var index = array.index(of: element); WTF??!!
And all the other shit: nil instead of null, int++? Nope.
And there are SO MANY MORE things, where u just think, Apple really though different........than all normal coding languages.......
I´ll honestly rather learn C and recode Ios or have a look at objective-c...14 -
Most popular programming languages.
It's just funny they used different images for the language specially for Swift, Typescript, C# and specially Python
https://amp.businessinsider.com/the...4 -
So frustrating to learn Swift when I already know objective-c. It's like I know what I'm doing, but really, I don't
-
I can't stand Swift's initializers. No other languages have the problem with constructors/initializers that Swift does. It's a complete failure of a feature and to hell with safety if it comes with this cost.
Just to illustrate how ridiculous it gets, I want to have a class where my initialization logic can be split among reusable parts. That is, the logic that initializes the class with no parameters has logic that I want to reuse in my other initializers. Simple DRY stuff. Well, the only way I can do that in Swift is if I use a convenience initializer that calls another one. But convenience initializers have completely different rules from designated initializers (again, something only Swift does).
For example, you can't access "self" until you call a designated initializer. You can't chain designated initializers, and if you want to chain anything in the same class you have to handcuff yourself by using a "convenience" initializer (there's nothing convenient about them, I might add).
So now I want to subclass my class and initialize myself using one of my superclass initializers. Oh but the one I want to call is a *convenience* initializer so I can't, unless I turn my new initializer into a convenience initializer. Except wait, a convenience initializer must delegate with self.init(), so it can't even call a superclass initializer!
And it just goes round and round and round. I don't know if I should try to convert all of my initializers to convenience initializers or the other way around.
Why all this nonsensical madness? Get rid of the distinction and go back to nice clean powerful initializers like Objective-C. I mean what does it have to take? This is a complete nightmare.13 -
Learning institutions move so slow. Kotlin and Swift are nowhere to be found in this mobile applications course.8
-
Spent an entire week working on XCode configurations for a react-native+swift+objc bridging project. Been failing builds all week. Finally i look over to see the glorious word Succeeded!
Then I realized it was the clean that succeeded, not the build. FFS1 -
Good job Apple! Swift is actually very nice language, now that it supports Linux and is open source, it is even nicer
https://swift.org/blog/...1 -
Is it me, or writing Swift after several JavaScript apps feels like writing "serious" code once again?5
-
Swift 5.9 will get huge additions to the language, compared to the current version 5.8, including type safe and checked macros much like in Rust.
And it’s still not going to be a major version bump to 6.0!
I’m thrilled to see what kind of stuff will be in 6.0 then! 😄2 -
Me: Build Swift 3 Project got 1 warning: Conversion to swift 4 available. : “Let’s try that” after that archives it: 100 warnings and 20 errors -_-5
-
Looks familiar?
I really need to start giving more descriptive names when I test code..
Var that=
Vat thatt=
Var thattt=
....
Func workFFS=4 -
Being a full stack developer has been an amazing journey. Looking at a project and understanding how the entire stack work starting from the mobile apps, APIs and DB is a total bless.
Nevertheless, lately switching context between modern languages has been extremely frustrating.
Swift looks like kotlin, elixir looks like ruby. Hell even swift and ruby are very similar.
Writing ruby in Xcode and wondering why the fuck Xcode complaining. Well no shit, swift is not ruby. Took me 5 mins of head scratching to notice it 😢
Hell I am now writing down the latest language I am working with on my hand to keep track 😂5 -
I don't know if our QA is good enough. We were developing an app for both ios and android. I, an ios developer, told the QA guy that it will take long before uploading the app in the testflight (convert swift2 to swift3). After a week the app is now uploaded in the test flight and at the same time my partner, an android developer, uploaded the android version of the app in the play store beta. The QA guy started to raise bug issues about the android version. He wanted to fix the bugs immediately since our boss needed to upload it in the play store and appstore. The QA guy kept on complaining to my partner why the android version is buggy. Then he said something we, me and my partner, facepalm.
The QA guy said " You shouldn't convert the app to swift 3. The ios version is fine when converted why the android version is buggy. You need to revert it back to swift 2"
We sit there in silence, thinking if we pity the QA guy or laugh at him. -
For a long time I wanted to have the possibility in Swift to copy instances of value types by just changing the value of one property (member variable).
Something like Kotlin's copy function.
And now that Swift has macros (like Rust), I made a macro for that! 😄
https://github.com/WilhelmOks/...4 -
When Xcode 9.3 is available, but Swift.org hasn’t updated to Swift 4.1 yet.
What the hell? 🤦🏻♂️
Update:: just kidding, it shows apparently. Ugh.2 -
Me coding in swift:
func doStuff() {
// code
}
"oh I see the code isn't working yet. Let me try this"
func doStuff() {
DispatchQueue.main.async {
// code
}
}4 -
!rant
Loving the the fact that constructors in Swift (initializers) can fail (returning null/nil) and be async.
In C# there is no other way than using static methods instead.8 -
Client from hell (if you've read my past rants) came back asking for information that he had provided me months ago.
I'm not your Google Mr client from hell, search it up yourself.
That's what I said, only in my mind though.
Unfortunately, I went to be his Google. Am I too kind? Should I just reply with a nicely worded "I don't know".8 -
Why the hell is the standard size of swift views 0. Who thought it would be a great thing not knowing why the view is not showing.1
-
Our Swift teacher at college manually creates a Podfile for every project and copies and pastes the basic initialization from an existing project, pastes the cocoapod dependencies and then installs them using terminal instead of just doing a pod init and then using nano or vim to paste the dependencies right inside the terminal. These are the times I genuinely feel sad for the way Indian education system is and the way we're taught coding in colleges here.11
-
!rant
Just tried Vapor (server side Swift) for a web api project and expected to be troubleshooting a lot but it was super easy and worked out of the box. Even openapi/swagger generation.
Now I‘m exited to build a fullstack project with native and web clients, completely in Swift. 😁1 -
I can't take this Swift compile time anymore. It's up to 40 minutes now and all we can say is "optimize the code" and "get faster computers"6
-
I learnt Swift in 2016. 2017 has to be the year I turn Swift pro.
Happy new year to all and may your code come to life and thrive. -
Many of you commented on my previous rant regarding my first ever freelance gig that I would definitely be back with even more to rant... here I am.
What was supposedly a 1 to 1.5 month long project became one that is stretching beyond 3, if lucky, else 4 months long. Requirements and scope evolving more complex and with variations more intense than pokemon evolutions.
I fucked up. I signed a contract that nobody would have. I didn't plan or protect my ass enough to prevent such shit from happening. I severely underestimated and hence under quoted. This is one of the nightmare situations a freelancer could be in (in my opinion). I mean it could only get better... Right? I'm preparing myself for one hell of a payment at the end of the project. Brace yourself, payment is hopefully coming as fast as the number of seasons it took for winter to come in GoT.
On the bright side, I'm currently working on a new project with a client that is indeed much much better than this first. I mean he is a nice person and communications thus far has been nothing short of great.
I guess it's good to start with your expectations rock bottom, that way nothing else can be worse, I hope. -
So, I am currently on Spring Break, and what do I do when I am on Spring Break: I take a moment to experiment with different languages. This time, I decided to check out Objective C since it mixes up two languages that I love dearly (but that I do not use outside of academic endeavors) which are C and Smalltalk.
Going around the net I found this https://github.com/Flying-Toast/...
Notice: I have nothing against Swift, I stopped developing apps for IOS back when Swift was in its infancy, so I was forced to use Objective C and tbh I never had an issue with it, I had learned it before through GNUStep, the language was obviously strange when I started learning it, but I did not hate it, I tried following Swift to see if I could use it at least in some portions, but at the time of its release it was still pretty much beta for me, so I passed. I feel it is much better now, but the issues with the language at this point in time I feel are more from the side of XCode which can either be just ok, good or an absolute piece of shit depending on the release. Either way, I found the link to be funny.2 -
Swift being too new a language to have proper unit tests so you have to bodge something together to keep the client happy.1
-
Checking Swift UI, first thoughts: goodbye Xcode freezing from storyboard loading ....
Sadly yes that's what I like about using Swift UI 😂😂😂
Oh and that binding, finally apple showed some love 😒 -
You've heard of Common Lisp! You've heard of Swift!
Now, it is time for Common Swift!
https://en.wikipedia.org/wiki/...1 -
Most funny part of swift, current version looks unstable and newer version is in hope.
Newer version has no regret of learning older version.
Common guys swift 3 is coming soon...1 -
Fuck you shitty clean swift architecture. I need to learn swift and mobile apps programming. As if that wasn't already hard enough I also need to understand clean swift. This shit feels like going in circles for the most basic stuff without any tangible benefits.
-
Would it be possible to turn a raspberry pi 3 into a Hackintosh to run xcode for swift development?5
-
Was working with Swift lately, we no longer have: x++ in Swift, and I wrote rowIndex += 1, and go-lint was not happy about it ....6
-
I know that there is no bad programming languages.
But there are one exception.
Swift 3.
You can't use c styled code! Why????
Wtf???
Do you have anything against C?
If you do, why?1 -
Swift is such a horrible language now that I am actually using it. You have protocols that don't behave like interfaces, classes that aren't objects, structs that aren't passed by reference. And stupid counterintuitive generic grammer. I feel scammed.1
-
Project I’m working on is required to be in React-Native...I’m a Swift/Obj-C developer. I wrote two lines of React code and then I have spent the last 3 hours trying to get dependencies for a single library installed to run the project again...
Tell me how React Native is a better and faster way to develop apps over native code???
This seems like a waste.11 -
Swift.
First, they added features that no developer understand : what the fuck is an optional value ?
And the documentation for iOS development is horrible. It took me 5 days to understand how the fuck we can make a POST HTTP Request with this fucking bad framework.3 -
Use Swift Package Manager, they said.
I'll be great, they said.
"Note that at this time the Package Manager has no support for iOS, watchOS, or tvOS platforms." - https://github.com/apple/... -
So, I’m on interview 3 with a company looking to build a cross platform app.
They posed the question of what we should use to build it; React Native or Flutter? Or just go native with Swift and Kotlin individually? What’s your thoughts?
I’m really interested in this conversation.2 -
Looking further into Rust, the macros are quite sexy. My first reaction was "omg really"? But then I learned that macros in Rust are nothing like macros in C++.
Again, comparing with my favorite language Swift, it feels like Rust macros are somewhat similar to result builders (formerly named function builders). Or they they have a similar purpose. Both evaluate to some type safe result at compile time and are a perfect tool to make DSLs.
But Rust’s macros can do even more than that. It’s truly amazing.2 -
Apple you wanna kidding me?!?
This should be just a bugfix version...
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.33 -
OK, so with a lot of free time on my hands, I figured I'll finally sit down and figure out how to use Xcode and write iOS apps.
Hit the iBookstore and check out the latest version of their guide to "App Development in Swift", and...promptly run into a brick wall because it's based on Xcode 10 and Xcode 11 seems to organize projects in a completely different manner.
Decide I'll just hit developer.apple.com and check the resources there...to find they're all written for Xcode 8.
Online tutorials have been mostly misses because of mutual incompatibilities between different versions of Swift rendering anything but the latest version useless, it seems.
Which is a long way of asking, does anyone know of any good resources for someone trying to finally figure all this out?5 -
!rant
Learning iOS/Swift Programmer here.
I feel like Apple’s Developer Documentation is extremely hard to parse.
For one problem, it feels like there are 50 similar ways to deal with it; but only one way will actually work.
There also aren’t enough examples in the docs for me either, they just seem to go: “Here’s some code, figure out what it’s purpose is.” for most things.
I also feel stupid, because I’m using the Hacking with Swift tutorials to learn iOS Development(Great Tutorials Though); and I don’t know how to just build an app from scratch. (i.e. creating swift files and assets and compiling from the terminal.)
And using StackOverflow feels like cheating.
Lastly, I feel awful inside when other people see my work and think I’m a genius, when really, I feel like I barely know anything at all.
I’m I alone in this observation?
Or just dumb?6 -
Yesterday Ibdid buy an iPhone. I did it to learn swift development and people started to tell me that it was stupid.
I know I could have just used my emulator on my Mac but I just do not want to, testings apps is better in their real envieonment
I hope you guys understand my point, I am getting tired of all this "you stupid iPhone owner" shit
PD: I regret nothing3 -
!rant
Just posted some swift code to a server, in a few hours I should have all the prime numbers from 1 to a billion!4 -
Wow..so i decided to try out Swift instead of always writing in ObjC while writing a native module in my React Native project.
I spent a fucking hour trying to figure out how can i write code to get a value from my info.plist in Swift and what i got was a humongous piece of code whereas ObjC does it in one line.
Whats the hype about Swift?!? Its the worst fucking language out there5 -
So I just started learning Swift, and I think it's modern, beautiful and a bit weird. Like the Portuguese of programming languages.
I think it should be used more.3 -
Any Xamarin users here? Which is better swift or Xamarin? In terms of support, performance etc. The app for the time being mostly needs api calls only.7
-
Is it just me, or is it the worst possible time to jump into coding for Apple products?
I remember trying to figure out Xcode a few years back and making some small bit of headway. More recently it seems that all the old tutorials in Objective-C are out-of-date, and half the Swift ones won't compile because of mutually incompatible versions...1 -
as! much! as I like it better? than @objc!, sometimes! I want! to punch! the hipsters that created? Swift4
-
Objective-C syntax is more readable than Swift.
The verbose naming conversations feel natural in Objective-C, but in Swift they look rather nasty to me.
Also Swift syntax feels inconsistent in many parts of the language, which forces you to memorize when you can and when you can't use a certain feature (i.e where, case).
Am I the only one that thinks Objective-C looks a lot cleaner than Swift code?
Note: This is an opinion, not trying to start a war. Just curious if I'm alone on this.9 -
coming back to objective-c after half a year coding in swift and forgetting about semicolons everywhere
-
Fuck Swift. Such a garbage language. The last 3 days I tried multiple web server implemented in Swift for mocking API's and none of them worked. Old, not maintained, wrong documentation, wrong code examples and just low quality shit.
Finally I decided to not give a crap and move to use Wiremock and it works out of the box, start and configuration is a breeze and it just plainly works. I should have done that from the beginning.
Btw., as a warning these were the frameworks I used and you should avoid them if possible: Swifter, Embassy, Ambassador and Succulent.1 -
Acer Swift 3 Vs Dell Vostro 5881 ?
Any comments or recommendation?
Have any of you have any experience?7 -
I have been writing code in swift for such a long time now any other language feels old and really clunky.
-
Instead of adopting the ` character to represent multi-line string literals like JavaScript, Swift opts for three consecutive double-quotes. """ smh4
-
Question for iOS Swift guys:
Since Implicitly Unwrapped Optionals are now dropped for a while, and everything is an optional, hiw can I now declare property that has no value and intializer will not make fuss?
I used to do this:
class Bullet {
var calibre: Double!
}
This way I can avoid initializer which gets useful when there are properties which hold complex types, which get useful when writing tests.
If I remove ! Then compiler complains.
If I put ? Then My code becomes crap of guards and ifs to check for optionals.
Really hate this Optional thing in Swift. Half my time when I jave an issue is related to optionals.
Btw,
let x: Int! = 10
let y = x, yields y: Int? -
today my friend wanted to publish his swift 3 library in cocoapods, set up proper github repository, made a releass/tag then tried to upload cocoa pods. first was success but somehow it turned out to be empty then we changed some settings in cocoapods (moved paths etc) then it started to give errors and such. strangely every fkin time different kind of error.
first realized he is using xcode 7 build tools which lacks support of swift3, then switchex to xcode8-beta tools but again that shit wasnt working. so i noticed that their app switching repo origin to their specs origin.
removed cocoapods from sys entirely, xcode7 as same as cocoapods and installed git cmd tools from homebrew to make it updated. started from scratch same shit also happened.
so i give up and fired chrome to look up issue, it turns out it was problem with xcode-beta and cocoapods entirely, even somebody just 30mins before us also commented on issue with exact same output problems
5hrs for shitty bugs fml... -
Hello everybody,
I have an idea for an app and waned to get your opinion on what I should use.
I have experience in Java and ReactJs, but nothing in Swift.
So, I want to know what you all would suggest - should I use React Native or Java and Swift to create both my android and iOS app? I have read mixed reviews concerning React Native and its use longterm? However, it seems like its the easier options to push out both and Android and iOS app.
I'm very unsure, any suggestions would be much appreciated.6 -
Any good programming language with great generics support that is not dynamic ?
Rust generics sucks so much I puked 2 times.
Tried with swift and it looks great.
Golang doesn’t have them.
Java sucks.
Maybe I try julia if someone say it’s cool.
I want to implement some 2d vector algebra and simple physics engine.
I started by creating generic 2d vector and trying to create dot product from it.
I didn’t wanted to do it in swift but wasted 2 days trying to do it in rust vs 1 hour in swift including 49 minutes of installing swift tools.
Anyway anyone know performant language with good generics support, let me know in comments.39 -
That moment when you really want to try swift but Ubuntu. I can do this on Mac(in house) but I prefer laptop with Ubuntu in work 😩2
-
How can the people from twitter failed to have a working documentation for swift 3 (to be fair, documentation didn't work for swift 2 either).
People, if you have open source software, either have a working documentation or don't document at all ! -
I recently started writing blog articles, mainly on iOS and Swift 😁 I would be very happy about feedback!
Here is my latest article:
https://link.medium.com/BUhhoegDo03 -
Why do I struggle sooooo much with xCode and Swift just trying to place a button in the View that when you click, runs a function? I can do this very easily with Visual Studio and C# but not xCode.
Anyone know a good (simple) tutorial video on creating views with xCode and Swift? Every one I’ve seen all assume that you have programmed in Swift for over 10 years.2 -
I want to expand my skills in swift, and want to build a project to do so. Any ideas/challenges for what I can build?1
-
I hope Scott Meyers is learning Swift, because it's gaining so many edge cases and keyword-level features that programmers who use it will need an "Effective Swift" book to tell them which language features to avoid to get their work done.
I wonder whether it will survive that complexity as C++ did, or collapse under the weight like Perl. -
Is there any references sheet or books that I can use to start quickly with native iOS development? I'm using Flutter and need to interface with native swift code since there is no plugin that suit my purpose. I only know Android native and never touched any iOS stuff before.6
-
To those who use server-side Swift, which one do you prefer: Perfect OR Vapor? Thanks for your opinion.1
-
Want to start writing swift for iOS, but I'm split between using AppCode and/or Xcode. Any suggestions? :)2
-
Helping out of goodwill with the time I have only to receive nothing but terrible attitude.
I know it can get frustrating but don't throw that frustration on me. Especially when I'm genuinely helping out and going out of the way to do so. -
For an app, to be available in IOS and Android, i need to code it in both languages (Swift and Java)? or there is another way to do it?7
-
Today I launched laravel swift. A SwiftUI-inspired spin on Laravel Livewire. https://github.com/redbastie/swift
-
I have a weird problem ...
There’s an existing swift app, with Apple sign in implemented and working.
When I took over I had to revoke app certificates and create new one. Since then the Apple sign in stopped working.
I’ve tried clean rebuild etc , even tried renewing old profiles with the new cert but nothing is working.
When u do Apple sign in it says “sign up not completed” with no error msg.
Old dev says it happened last time when cert/profile was changed but fixed on proper rebuild. Not fixing for me.
Anybody else faced this?5 -
Okay I usually like Swift, but why did they have to make parsing JSON such a pain in the ass?? You have to loop through every child collection and should give up the type that it should be. Obviously you could work around this by writing some sort of wrapper but if I want to do a simple request to an API it results it so much unnecessary code.1
-
I still don't understand why the swift image picker controller doesn't allow me to pick more than one photo at a time!
-
The thing about me is that I always like to test new language, I like python javascript(node js, ...) and swift but at works I use pho and JavaScript, every time I start a project in a certain language than after some weeks I forget what I learn because I don't use every day
-
Most of my previous experience is in Java but my current area of focus is iOS apps for healthcare. Patient casenote management system and an electronic form solution for paramedics in ambulances. Im currently using both Java and Swift for my dissertation, an iOS app with a Java backend using Dropwizard for REST. iOS can be good but Im eager to get away from Objective-C. I wouldnt mind going back to java full time or even maybe C# since they are basically the same thing.
-
I just got to college and can do web dev fairly well (Mern stack mostly). But tbh I am now more interested in being an app developer. Should I try to learn React Native/Flutter or Kotlin/Swiftquestion kotlin java android kotlin google app development ios development android development app swift apple3
-
3 devs, one and myself are new hires. I started a week after the other new guy and my 3rd week of training is next week.
The other devices has been fixing what the Swift 3 update broke. We realized next update we will be fixing it. Time to learn Swift! -
SWIFT 3 sucks! SUCKS I TELL YOU! swift 3 changes the NSError class to its own Error class, now the categories (i.e the extensions) that I have added to the NSError class (like convenience inits and NSDictionary map to my own variables) are ALL LOST !!! MORE THAN 100 LINES OF CODE LOST!! because of this piece of shit mutation of the DATA TYPE ITSELF!!! when objective C code is used in Swift (using the mix-match technique) DONT UPGRADE TO swift 3.0 GUYS DONT DO IT!!! especially if you have legacy code in your project !!2
-
Oh god no anything but this
(Seriously now, the reason is a bit complicated because Swift is different but focus on the meme, if you want an explanation I will give it to you in the comments lol)3 -
What are nice apps to learn swift dev? :) I'm tired of all those TO-DO's apps or calculators
I wanna build something that makes me explore the capabilities of the language in deep, not just the tip
I read your comments :33 -
Semi-rant
Saw an ad that required 8+ years experience in Swift.. Didn't Swift come out like... 4 years ago? Can these recruiters have a sense of what they're doing and the area they're in please. Not just this one, but many others as well.1 -
Uh so I can’t really find a clear answer to this but, can you program iOS apps with C# or not because I’m only seeing shit on fuckin Swift. More like swiftly beating myself to death with a wooden bat6
-
hey everyone like a the past few months i got my laptop but now im planing to get a mac just for the sake on developing ios apps more on practice and by far project execution like a mid level project the question is will the new macbook air(2018) the one with the i5-y proci do good in terms of development? my options are entry level only mainly for swift and react-native dev
Options:
MBA 2018
RAM 8gb
SSD 256gb
i5(Amber Lake-Y 7 W Dual-Core)
or
MB Pro 2018
RAM 8gb
SSD 256gb
i5(7th-generation)
please help me out since im planing to get it later, thanks3 -
Me and @asafniv cannot settle this argument and we need your conclusion.
What syntax makes more sense, Objective-C or Swift?
In my opinion, Swift's syntax is better than Objective-C, but Asaf's opinion the the opposite.
We failed to settle this argument and that is why we need YOU to give us your opinion.
In the comments I will send 2 identical functions, one is written in Objective-C, and one is written in Swift.17 -
Oh come the fuck on.
I’m trying to build a SwiftUI app and I can’t decrypt a video while it’s buffering using DisptchQueue? Wtf do you mean “UI must live on the main queue?” I AM running it on the main queue and it fucking crashes!!!
Please, if anybody knows how to use DispatchQueues correctly in Swift, HIT ME UP! I NEED SERIOUS HELP IN THIS BITCH -
in apple's blog they explained why they don't want a `protected` in swift:
https://developer.apple.com/swift/...
> It doesn’t actually offer any real protection, since a subclass can always expose “protected” API through a new public method or property."
Isn't the same thinking applies to `internal` keyword as well? Yet they allow `internal` to be there as default modifier for `class` in a package. Also I don't think `protected` is for the sole purpose of "protection", but for the cleanliness of externally visible interface, some methods are just useless to be exposed and will confuse the consumer if they don't understand internally how the class works. So it doesn't have to be 100% securely `protected` (arguably the term `protected` is a poor choice tho).
but hey, it is apple, being opinionated doesn't surprise me.6 -
I have a career as a webdev, I’m pretty solid with several languages, not to toot my own horn. I picked up Python crazy fast. I’m hoping Swift will be similar. I tried to learn objective c, back when swift first came out, nothing stuck. I just finished a video on the fundamentals of Swift, but I’m not sure what to do next. Any guidance would be appreciated.5
-
Added vapor core swift package to my project so that I can use some of the extensions, had to `rm -rf ~/Library/Developer/Xcode/DerivedData/` to make xcode realise the repo is actually exist.
Then I set the Core package as dependency of one of the targets, XCode complaints "unknown package Core", ok fine then I remove Core dependency, Core complaints "dependency Core is not used by any target".
How can xcode comes to this contradicting conclusion is out of my imagination, it just never gonna be happy about however i write.1 -
Today is one of those days where I've got tons of ideas on how to implement the next part of my app's functionality. Then I remember I'm using Swift. Forehead, meet wall, again, and again, and again....1
-
//In the code block below. What are both self methods refering to? do both self methods refer to the Suit enum because it is inside the enum block? I am trying to better understand self. Please see link for expanded question.
enum Suit {
case spades, hearts, diamonds, clubs
var rank: Int {
switch self {
case .spades: return 4
case .hearts: return 3
case .diamonds: return 2
case .clubs: return 1
}
}
func beats(_ otherSuit: Suit) -> Bool {
return self.rank > otherSuit.rank
}
}
https://code.sololearn.com/c9KIG0ab... -
When you start working on android app development, but you always forgot to put a "(" at the start and ")" at the end of an if statement or for statement, because you got used working on Swift Programming. Haha1
-
Any upto date and maintained swift library (pod) that enables easy integration with fontawesome or material icons ?
The ones from thii, fail for buttons icons. The others are not maintained projetcs.
Any suggestions ?
On android i use the mikepenz amazing library, but cannot find anything similar for ios.
Haaaalp1 -
Seriously. Is there ANY way to work with my colleagues on the same xcode project, or is it fucked, and have to manually copy-paste storyboards, and .swift files? I found that it’s the easiest way so far. Any recommendations?6
-
OK, Started to work on iOS app few months ago. Had to deal with so many xcode and swift problems that it is driving me nuts. How any sane person can code this shit language? I never seen such an idiotic syntax in my life. I worked with so many languages in past 12 years: C++, Java, Python, PHP, Ruby, JavaScript. So many code editors & IDE's: Subline, Notepad++, Eclipse, Jetbrains, VSCode, Atom. But after working XCode and Swift for few months I want to burn down my MacBook that I only had to get to work on this iOS app with this shitty XCode IDE.7
-
Sometimes I get attached to a difficult programming language, I don't know why,
I'm very attached to Swift, it's tough and sample, but I got attached to it and loved it.
How crazy I am1 -
Any good tuto sharing about dispatch queue on swift 4? Have already googled the subject, but any real experience will be greatly appreciated.
-
I ❤ Swift and Xcode. However, tempted to learn React Native. Just so that I can put my apps on both the App Stores. Also ability to get more projects. What do you think? Is it worth learning? Thank you for the feedback in advance!😀1
-
Does anyone has experience with the VIPER architecture pattern on iOS and Swift? Or has a more experienced example project than a simple two views app? I’m currently using MVVM-C with router. I would like to still keep the concept of the coordinates in VIPER, is it a redundancy? A bad choice? or do I missed a part?8
-
OKAY GUYS I NEED YOU. I have an idea for an app (bet you’ve heard that before haha) and I really want to make it.
I have to learn swift, so online tutorials are my go to (pls recommend material).
However, I’ve never really done backend before, and I’ll need it to make my project (accounts & stuff). Where do I start for swift/iOS backend programming? Do I need to buy a server? Where do I host the stuff?
Pls help8