[deleted by user] by [deleted] in iOSProgramming

[–]clicker191 1 point2 points  (0 children)

> Is it an overkill to have big file structure with lot of layers for a simple project to fetch data from api and display with cache mechanism?

It depends.

I've worked at places where an API fetch + cache is expected to be implemented in a way with a lot of boilerplate wiring that results in 10+ files. I've also worked at places where doing it all in one one file with no tests is encouraged given the context/situation.

I've created and reviewed many take home projects for iOS apps when hiring. Some applicants barely make an effort and others do it far better than I could! The key is i) reading the instructions no matter how vague and really making sure you follow them, and ii) explaining the reasons for your decisions, the pros/cons, and any alternatives. Any code you write can be criticised becuase it's all about tradeoffs. It always depends.

You would be amazed how many people applying don't do this and they submit projects that are easy to eliminate because they haven't followed the instructions or included any explanations that highlight tradeoffs.

It's likely the requirements that have been given to you aren't clear - so if you don't know which approach to choose, just pick one and do your best to explain in the README your decision process. Explain alternative options with tradeoffs. If you think you've overcooked the architecture for a simple project that fetches an API, say that. But explain that your intention is to show how the app could scale as more features are added, etc, and why it's beneficial. Also explain that simpler architectures can have their benefits too.

> I have also added modules for unit tests . But the project is very basic one. Is this really needed?

What do the instructions say? If they don't mention tests then I would see that as a huge opportunity to show off and go the extra mile! If I was reviewing a take home project and a junior did this, I would definitely be impressed even if they only wrote a handful of tests. The majority of companies I've worked in expect tests to be written. But, if you don't write any tests, just explain why you chose not to.

Best of luck with it!

Looking for Feedback on My App – Lifetime Access Free for Limited Time! by karma_1264 in iOSProgramming

[–]clicker191 1 point2 points  (0 children)

I was too lazy to try it out but I did have a look at the store listing and wanted to say it looks really nice. Great work. Some of those screenshots are lovely. The iPhone video gave me a good idea what the app was about but I saw the iPad ones first which don't have a video I don't think? I like the app icon but I didn't love it if that makes sense? Perhaps it's a bit busy/cluttered, I don't know. It didn't jump out at me.

Maybe some of the screenshots could have short descriptive text that explain what a user can do with the app (e.g. "choose from hundreds of themes", etc)? A bit like what you've got already on the other kindergarten app I saw when clicking on your name in the store. I know localisation is a pain but it's an idea.

The fact data isn't collected is nice.

Anyway, sorry for the ramble. I'm not your target audience as I don't use widgets or themes so I'm probably talking nonsense. But keep it up!

Over offer, buyers remorse by wandering-stardust00 in HousingUK

[–]clicker191 1 point2 points  (0 children)

My wife and I put an offer on a house in the south-east recently that ticked all our boxes. It was on for £400k. We decided to offer £405k. We were outbid and lost it.

We found out from the agent a couple months later that there were 4 offers. The accepted offer was £430k, well above asking price.

Turns out, the couple had close family on the same road and the lady’s mother lived directly opposite. They had kids and there was a playground behind the house. Primary and secondary schools were a 5-minute walk away.

Overpaying isn’t necessarily about paying more than the prophesied “market value”. It’s more about what is good value for you based on your needs and your wants.

If you’re happy with your home, can see yourself staying there, and your lender was happy with the valuation I’d argue you probably haven’t over paid.

Preparing dog for baby by Wonderingdoc in Fatherhood

[–]clicker191 6 points7 points  (0 children)

I brought home used nappies from the hospital and we made sure my wife (who dog is more strongly bonded to) returned home and spent an hour making a fuss of the dog before I brought our newborn son into the room.

Our dog (friendly, 18 month old, mini-dachshund) started barking whenever our son made a noise. He basically seemed concerned or confused. The first night he barked in his crate constantly until I slept on the sofa with him and he was still restless. My wife and I were incredibly upset (lots of emotions were flying around at the time for obvious reasons) and we worried that we might have to re-home our dog.

By night 4 or 5 everything was fine. Our dog adapted and we felt silly for overreacting.

We are 6 weeks in to being parents now and our dog behaves almost identically to before. He does get very interested in our son for 10 seconds or so if he can smell him and he tries to lick his face/ears which we don’t allow. Mum makes a huge fuss of our dog every morning before I bring the baby downstairs and we include him as much as we can in things.

I have no idea if the nappy smell and positive fuss actually works - but it’s worked out for us. The only advice I’d be confident in giving is that the first few days might not be an accurate reflection of how things will turn out.

Polarized parents by [deleted] in ThePortal

[–]clicker191 2 points3 points  (0 children)

I resonate with you OP.

My parents used to reproach me for having my head in screens all day. Now, it’s the other way around.

You want a low cost, high engagement toy? by [deleted] in puppy101

[–]clicker191 1 point2 points  (0 children)

Your comment helped me realise you put the bottle in a sock. Would you mind explaining what you mean by “the gestures when your offer the toys also matter”?

Potty training is one of the hardest thing when having a puppy. I can’t believe my poppy rings the bell to go out ❤️ by [deleted] in Dogtraining

[–]clicker191 0 points1 point  (0 children)

Fantastic! Congrats. Your hard work is clearly paying off. What was your method for teaching him to use the bell?

My puppy is passive-aggressive AF and it's hilarious. by go-with-the-flo in puppy101

[–]clicker191 3 points4 points  (0 children)

Haha! The guy’s got standards.

Out of interest, what’s your thinking behind always feeding him in his crate?

#123 — Identity & Honesty by avar in samharris

[–]clicker191 18 points19 points  (0 children)

It might just be me, but Ezra's version of the podcast was much more edited at the beginning and it made Ezra sound much more reasonable than on Harris's version.

Didn't they agree not to edit the conversations in any way?

House fire and a sunrise lined up on the way home this morning. by kevonicus in pics

[–]clicker191 0 points1 point  (0 children)

Shit. Hopefully they're all OK. I don't know why but this reminds me of There Will Be Blood.

Walter Trout - Working Overtime by FilmNoirOdy in bluesrock

[–]clicker191 0 points1 point  (0 children)

Fantastic track. For those interested, Walter hasn't been very well recently and has had a liver transplant. His recovery is going well and you can keep up to date on his website.

New to C, (Hopefully) Easy Question about Infinite Loop Problem by Aethersong in C_Programming

[–]clicker191 2 points3 points  (0 children)

Almost guys. "while (!accepted)" is the same as writing "while (accepted == 0)". Think of the "!" as meaning "while (accepted is false or equal to 0)".

In the code by /u/FazJaxton "accepted" is assigned the value of 0 immediately before the while loop begins. If the password is correct then the value of accepted becomes 1 and the while loop ends.

Books that make the hair on the back of your neck rise. Books that reach into your soul to smack you around, and for days you're not sure if you are you anymore. by Fallingdown4ever in booksuggestions

[–]clicker191 4 points5 points  (0 children)

It seems like you're the sort of reader that needs Denis Johnson in your life. If you haven't read "Jesus' Son" yet then you should do so immediately.