News for hackers. Stuff that matters.
Re:No-code startup Bubble raises $100M by _carbyau_ on Wednesday July 28, 2021 @12:54AM (#27980380)
I have seen simple things in Open Source Programs that I know I could track down and fix. Off by one errors, modulus stuff and such.

Do open source projects have an obvious "run this script to configure your complete dev environment in respect to this project" ?

I would be happy to spin up a new VM for every project on that basis.

Re:No-code startup Bubble raises $100M by taneq on Wednesday July 28, 2021 @04:30AM (#27981545)
Likewise, I've used several OSS projects that I'd be quite happy to fix bugs in or develop new features for, but every single time I've been put off by having to decipher some mostly undocumented or otherwise horrendous build process.

Ironically (or perhaps obviously) the OSS projects I've used that have approachable build processes and requirements don't seem to have easily-fixed problems...

Re:No-code startup Bubble raises $100M by breck on Wednesday July 28, 2021 @01:19AM (#27980494)
GitPod.io

I was waiting for something like this for years, it’s great.

Re:No-code startup Bubble raises $100M by ghuntley on Wednesday July 28, 2021 @02:55AM (#27981006)
<3 from the Gitpod team. Yes, indeed condensing CONTRIBUTING.md into a Dockerfile and then offering a single URL to "get ready to code/contribute fixes" from any device, anywhere is exactly what Gitpod is all about.

Try it out https://Gitpod.io#https://GitHub.com/gitpod-io/website

PS. If you aren't impressed by a JavaScript app then take Kubernetes for a spin!

https://github.com/gitpod-io/template-k3s :-)

Re:No-code startup Bubble raises $100M by gavinray on Wednesday July 28, 2021 @08:35AM (#27983001)
Seconding Gitpod, I really wish every repo would take the couple of seconds (to minutes, depending on how complicated) to just create the Docker config for developing it.

I use VS Code devcontainers a lot locally, and it's the same concept. This really ought to be something we aspire to as a standard IMO.

I've submitted several Gitpod + VS Code Devcontainer setup PR's to projects to spare others the pain of having to figure it out.

Re:No-code startup Bubble raises $100M by pnt12 on Friday July 30, 2021 @08:42AM (#28007319)
Sounds great, I will definitely try it!

One of the latest OSS projects I checked required gcloud and some online account to run make, it wad absurd...

Re:No-code startup Bubble raises $100M by _carbyau_ on Wednesday July 28, 2021 @09:01PM (#27991603)
Damn. Minimal figuring out and 50hrs/month for free.

As a fulltime working parent, 50 hours a month is more time than I am likely to spend anyway.

Awesome. Thank you!

Re:No-code startup Bubble raises $100M by adrianmsmith on Wednesday July 28, 2021 @08:37AM (#27983016)
> Do open source projects have an obvious "run this script to configure your complete dev environment in respect to this project" ? I would be happy to spin up a new VM for every project on that basis.

Have used Vagrant for that, worked well, but not popular these days. Spins up a VM, you check in a script to install everything you need inside it.

Docker Compose isn’t bad for that either. Can specify a bunch of components such a databases, and a Dockerfile can specify what you need in your main container such as particular versions of Java or whatever.

Not to say all projects are using these things. But they’re out there, and can be used if the developers want.

Re:No-code startup Bubble raises $100M by brundolf on Wednesday July 28, 2021 @01:38AM (#27980557)
What I'm talking about is a solution for people who don't even want to know what a "script" or a "VM" is. Allowing them to learn and write only what they would actually need to care about: code.
Re:No-code startup Bubble raises $100M by adwn on Wednesday July 28, 2021 @07:15AM (#27982494)
"What I'm talking about is a solution for people who don't even want to know what a "foundation" or "mortar" is. Allowing them to learn and build only what they would actually need to care about: a house."

Sounds pretty ridiculous, doesn't it? Why is it that people think that all this computery stuff like syntax and semantics, compilers, and operating systems is superfluous fluff invented by programmers to gatekeep their profession, instead of tools we created to actually do our job?

Re:No-code startup Bubble raises $100M by marcosdumay on Wednesday July 28, 2021 @12:52PM (#27985980)
Well, there is a lot of complexity on them that comes on them that could theoretically be removed, at a pretty reasonable cost.

This is the original idea behind IDEs, in that they would come with everything set-up, and you could just jump into the code. But we lost this, maybe because of the web, or the great IDE extinction of the 00's, or the proliferation of non-integrated OSS, or some other thing that happened at the time, and now IDEs are about as hard to configure as a normal build environment.

Re:No-code startup Bubble raises $100M by cyberpunk on Wednesday July 28, 2021 @03:45AM (#27981320)
I’m not really sure how one could be w computer programmer without knowing anything about computers…
Re:No-code startup Bubble raises $100M by layoutIfNeeded on Wednesday July 28, 2021 @02:39AM (#27980894)
>Do open source projects have an obvious "run this script to configure your complete dev environment in respect to this project" ?

./configure

Re:No-code startup Bubble raises $100M by adwn on Wednesday July 28, 2021 @07:31AM (#27982594)
That's not even close to being accurate. The real workflow looks more like this:

1) Install an appropriate compiler toolchain.

2) Install whatever other tools are needed (like pkgconfig).

3) Install the necessary *-dev packages for the library dependencies.

4) Figure out which options to pass to configure to include the features you want and exclude the features you don't want.

5) ./configure

6) Go back to step 3 because you had a wrong *-dev package version, or you missed a library you care about.

7) ./configure

8) make

9) Diagnose the error messages and scream in frustration, because the compiler you installed in step 1 is too old/too new/too not gcc.

10) Install gcc version x.y.z

11) ./configure

12) make

13) Get the same error messages, because you didn't deinstall the first compiler and configure helpfully selected it again.

14) Give up in disgust and let someone else fix the bug you found.

