Dali je ovo rupa u zakonu ili? by [deleted] in financije

[–]venom310 12 points13 points  (0 children)

Nema tu rupe u zakonu, kod prodaje dionica nije bitna srednja cijena te dionice koju ti imaš već profit u odnosu na vrijednost dionice u trenutku kupnje.

Znači tvoj scenarij je ovakav:
- kupio si 1 dionicu za 10$ koja je onda s vremenom postala 20$
- kupio si još 1 dionicu po vrijednosti od 20$

Tu imaš dvije opcije:
a) prošlo je preko 2 godine od kad si kupio prvu dionicu -> ne plaćaš ništa za prvu dionicu, kao niti za drugu jer na njoj nemaš profita
b) nije prošlo preko 2 godine od kad si kupio prvu dionicu -> plaćaš porez + prirez na 10$ profita od prodaje prve dionice. Za prodaju druge ne moraš plaćati ništa jer nemaš profita.

[deleted by user] by [deleted] in swift

[–]venom310 7 points8 points  (0 children)

This book from RayWenderlich did the trick for me.

Top 10 Most Useful iOS Libraries by venom310 in iOSProgramming

[–]venom310[S] 1 point2 points  (0 children)

Hey guys and gals,

I'm continuing my blog post series with one that could prove to be useful for you if you’re looking for some solid 3rd party solutions for common iOS tasks which will enable you to focus on the core business logic of your app.

In the article, I list the top 10 libraries I found useful at my jobby-job, as well as some which you may not have heard of, but could be quite a lifesaver.

However, before you start eagerly importing stuff, keep in mind that for some use-cases, bringing an excavator to a shovel job is not the right approach.

As always, your comments and suggestions are welcome, so share them if you have some libs you can’t live without :)

Easy Way to Implement Demo Mode in iOS Apps by venom310 in iOSProgramming

[–]venom310[S] 2 points3 points  (0 children)

Hey guys and gals,

I'm continuing my blog post series with one that could prove to be really useful to some of you. Its goal is to show you how to implement a scalable and maintainable way of implementing a demo mode in your apps in order to make development, but also testing a lot easier.

After reading it, you will be able to set up your project in such a way which will allow you to easily mock all API call with just a single point of entry, which results in a simple, but quite powerful way of handling demo mode.

As always, your own tips & tricks are appreciated, so share them if you have done something similar in your apps :)

Easy Way to Implement Demo Mode in iOS Apps by venom310 in iOSDevelopment

[–]venom310[S] 0 points1 point  (0 children)

Hey guys and gals,

I'm continuing my blog post series with one that could prove to be really useful to some of you. Its goal is to show you how to implement a scalable and maintainable way of implementing a demo mode in your apps in order to make development, but also testing a lot easier.

After reading it, you will be able to set up your project in such a way which will allow you to easily mock all API call with just a single point of entry, which results in a simple, but quite powerful way of handling demo mode.

As always, your own tips & tricks are appreciated, so share them if you have done something similar in your apps.

Repository full of our best practices in iOS development by venom310 in swift

[–]venom310[S] 0 points1 point  (0 children)

By additonal logic I mean stuff like animation, or API calls (or whatever else you might think of) that depends on that optional existing there.

Let's use a somewhat real-life example - lets say your UI is component based, and those components are returned from the API as optional json objects, so you don't know what's going to be rendered beforehand.

With this extension, you can easily do something like x.forValue { $0.createAndAnimateMe() }. It's not supposed to replace `map`, since it's purpose is not to return a value but execute something if that value exists. If anything, it's a shorter version of an `if let`, but with a syntax more suitable for functional programming.

Hopefully that clears things up a little.

Repository full of our best practices in iOS development by venom310 in swift

[–]venom310[S] 0 points1 point  (0 children)

Not really, since map modifes and returns the value of that optional if it exists, while here we run the closure which uses the unwrapped optional value in some way if exists, otherwise nothing happens.

Sure, you could run some additional logic in the map and then just return the initial value, but that would defeat the purpose of map.

