Code Monkey home page Code Monkey logo

Comments (5)

JiriTrecak avatar JiriTrecak commented on August 16, 2024

Hey Edinson,
thank you for your feedback!

I have to say I already encountered exactly same thing. The issue actually runs deeper - if you are not working alone, it becomes major hinderance. There is also second problem with script that I resolved over the weekend - I thought it might be good idea to lock that file, unfortunately git then just refuses to cooperate with you completely when you need, for example, reset that file! and this goes back to each-time-regenerating file, because sometimes it goes to situation where you just can't do anything with it - reset, stash, reverse.. oh well.

So yes, I completely agree this should be changed. I think the timestamp has some meaning there, I will change the bash script so it checks and generates only if needed and add it to readme / example. You can modify following to fix it (in build phase):

if [ "$OUTPUT_PATH" -ot "$SOURCE_PATH" ]; then
    "$LAURINE_PATH" -i "$SOURCE_PATH" -o "$OUTPUT_PATH"
fi

Have a nice day!

from laurine.

ed-mejia avatar ed-mejia commented on August 16, 2024

Cool adding that snippet seems to do the trick, it's much better now.

Thanks!

from laurine.

JiriTrecak avatar JiriTrecak commented on August 16, 2024

Glad I could help!

from laurine.

richardbuckle avatar richardbuckle commented on August 16, 2024

Hi guys,

Firstly, I would like to make you aware of the options in Xcode for specifying the inputs and outputs that it uses for dependency testing. Screenshot below. These reduce unnecessary invocations of the build step.

screen shot 2015-12-15 at 02 30 35

Secondly, I very strongly disagree that any sort of timestamp should exist in the source file. This is not the first time that I have seen redundant timestamps cause churn in the VCS.

The timestamp is metadata and I believe that such meta belongs only in the VCS, not in the file content.

from laurine.

JiriTrecak avatar JiriTrecak commented on August 16, 2024

Hey Richard

I know about the first option ; I considered it and realized, that while we might know, not everyone will - and there is nothing preventing you to modify that script on your own - that is why it is just example, right.

My focus is to create something that is so easy to use, that you don't have to think about it - sure, might seem like small change, but ctrl+c with everything still seem more viable.

As for the second question, after considering all pros and cons, I have to agree with you - metadata such as this should be governed only by VCS, if the date would be date of creation (as XCode does it) that would probably be okay - but that is also pointless to do.

I will be changing the generator so it omits the date altogether and I will keep the script as we decided earlier due to simple fact that it is easy to copy paste. I might add more options in the future, I am considering ways how to make it easy using cocoapods anyway.

Thank you so much for your support.

from laurine.

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.