Giter Site home page Giter Site logo

Comments (8)

TimOliver avatar TimOliver commented on August 19, 2024

Alrighty. I had a think about this, but let me get confirmation before I spend any cycles on this.

Going with these requirements, I think it would be better if we built a quick sample app to generate a Realm file containing some tightly-controlled, hand-crafted data, instead of relying on randomly generated sample data (Which I explored in the some of the Realm sample apps), or some contextless production data that really requires the parent app to make sense (Briefly considering using my app's own production data).

Following the dogs and their owners motif that is present in a lot of Realm's sample code, shall I create a sample Realm file containing a similar set of demonstration data?

The schema would be as follows:
Dog Model Object

  • name (String)
  • age (Integer)
  • Birthdate (NSDate)
  • Vaccinated (BOOL)
  • Owner (RLMObject)

Owner Model Object (Only visible on the classes list)

  • name (String)

Let me know what you think! :)

from realm-browser-osx.

timanglade avatar timanglade commented on August 19, 2024

I think having both age + birthdate might be confusing. Usually you’d only store the birthdate and calculate the age, no? Looks good otherwise!

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

Normally yes. But for the sake of demonstrating the capabilities of the Browser, being able to demonstrate the age as an integer value might be beneficial.

Failing that, I'll try and think up another integer value we could potentially advertise. :)

from realm-browser-osx.

jpsim avatar jpsim commented on August 19, 2024

Go for height as a Double instead?

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

@jpsim Ooh! That's a great idea! Thanks for that! :)

Cool, so assuming no other issues, I'll create a mock Realm file with these pieces of data to use as the screenshot tomorrow. :)

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

Alrighty. How's this?

realmbrowserscreenshot

from realm-browser-osx.

timanglade avatar timanglade commented on August 19, 2024

Definite improvement! I would ship it. (At some point later on we may want
to add a third model + fill vertical space in the grid). Can you update
this in our docs + on the app store?

On Fri, Jul 31, 2015 at 2:38 AM, Tim Oliver [email protected]
wrote:

Alrighty. How's this?

[image: realmbrowserscreenshot]
https://cloud.githubusercontent.com/assets/429119/9004698/df98cd14-37aa-11e5-85bf-60646652aca6.jpg


Reply to this email directly or view it on GitHub
#49 (comment)
.

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

Updated in the both the Realm documentation and the latest App Store submission.

from realm-browser-osx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.