MattCheely / elm-app-gen

A tool for generating Elm applications
Other
24 stars 4 forks source link

Cli improvements #16

Closed MattCheely closed 5 years ago

MattCheely commented 5 years ago

While working with this branch, I also considered a few other changes I'd like to get your thoughts on:

MattCheely commented 5 years ago

@kalutheo, I am very glad to have you as a collaborator. All of the mistakes you catch are very familiar to me - they're the mistakes I make when I'm working with heavy interruptions. I end up leaving around cruft from old things I tried that didn't pan out. This happens a lot with side projects, because I am often working in between when the kids want to do things with me, or in the short time after they go to bed. I am just now realizing that I think this is why I feel so much more productive in my side projects with Elm. I have the compiler to help me avoid these mistakes. Anyway, that's an interesting insight that this particular PR drove home for me.

kalutheo commented 5 years ago

@kalutheo, I am very glad to have you as a collaborator. All of the mistakes you catch are very familiar to me - they're the mistakes I make when I'm working with heavy interruptions. I end up leaving around cruft from old things I tried that didn't pan out. This happens a lot with side projects, because I am often working in between when the kids want to do things with me, or in the short time after they go to bed. I am just now realizing that I think this is why I feel so much more productive in my side projects with Elm. I have the compiler to help me avoid these mistakes. Anyway, that's an interesting insight that this particular PR drove home for me.

You are welcome @MattCheely :-) maybe we can add linting rules and static type checking in javascript to make these errors harder to make. Doing a lot of typescript at work this day (just saying :) )

MattCheely commented 5 years ago

maybe we can add linting rules and static type checking in javascript to make these errors harder to make. Doing a lot of typescript at work this day (just saying :) )

Yes, we should definitely do this. Emacs should have caught some of these for me, so I'll have to see what I've broken by messing around with my settings. Typescript would be a significant improvement, I'm also doing quite a bit of that at work lately. I even wonder if we could even build most of it in Elm. We'd have to use ports to do things like actually write files and start external processes, but there's a pretty nice CLI option parser library out there, and a few string templating libraries as well...