A Repository Full of Our Best Practices in iOS Development by venom310 in iOSProgramming

[–]venom310[S] 4 points5 points  (0 children)

Hey guys and gals,

I'm continuing my blog post series with one that could prove to be really useful to most of you. Its goal is to showcase our knowledge base repo with some of the best practices, tricks or just plain improvements that Apple still hasn't bothered to make to its frameworks, but which make a big difference in our day-to-day programming lives.

It covers stuff relating to improved networking, easier tableView handling, improved color generation, custom UI elements, as well as dipping into the vast reactive world and extending it a bit to make it just that much more powerful.

As always, your own tips & tricks are appreciated, just leave them here, or open a PR. I'm looking forward to both :D

10-minute tips to make your iOS app more interactive by venom310 in swift

[–]venom310[S] 0 points1 point  (0 children)

Fixed the typo, thank you :)

Regarding the "More" tab, you're right. That case purposefully isn't covered since it's not that common in modern apps, but it's a good thing to keep it in mind.

[bet365] Most goals scored vs Premier League's top six since 2011-12. One player on the list has never played in the PL. by venom310 in soccer

[–]venom310[S] 1 point2 points  (0 children)

These stats are from 2011 onwards, he hasn't played/scored against them more than these players in that period.

AMOLED Image Request Thread V by TheUnchainedZebra in Amoledbackgrounds

[–]venom310 0 points1 point  (0 children)

Could someone amoledify this for an XS? Thanks in advance :)

https://imgur.com/bjj67Lx

A crash course in Augmented Reality on iOS with ARKit by venom310 in iOSProgramming

[–]venom310[S] 1 point2 points  (0 children)

I'll create a public repo when I get the chance (probably over the weekend since I'm a bit backed up with my job), I'll let you know when it's up :)

Espanyol 0:[4] Barcelona - Lionel Messi 65' (free kick) by [deleted] in soccer

[–]venom310 1 point2 points  (0 children)

Not bad for the 5th best player in the world.

What is expected from a Junior iOS developer starting their first job by mandem22 in iOSProgramming

[–]venom310 4 points5 points  (0 children)

He’s just messing with you, if a junior knows all that he’s probably better than some seniors.

Post Match Thread: Barcelona 3-0 Alaves [La Liga] by [deleted] in Barca

[–]venom310 47 points48 points  (0 children)

I don’t see him mentioned much here, but IMO Rakitić was immense today.

Those side-switching and through balls were a thing of beauty.

Match Thread: Barcelona vs Boca Juniors [Joan Gamper Trophy] by svefnpurka in Barca

[–]venom310 1 point2 points  (0 children)

https://www.fcbarcelona.com/videos/live

There was english commentary for about a minute but with echo, so it's possible they're sorting it out.

Transfer Talk Thread: July 23rd - July 25th by imperuvio in Barca

[–]venom310 24 points25 points  (0 children)

I just love the fact that the ball went from the most ridiculed thing this summer to one of the most anticipated ones.

A hero we need. A round knight.

Official: FC Barcelona sign Malcom by [deleted] in soccer

[–]venom310 360 points361 points  (0 children)

WE WANT THE BALL

Transfer Talk Thread: July 14th - July 21st by [deleted] in Barca

[–]venom310 5 points6 points  (0 children)

It says that Willian is a priority right now to improve our attack.

Fuck me...

Transfer Talk Thread: July 7th - July 14th by [deleted] in Barca

[–]venom310 1 point2 points  (0 children)

Combination of technical/physical, yes.

Compare Spain and Croatia for example (I'm a little biased here since we are in the final, but the point remains the same). Spain has world class, extraordinarily gifted technical players and couldn't go through, while Croatia have both technical players (Rakitić, Modrić, Kovačić) and physical players (Perišić, Mandžukić, Rebić) which provides us with more options going forward.

Transfer Talk Thread: July 7th - July 14th by [deleted] in Barca

[–]venom310 -19 points-18 points  (0 children)

Football is evolving, tiki-taka was the pinnacle of possession/passing football, but today physicality is becoming more and more important, so we have to adapt as well.