loading words...

Apr 29, 2019 20:09:50

Dev Journal: Node Modules and Death

by @craigpetterson PATRON | 201 words | 228🔥 | 229💌

Craig Petterson

Current day streak: 228🔥
Total posts: 229💌
Total words: 61104 (244 pages 📄)

I really need to learn how webpacker, yarn and friends work...

It's holding me back so much.

Everything seems to work locally and then when I go to deploy, it's just dead. Capistrano gives me an error.

The errors are something I've probably dealt with locally, but because presumably  gitignore is omitting node module it's not being copied over to the server of something.

Seriously though, what's the difference between npm and yarn? I thought one replaced the other, but sometimes I see you need to use one for the other... Why is is annoying? I don't care about any of these packages, I just want it to magically work.

Small issues like this affect (I still don't know if this should be affect or effect) me a lot and causes knock on issues.

I get frustrated.

I achieve nothing.

My repo just gets messy because of a wall of "attempted to do x", where I'm repeatedly committing and failing.

It's looking like it might be due to babel 7.4 right now, but I'm giving up to go watch Game of Thrones with my friend.

I'll update this later with more information. Maybe the break will do me good.

Speak soon team...

From Craig Petterson's collection:

  • 1

    @craigpetterson

    I know your pain. I've since decided that I'm not a true engineer who likes to tinker around and figure out how all this configuration and boilerplates work. So I focus on the real-world domain part of software and only use tools that work 'nearly' out of the box.

    Abe avatar Abe | Apr 29, 2019 22:29:07
    • 1

      @abrahamKim right? It's so frustrating.

      I've not really tinkered with this before, because my project at work is legacy. Doing it on a fresh Greenfield project gives me the opportunity to learn and progress, but sometimes I just want to get stuff done.

      What stack do you usually use?

      Craig Petterson avatar Craig Petterson | Apr 30, 2019 08:11:48
    • 1

      @craigpetterson

      I began doing SPA with PHP API. PHP out of environmental necessity. But since then I've fallen in love with PHP. Back then I went with Knockout for basic frontend binding and Durandal for full on SPA. Then on the PHP API I used Slim PHP.

      Then I decided I wanted everything as close to the DB as possible and didn't want to mess with SPA unless I had to do something super client-interactive heavy. So I turned to Laravel PHP for MVC styled webapps. For DB I use Mysql because of environmental reasons. On my hobby projects I want to use Postgres next just for fun.

      I wouldve made the leap much much sooner. Thing that kept me from taking it was that I couldn't decide between laravel or synfony. They both looked great. And then what got me into laravel was its philosophy, which basically mirrors Ruby on Rails.

      Anyways. Now i use Laravel with Turbolinks. And Zurb Foundation (trasitioning into tailwindcss) and Stimulus JS for interactive HTML. *laravel comes with laravel-mix which strings all these things together via webpack

      How about you?

      Abe avatar Abe | Apr 30, 2019 14:01:43
    • 1

      @abrahamKim I've been wanted to try Laravel, but never got round to it.

      Rails, baby!

      In my own projects I've been using Rails with a postgresql DB and the usual rails stack (stimulus, turbolinks, etc) - nothing fancy!

      At work, we use MySQL and a legacy rails stack, but still a rails core on my project. :)

      Craig Petterson avatar Craig Petterson | Apr 30, 2019 14:00:30
    • 1

      @craigpetterson

      How'd you get into Rails? I love their philosphy and thus is why I like to stick with stimulus/turbolinks.

      I love that it's nonfancy. And love that so much of the information pays homage to the document based model rather than virtualized/shadowized doms.

      Abe avatar Abe | May 01, 2019 13:06:23
    • 1

      @abrahamKim it was actually a placement for Uni. My mentor wanted to use it for a document management project. So I started learning and never left.

      I love it. I've tried other languages and nothing competes. I love how its readable and takes the complication out of everything.

      Craig Petterson avatar Craig Petterson | May 01, 2019 17:29:45
  • 1

    @craigpetterson The only thing I understood was Game of Thrones. Hope you enjoyed it!

    Brandon Wilson avatar Brandon Wilson | Apr 29, 2019 12:21:03
    • 1

      @brandonwilson Haha! Any tips of affect vs effect? I have to look this up ALL the time. Even after advice, it will be no different...

      I was given advice that in most cases you want affect.

      Craig Petterson avatar Craig Petterson | Apr 30, 2019 08:09:19
    • 1

      @craigpetterson Game of Thrones has great visual Effects. These are the results of all the design and programming. Medicines have potential side Effects, the results from the ingredients in the medicine. Affect and action both start with A. The weather today may Affect my mood. If someone is at a party he might say, "I hope this 8th beer doesn't Affect my ability to drive...." Affect is the action and effect is the result.

      Brandon Wilson avatar Brandon Wilson | Apr 30, 2019 06:20:25
    • 1

      @brandonwilson best explanation I've heard. A for action!

      Craig Petterson avatar Craig Petterson | May 01, 2019 17:30:11
contact: email - twitter / Terms / Privacy