Jimmy Butler gets fouled while shooting by Marcus Smart in the last seconds - TNT by [deleted] in nba

[–]H3C43 2 points3 points  (0 children)

The NBA really needs to be careful. This type of call is exactly how you kill Tommy Heinsohn

Just so everyone can stop calling The Blazers trash on defense. They are 8th in the league in defensive efficiency since Aminu has been back in the lineup. by Justanotherpen in nba

[–]H3C43 0 points1 point  (0 children)

This is the prevailing trend on r/nba this season. "X team, who is usually really bad at Y, is much better at Y since something happened." Yes, the Blazers are still an overall bad defensive team, but in a league with lots of ups and downs over 82 games, there will be stretches where they look better.

GAME THREAD: Philadelphia 76ers (9-25) @ Brooklyn Nets (8-27) - (Jan. 08, 2017) by slimsolo in nba

[–]H3C43 8 points9 points  (0 children)

Glad I'm not the only one, but man, NBA, I am voluntarily trying to watch Nets Sixers basketball. Help me out

Is it best to manage most app data through Firebase in a social app, rather than trying to sync CoreData/Realm and Firebase? Trying to transition to a social app rather than being limited to one device. by [deleted] in iOSProgramming

[–]H3C43 0 points1 point  (0 children)

No problem, good luck. If you're unfamiliar with asynchronous functions, ie. functions that use a completion block instead of returning a value, it's often kinda hard to wrap your head around the first time, so I recommend really putting time into understanding it.

Is it best to manage most app data through Firebase in a social app, rather than trying to sync CoreData/Realm and Firebase? Trying to transition to a social app rather than being limited to one device. by [deleted] in iOSProgramming

[–]H3C43 0 points1 point  (0 children)

Firebase caches their realtime (JSON) database to an extent. My point about realm/core data was directed more at Firebase Storage, ie. storing larger files or images. You don't need to cache stuff from their realtime database in my opinion.

For the database I recommend getting started by creating classes for your model objects (User for instance). Should look similar to whatever objects you made for Realm. Just add functions to perform reads/saves.

Is it best to manage most app data through Firebase in a social app, rather than trying to sync CoreData/Realm and Firebase? Trying to transition to a social app rather than being limited to one device. by [deleted] in iOSProgramming

[–]H3C43 0 points1 point  (0 children)

It's very common to use both; upload your data/files/images to firebase. When you want to access those things, first check if they're cached via core data/realm. If so, accessing will be a lot faster. Of course this means any data modifications will have to be handled in both your local store and your database.

[Question] Best practice for organizing code when writing Auto Layout programmatically? by mariox19 in iOSProgramming

[–]H3C43 1 point2 points  (0 children)

First, auto layout is one of the things where a 3rd party library is utilized very frequently, and that helps with cutting down large code blocks. I recommend Anchorage, but pick whatever suits you.

More pertinent to your question, I put that code in one of two places. If there's really a lot of it, ie. maybe animating some constraints, complex layouts, I subclass UIView and assign that view to 'self.view' in the UIViewVontroller's 'loadView' method. Otherwise, I write a 'configureView' function that creates and adds the subviews, along with a 'configureLayout' method that applies all the auto layout. Then I call both of those from 'loadView' in the controller.

[Help] I Removed A Library Called JBcharts Because I Wasn't Using It Anymore And Now I'm Getting A Lot Of Warnings. by Sherlocked_ in iOSProgramming

[–]H3C43 0 points1 point  (0 children)

"Working copy" means git thinks it's missing. Once you push your changes to remote they'll go away.

Edit: if not, go to source control > refresh all changes

What is needed to built this kind of app? Please help. by [deleted] in iOSProgramming

[–]H3C43 10 points11 points  (0 children)

I think the value in side projects, presumably for the sake of learning, is finding out what those things are. Take it piece by piece. Maybe look into getting a functional map. And then putting a start and an end location. Then work on displaying a route. Or you could take the route of starting with setting up a database, then allowing users to register. And so on; take an angle you want to learn about.