Re:No-code startup Bubble raises $100M by adwn on Wednesday July 28, 2021 @10:42AM (#27984369)
Sorry, I just realized that the above workflow is wrong: Since you want to fix a bug, you'll probably clone the development branch of the repo, which doesn't even have a configure script – only source releases have that. So prepend these steps:

0.1) Install the autotools.

0.2) Run autoconf, no wait, automake, no wait, autoreconf, no wait, autoreconf --install.

0.3) Delete all files in the directory and checkout a fresh copy.

0.4) autoreconf --install

1) ...

Re:No-code startup Bubble raises $100M by whoopdedo on Wednesday July 28, 2021 @11:56AM (#27985312)
1 through 3 (I rarely encounter 6 and never 9) are baked into most OS installers and can be done once then saved as a VM or Docker image to be cloned. That level of pedantry is akin to saying "To compile the project applepie.io from scratch you must first create the universe."
Re:No-code startup Bubble raises $100M by adwn on Wednesday July 28, 2021 @12:53PM (#27985988)
Paraphrased:

    _carbyau_: Simple command to configure your complete dev environment in respect to this project" ?

    layoutIfNeeded: configure

    adwn: No, because ...
I don't see any pedantry on my part. Also, this:

> [...] and can be done once then saved as a VM or Docker image to be cloned

is like that infamous HN comment proclaiming that nobody needs Dropbox, because you can simply "get an FTP account, mount it locally with curlftpfs, and then use SVN or CVS on the mounted filesystem". The original question asked about a simple command to configure a complete environment.

Re:No-code startup Bubble raises $100M by PeterisP on Wednesday July 28, 2021 @06:26AM (#27982206)
If ./configure just would work for that project out of the box, that would be great, but it seems more like an exception, because usually it's not sufficient and it breaks on some dependency issues that are easily solvable if you know the dev environment and pretty much need mailing list assistance if you don't know how their project works and you just want to fix an off by one error.