News for hackers. Stuff that matters.
Re:The Makefile I use with JavaScript projects by geezerjay on Wednesday February 28, 2018 @01:25PM (#16485320)
> Make has deeply woven into it the assumption that the product of workflows are files

You're referring to a standard Unix tool, an operating system where EVERYTHING is a file.

Re:The Makefile I use with JavaScript projects by Jtsummers on Wednesday February 28, 2018 @01:45PM (#16485527)
Sometimes things in workflows are sending/retrieving data over a network. It may be turning on a light. It could be changing a database. Make has no way of recognizing those events unless you've tied them to your file system. Do you really want an extra file for every entry or table in a database? It becomes fragile and error prone. A real workflow system should use a database, and not the filesystem-as-database.
Re:The Makefile I use with JavaScript projects by geezerjay on Thursday March 01, 2018 @03:25AM (#16490448)
> Sometimes things in workflows are sending/retrieving data over a network. It may be turning on a light. It could be changing a database. Make has no way of recognizing those events

Why should Make violate basic software design rules and fundamental Unix principles? Do you want your build system to tweak lights? Setup a file interface and add it to your makefile. Do you want your build system to receive data through a network? Well, just go get it. Hell, the whole point of REST is to access data as a glorified file.

Re:The Makefile I use with JavaScript projects by ycombobreaker on Thursday March 01, 2018 @03:31AM (#16490471)
The filesystem is, and has always been, a database.
Re:The Makefile I use with JavaScript projects by lisper on Wednesday February 28, 2018 @01:45PM (#16485531)
But it's not true that everything is a file. A row in a relational database, for example, is not a file, even in unix.
Re:The Makefile I use with JavaScript projects by geezerjay on Thursday March 01, 2018 @03:14AM (#16490423)
> A row in a relational database, for example, is not a file, even in unix.

Says who? Nothing stops you from creating an interface that maps that row to a file.

That's the whole point of Unix.

Heck, look at the /proc filesystem tree. Even cpu sensor data is available as a file.

Re:The Makefile I use with JavaScript projects by dozzie on Thursday March 01, 2018 @04:09AM (#16490608)
Ha, even eth0 is a file! You can open a network connection by opening this file! Erm... no, that doesn't work.

Then a process! You spawn a process by opening a file! Erm... again, no.

You want me to continue?

Re:The Makefile I use with JavaScript projects by anthk on Thursday March 01, 2018 @01:05PM (#16494458)
In 9front you can. You can even import /net from another machine. Bam, instant NAT.
Re:The Makefile I use with JavaScript projects by lisper on Thursday March 01, 2018 @12:29PM (#16494076)
> Nothing stops you from creating an interface that maps that row to a file.

That's true, nothing stops you, though it is worth noting that no one actually does this, and there's a reason for that. So suppose you did this; how are you going to use that in a makefile?