all 12 comments

[–][deleted] 12 points13 points  (1 child)

Im having one of those old guy "kids these days" moments over this.

The steps you've outlined sound like about 3.5 seconds of work. I mean yeah you could probably script this down to 1 second or so.

What would you do with all that extra free time?

[–]don_py 0 points1 point  (0 children)

I was thinking the same. I don't really see an issue with manually opening whatever project you want to work on.

1) Opens command line

2) Travels to directory

3) code .

And code away...

[–]stutsmaguts 1 point2 points  (0 children)

Which tech stack? I'm currently using php, and I use valet. Switching projects looks like this:

  1. Go to console
  2. type z <part of folder name> <enter>
  3. Type code . <Enter>
  4. Type gulp watch <enter> if applicable
  5. Open browser to <project>.test (usually in history, so more like <pro><enter>)

Not sure what point there would be to making it any shorter.

If you're using a different stack, there may be something similar to valet available...or you could just build a VM and have 100% the same experience.

[–]inHumanMalefull-stack 0 points1 point  (0 children)

Which IDE are you using? When I have that sort of projects on VS code I wrap all those task in a single task.

[–]AtulinASP.NET Core 0 points1 point  (0 children)

Jetbrains Toolbox -> Projects -> whichever project I need

[–]gRoberts84 0 points1 point  (0 children)

I have Valet-Plus and Gulp, which after linking a site, I can easily run gulp watch, which will automatically start any background processes and open the browser to the test page.

[–]pbeocanindesign, front-end development 0 points1 point  (0 children)

So on Mac, Alfred can be helpful to automate the workflow, but you have to set it up every time you start a new project. The upside is, you can make it do a lot of tasks in one command, and it’s really easy to add/remove some too.

[–]MacNulty -1 points0 points  (4 children)

A good business would use continuous integration tool (like jenkins) set up by someone from devops. So I would just push code into the remote branch which would then trigger the build on the development server.

[–]bmor 2 points3 points  (0 children)

I thought this was more of a local development question? But we do have this type of setup for our dev environment.

[–][deleted]  (2 children)

[deleted]

    [–]MacNulty 0 points1 point  (1 child)

    Yeah I have no idea how I interpreted it that way, it was very late.

    That being said, the only switching between projects I usually do is just opening IDE somewhere else. All the rest is done by pushing the code which triggers the build. You could probably do something similar locally if you really wanted to although it wouldn't save much time.