Giter VIP home page Giter VIP logo

Comments (7)

milesfrain avatar milesfrain commented on August 28, 2024 3

Thanks for the feedback.

For some context, we swapped to perl due to mac issues with sed. See #194 and #196.
But those changes were made before it was possible to execute arbitrary .purs standalone scripts with spago, so perhaps we're due for a rewrite where we eat our own dogfood.

An action to push to a follow-along branch also sounds good. I probably won't get around to implementing that myself anytime soon, but will accept a PR.

from purescript-book.

keithlayne avatar keithlayne commented on August 28, 2024 2

I think it would go something like this:

  1. Create a branch, call it follow-along or something.
  2. Allow GH actions to push...I haven't done this personally, but I know it's a thing.
  3. Add an action that's something like this:
    name: Update follow-along branch
    on:
      push:
        branches: [master]
      pull_request:
    jobs:
      update:
        runs-on: ubuntu-latest
        steps:
          - Check it out 
            uses: actions/checkout@v2
          - name: Update the thing
            run: |
              ./scripts/resetSolutions.sh
              ./scripts/removeAnchors.sh
              git add --all
              git commit --message "Some really sweet message here"
              git push origin HEAD:follow-along
  4. Update the instructions in the book to instead check out the branch that's totally ready for your readers to play with!

from purescript-book.

keithlayne avatar keithlayne commented on August 28, 2024

If I get motivated this weekend I will try to get all the config steps together, test on a non-fork (I guess? actions are weird), and wrap it up in a PR.

from purescript-book.

sorenhoyer avatar sorenhoyer commented on August 28, 2024

I think it would go something like this:

  1. Create a branch, call it follow-along or something.
  2. Allow GH actions to push...I haven't done this personally, but I know it's a thing.
  3. Add an action that's something like this:
    name: Update follow-along branch
    on:
      push:
        branches: [master]
      pull_request:
    jobs:
      update:
        runs-on: ubuntu-latest
        steps:
          - Check it out 
            uses: actions/checkout@v2
          - name: Update the thing
            run: |
              ./scripts/resetSolutions.sh
              ./scripts/removeAnchors.sh
              git add --all
              git commit --message "Some really sweet message here"
              git push origin HEAD:follow-along
  4. Update the instructions in the book to instead check out the branch that's totally ready for your readers to play with!

I can confirm that this works fine, and is a decent solution for us Windows users. :-)

There's a small typo where it says - Check it out - it should of course be - name: Check it out.

npx markdownlint kept failing, so in the generated tests.yml I commented out the last 2 lines to disable it for now:

#      - name: Run Markdown lint
#        run: npx markdownlint **/*.md

Depending on how your setup you might have to set github username and email

- name: setup git config
   run: |
     git config user.name "GitHub Actions Bot"
     git config user.email "<>"

And remember to allow "Read and write permissions" under Settings -> Actions -> General -> Workflow permissions

from purescript-book.

JordanMartinez avatar JordanMartinez commented on August 28, 2024

Just FYI. There's not really anyone maintaining this work anymore. So, this won't be fixed unless someone volunteers to do the above suggestion.

from purescript-book.

sorenhoyer avatar sorenhoyer commented on August 28, 2024

Just FYI. There's not really anyone maintaining this work anymore. So, this won't be fixed unless someone volunteers to do the above suggestion.

If the PureScript book is not up to date and actively maintained, how are people supposed to learn the language?

from purescript-book.

JordanMartinez avatar JordanMartinez commented on August 28, 2024

Just FYI. There's not really anyone maintaining this work anymore. So, this won't be fixed unless someone volunteers to do the above suggestion.

If the PureScript book is not up to date and actively maintained, how are people supposed to learn the language?

To clarify, just because no one is maintaining this resource doesn't mean it's still not useful. I'm not sure where and how much it's outdated. (Miles was the last one to seriously invest effort into updating and maintaining this resource. I just push "obvious" changes that benefit this, but I don't invest time into it otherwise because I'm using my time to benefit the community in other ways.) The concepts it teaches are likely still correct, but the code/syntax it uses may not be what one uses now.

I think you may be better off reading Functional Programming Made Easier (see it's announcement). It's not free, but a few people have praised it for how well it helped them get past the FP learning curve. If that work was written for an older version of PureScript, I would learn PureScript on that older version, and then read through the corresponding migration guide. That should get you up-to-speed.

Another resource is one I've written when I was learning PureScript: PureScript: Jordan's Reference. It's probably the most up-to-date resource we have, but it's learning approach may not be your cup of tea. It also doesn't have any exercises. But in general, if you're looking for documentation on X, you should likely look there first as I probably have something on it.

If you want to better understand monad transformers, I did a talk on that: https://github.com/JordanMartinez/pure-conf-talk/

Lastly, most people who need help usually ask questions and get answers from people on the core team or those who have been involved in the community for a while via the Discord chatroom or Discourse.

So, it's usually a combo of reading one of the above resources, watching a video I link to in my repo, and asking people for help on specific issues you run into.

from purescript-book.

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.