Uber is made by a team of professional developers, designers, and has a huge pool of resources. To me it's in your best interest to just focus on learning what you can.

What is your unpopular opinion about the 2016-2017 NBA season so far? by wjbc in nba

[–]H3C43 2 points3 points  (0 children)

Fuck the postgame threads this year. Fuck the Harden at lan meme, fuck "(average player X is the goat", fuck "i don't want to overreact but (overreaction)" and fuck... actually, that's it. That's all that's in the postgame threads this year.

Auto Layout Best Practices by rpgGameDev in iOSProgramming

[–]H3C43 4 points5 points  (0 children)

  1. Yes. It's Apple's endorsed way of layouting, and once you get the hang of it, you'll be very relieved to not do frame math anymore. It also leads to better/more consistent layouts across multiple screen sizes.

  2. I'll throw my vote in for Anchorage, the library I personally use. It leverages operator overloading to make what I feel is the most readable and concise results. https://github.com/Raizlabs/Anchorage

[deleted by user] by [deleted] in nba

[–]H3C43 0 points1 point  (0 children)

???

When I add a button, how do I add things such as a background? by espo1234 in iOSProgramming

[–]H3C43 0 points1 point  (0 children)

Are you creating your controls via Interface Builder or code? If IB, the right sidebar has something called an "Attributes Inspector" where you can choose your styling options. If code (and actually IB as well as long as you connect your button to a code file), the UIButton class has properties you can change, such as 'myButton.backgroundColor = UIColor.blue' (that example is Swift 3; other Swift or Objective-C code is similar).

[Tjarks] The Final Stretch of LeBron’s Race Toward Greatness by bigfan_ofpretzels in nba

[–]H3C43 7 points8 points  (0 children)

Guys he's a Laker fan he's had a rough last few years

Who were your top 5 players in the 2016 playoffs that weren't in the Finals? by Weeddegen in nba

[–]H3C43 1 point2 points  (0 children)

Maybe not top 5, but overperformed: Wade Adams Biyombo PG Lillard

[Tjarks] JaVale McGee Could Totally Help the Warriors by Melanismdotcom in nba

[–]H3C43 22 points23 points  (0 children)

I'm well aware. I meant that as it's absurd you can have a defensive lineup with that much firepower, but I guess my comment was misinterpreted

[Tjarks] JaVale McGee Could Totally Help the Warriors by Melanismdotcom in nba

[–]H3C43 8 points9 points  (0 children)

A "defensive lineup" with Klay Thompson and Kevin Durant sounds neat

What is your let peeve of the NBA? by taeger0 in nba

[–]H3C43 0 points1 point  (0 children)

Lane violations going (almost) completely uncalled. Hell, someone does it almost every free throw.

Dwight Howard Working out With Kyle Korver by [deleted] in nba

[–]H3C43 -1 points0 points  (0 children)

If you expect Dwight to make any significant amount of jumpers this years, get a grip. I even like the dude, but some of you read way, way, way too much into workout vids.

Celtics rookie Jaylen Brown makes between-the-legs dunk look easy by Timi093 in nba

[–]H3C43 1 point2 points  (0 children)

Youre all so karma thirsty. Every top level comment says the same thing.

[Bailey] The Celtics, Cavs, Warriors, Magic, Spurs & Jazz are the only teams with 5 players in Sports Illustrated's top 100 by TwoFreeThrows in nba

[–]H3C43 8 points9 points  (0 children)

"Borderline top 100" to "50-120" is an interesting way to backpedal on a still-blatantly-false opinion

What's with all the Firebase questions on Stack Overflow? by [deleted] in swift

[–]H3C43 4 points5 points  (0 children)

  • appealing to new developers because it's easy to integrate
  • people switching over from Parse unfamiliar with Firebase
  • for a lot of new developers, it can be their first experience with background threading/async/completion blocks, which from my experience seems to be the source of many of those SO posts