Suhaas Posted September 16, 2016 Report Share Posted September 16, 2016 1 minute ago, yomama said: c# aa swift or obj c using man. But ikada key value rendu strings and you are trying to assign int to string. I don't know obj c or swift but neenu akkada em chesthunna ante I am trying to send the item key to a seperate function which calculates the continent based on the logic and returns an int and I am using that integer in the switch case. int continent = GetContinentIdFromKey(item.Key); this above function here takes in a string (item key in our case) and returns an integer like 1 for europe and 2 for asia and finally using that integer in switch add item to individual array. Quote Link to comment Share on other sites More sharing options...
Popkatapetapotapulti Posted September 16, 2016 Report Share Posted September 16, 2016 42 minutes ago, Suhaas said: Sure bhayya. I usually a separate the logic for unit testing or whatever reasons. PS: I am not an expert. Just trying. thats the way it should be..granularity, maintainability..simple and precise code Quote Link to comment Share on other sites More sharing options...
Popkatapetapotapulti Posted September 16, 2016 Report Share Posted September 16, 2016 TS inthaki aa small challenge ekkada Quote Link to comment Share on other sites More sharing options...
yomama Posted September 16, 2016 Author Report Share Posted September 16, 2016 @loveindia Good job man. Quote Link to comment Share on other sites More sharing options...
sri_india Posted September 16, 2016 Report Share Posted September 16, 2016 appudee complete chesesaraa Quote Link to comment Share on other sites More sharing options...
yomama Posted September 16, 2016 Author Report Share Posted September 16, 2016 17 minutes ago, Suhaas said: I don't know obj c or swift but neenu akkada em chesthunna ante I am trying to send the item key to a seperate function which calculates the continent based on the logic and returns an int and I am using that integer in the switch case. int continent = GetContinentIdFromKey(item.Key); this above function here takes in a string (item key in our case) and returns an integer like 1 for europe and 2 for asia and finally using that integer in switch add item to individual array. yeah i understood that. using that method to get a int and switching it. Quote Link to comment Share on other sites More sharing options...
yomama Posted September 16, 2016 Author Report Share Posted September 16, 2016 12 minutes ago, Popkatapetapotapulti said: TS inthaki aa small challenge ekkada ne level challenges will come soon, wait till then. Quote Link to comment Share on other sites More sharing options...
Popkatapetapotapulti Posted September 16, 2016 Report Share Posted September 16, 2016 2 minutes ago, yomama said: ne level challenges will come soon, wait till then. looking forward to it Quote Link to comment Share on other sites More sharing options...
yomama Posted September 16, 2016 Author Report Share Posted September 16, 2016 1 hour ago, Popkatapetapotapulti said: looking forward to it how many IDs you use again? Quote Link to comment Share on other sites More sharing options...
loveindia Posted September 16, 2016 Report Share Posted September 16, 2016 1 hour ago, yomama said: @loveindia Good job man. nenu appudey anna man... no IDE using windows laptop in office so couldn't test in swift.. atleast should have used IBM swift before I pasted it... swift lo append undi... intellisense ki alavaatu padi marchipoya man... but max raasa correct gaaney... way to go man... Quote Link to comment Share on other sites More sharing options...
Popkatapetapotapulti Posted September 16, 2016 Report Share Posted September 16, 2016 1 hour ago, yomama said: how many IDs you use again? you asked me this second time..this is my only id dude Quote Link to comment Share on other sites More sharing options...
yomama Posted September 16, 2016 Author Report Share Posted September 16, 2016 30 minutes ago, Popkatapetapotapulti said: you asked me this second time..this is my only id dude happens man this is DB Quote Link to comment Share on other sites More sharing options...
yomama Posted September 16, 2016 Author Report Share Posted September 16, 2016 1 hour ago, loveindia said: nenu appudey anna man... no IDE using windows laptop in office so couldn't test in swift.. atleast should have used IBM swift before I pasted it... swift lo append undi... intellisense ki alavaatu padi marchipoya man... but max raasa correct gaaney... way to go man... yeah ufcourse man you are correct. Nen just simple syntax errors fix chesa anthe ga. i just like xcode ide , it supports everything i guess. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.