News for hackers. Stuff that matters.
Re:Google Drive does a surprise rollout of file limits, lock... by bigiain on Saturday April 01, 2023 @12:55AM (#35397270)
Ha!

“ a safeguard to prevent misuse of our system in a way that might impact the stability and safety of the system."

Google: We have identified modern web development as a threat to our systems, and have taken measures to ensure npm users cannot store their npm_modules directories on GoogleDrive. Please consider rewriting your nodejs projects in Go.

Re:Google Drive does a surprise rollout of file limits, lock... by paulddraper on Saturday April 01, 2023 @01:09AM (#35397338)
Re:Google Drive does a surprise rollout of file limits, lock... by inamberclad on Saturday April 01, 2023 @01:01AM (#35397299)
Out of curiosity, I checked how many files were in my node based autocompleter:

$ find .vim/plugged/coc.nvim/node_modules/ | wc

  12715   12715  952711
Re:Google Drive does a surprise rollout of file limits, lock... by epilys on Saturday April 01, 2023 @04:57AM (#35398571)
Should be wc -l
Re:Google Drive does a surprise rollout of file limits, lock... by switch007 on Saturday April 01, 2023 @08:33AM (#35399755)
The first column of the output is the lines
Re:Google Drive does a surprise rollout of file limits, lock... by ElectricalUnion on Saturday April 01, 2023 @08:49AM (#35399891)
Without parameters, wc prints `newlines`, `words` and `bytes`.
Re:Google Drive does a surprise rollout of file limits, lock... by rovr138 on Saturday April 01, 2023 @11:54AM (#35401240)

    ~/Development   master ±  find . | wc
     1029821 1237285 118990227
~/Development contains 3 projects I worked on this past week. Only 3 because this is a new laptop. I'd hate to think what this looks like on my old laptop. But I'll run it later.
Re:Google Drive does a surprise rollout of file limits, lock... by kube-system on Saturday April 01, 2023 @01:04AM (#35397314)
Why do people put their NPM modules in google drive?
Re:Google Drive does a surprise rollout of file limits, lock... by thunderbong on Saturday April 01, 2023 @01:21AM (#35397388)
The reason this happens is Google Drive is marketed as a backup solution, so people add their work folders to it which consists of all these files.
Re:Google Drive does a surprise rollout of file limits, lock... by esperent on Saturday April 01, 2023 @04:08AM (#35398293)
Exactly, I fell into this trap back when I was starting out as a developer. GDrive is a terrible backup solution and it'll overwrite and corrupt files there if you're actively working on them. As of a few years ago anyway.

It also doesn't help that there's no way to exclude a folder with wildcards so you can't blacklist all node_modules folders.

Re:Google Drive does a surprise rollout of file limits, lock... by Takennickname on Saturday April 01, 2023 @05:02AM (#35398594)
wouldn't package.json be enough?
Re:Google Drive does a surprise rollout of file limits, lock... by csomar on Saturday April 01, 2023 @05:39AM (#35398787)
More like your lock file. That being said, if I am paying for storage, that's because I want an exact replica to what I have on disk.
Re:Google Drive does a surprise rollout of file limits, lock... by codetrotter on Saturday April 01, 2023 @05:07AM (#35398609)
They probably have a folder that auto syncs with Google Drive https://support.google.com/drive/answer/10838124?hl=en

Same way that Dropbox works

So they are not manually choosing what to sync, they just put all of the work and other files they want to automatically sync inside of that folder. This ends up including things like node modules and things like that

Re:Google Drive does a surprise rollout of file limits, lock... by NoZebra120vClip on Saturday April 01, 2023 @07:00AM (#35399197)
I don't sync folders. I mount my accounts as network drives.

As for corruption or overwriting files, I have rarely encountered issues, but Drive has file revision histories as well as a Trash can, so if you notice the problem and it's not spread over 5M files, you can roll back to last-known-good versions.

Re:Google Drive does a surprise rollout of file limits, lock... by codetrotter on Saturday April 01, 2023 @07:44AM (#35399463)
> I don't sync folders. I mount my accounts as network drives.

Implementation-wise under the hood is it really much different?

In my simplistic, probably overly naive idea it seems that a “network drive” built on top of Google Drive would still cache the files in memory, and improper shutdown or loss of network access could still leave your files in an inconsistent state. Probably they have a lot of advanced logic on top, that could roll back partial updates, or keep track of things so that the updates are not applied before sync is complete.

But anyways from this point of view sync vs network mounted drive feels like sync is a kind of network mounted drive that flushes to local disk in addition to working with the remote.

One of these days I want to build such things from scratch myself so that I can experience first-hand the horrors that lie underneath sync / network disk service setups modelled on my idea of Dropbox / Google Drive etc

Re:Google Drive does a surprise rollout of file limits, lock... by gumby on Saturday April 01, 2023 @08:12AM (#35399612)
> a folder that auto syncs with Google Drive...Same way that Dropbox works

I’m on a Mac and find that google drive’s Mac client is so unreliable as to be useless. It frequently crashes mysteriously, and even when running it doesn’t sync reliably. It feels like nobody is working on the software, and after all the layoffs that could well be true.

Say what you want about Dropbox, but I’ve never had a problem with it.

Re:Google Drive does a surprise rollout of file limits, lock... by kcartlidge on Saturday April 01, 2023 @09:55AM (#35400327)
> I’m on a Mac and find that google drive’s Mac client is so unreliable as to be useless

True.

I used Dropbox for many years without issue and moved because of the cost and the issue a few years back with not allowing it on certain Linux file systems.

Went to Google Drive and performance was shocking in comparison. At the time (don't know about now) it also felt like they had a deliberate policy to avoid showing cumulative file/folder sizes, meaning it was easier to pay for more storage than to find out what took the space and clean it up.

Since then I've spent a few years using PCloud, which was almost as fast as DropBox and more reliable at syncing than Google. Then I lost the ability to connect the client on a Mac for a couple of days, had a deeper look, and noticed a few files had had silent collisions between changes on Mac and Windows (not at the same time) leaving multiple versions (names suffixed with the machine they came from).

So I left there and went to OneDrive. To be honest I've found it okay other than one issue on a Mac where if I delete a file for some reason then when it vanishes to the recycle bin it reappears in the OneDrive root on the laptop. delete-immediately gets around that.

I'm now at the point where I use OneDrive for convenience/reliability but despite the cost have been considering a return to DropBox as cloud syncing seems to be impossible for anyone else to do properly. Is it still as reliable as it used to be?

Re:Google Drive does a surprise rollout of file limits, lock... by gumby on Saturday April 01, 2023 @03:11PM (#35403115)
I tried OneDrive for a while but it wouldn’t sync certain files due to characters in their names. The error message wouldn’t tell me which.

But much better than google which just silently fails.

Re:Google Drive does a surprise rollout of file limits, lock... by johannes1234321 on Saturday April 01, 2023 @07:15AM (#35399278)
Not saying that the approach taken via G Drive is smart, but to your question: For a full backup of your application just storing package.json/package-lock.json is not enough. In case of things going south this might leave you in an unrecoverable state - imagine a package is removed for whatever reason from npm or npm becomes unreachable.

Now in your risk assessment the question of course is how likely it is that you lose the copy alone your dev system, CI system and productive version at the same time that npm loses it, but the first three happening isn't as unlikely as it seems: You work on a major refactoring and while deploying you run into a major problem and want to roll back, then artifacts from the old version might be gone. Of course there are ways to prevent that. But that's the risk assessment and prevention you have to make. A full backup including node_modules is one way of dealing with that.

Re:Google Drive does a surprise rollout of file limits, lock... by drusepth on Saturday April 01, 2023 @01:07AM (#35397326)
There's a surprisingly large number of groups of people that use Google Drive, Dropbox, and similar for "source control" and/or collaboration on projects instead of real VCS.
Re:Google Drive does a surprise rollout of file limits, lock... by bigiain on Saturday April 01, 2023 @01:26AM (#35397410)
I have worked with colleagues who expect to be able to keep their current work in Dropbox/GoogleDrive, so they don’t need to take their work laptop home every day but still have easy access to their current work from home.

“Hey, why can’t I get Dropbox to work on this laptop? I need it so can do emergency bug fixes from my personal laptop at home!” “Yeah, nah. Remember that security policy you signed as part of your employment contract? The one that says exfiltrating company or client data or code to non corporate systems is a fireable offence?”

Re:Google Drive does a surprise rollout of file limits, lock... by lenkite on Saturday April 01, 2023 @08:19AM (#35399656)
Google Drive many-times IS the enterprise approved cloud storage/sharing solution.
Re:Google Drive does a surprise rollout of file limits, lock... by justeleblanc on Saturday April 01, 2023 @03:08PM (#35403070)
Writing the files to your home hdd, even using the approved solution, is exflitration of data.
Re:Google Drive does a surprise rollout of file limits, lock... by bigiain on Sunday April 02, 2023 @08:17PM (#35416903)
I want to say that the sort of place that had GDrive as their "approved cloud solution" is unlikely to also be the sort of place that has the sort of data the required firing-offence rules for exfiltration to non company systems, but I know that's not the world we actually live in...

I'm reminded that Lastpass got popped via an employee running a well out of date version of Plex with known RCE exploits and getting a keylogger installed:

“This was accomplished by targeting the DevOps engineer’s home computer and exploiting a vulnerable third-party media software package, which enabled remote code execution capability and allowed the threat actor to implant keylogger malware,” LastPass officials wrote. “The threat actor was able to capture the employee’s master password as it was entered, after the employee authenticated with MFA, and gain access to the DevOps engineer’s LastPass corporate vault.”

The hacked DevOps engineer was one of only four LastPass employees with access to the corporate vault.

I mean, I know exactly why. But why the fuck was the corporate Lasspass vault available to a staff member's home machine running Plex? Is the expense of a corporate vpn-locked laptop and a pair of Yubi keys too much for a fucking _Password Vault_ senior developer??? "Should we spend a couple of grand buying a work laptop for this guy who literally has the keys to our kingdom? Or do we save a few bucks and get him to work on the machine he already owns, the same one he runs outdated media server software and probably bittorrents all his porn with? What could possibly go wrong?"

Re:Google Drive does a surprise rollout of file limits, lock... by lazide on Saturday April 01, 2023 @01:13AM (#35397351)
That seems really illadvised.
Re:Google Drive does a surprise rollout of file limits, lock... by bigiain on Saturday April 01, 2023 @01:19AM (#35397380)
Cynical view, a lot about npm seems really ill advised. One additional bad decision after that choice seems easy enough to go along with… ;-)
Re:Google Drive does a surprise rollout of file limits, lock... by tomjen3 on Saturday April 01, 2023 @01:59AM (#35397552)
A lot of it is. And yet, it works so well it conquered the world.
Re:Google Drive does a surprise rollout of file limits, lock... by bigiain on Saturday April 01, 2023 @02:32AM (#35397739)
So did Mc Donald’s and Starbucks.

I’m not entirely happy with the idea of living in a world conquered by the lowest common denominator solutions.

Re:Google Drive does a surprise rollout of file limits, lock... by throwaway50601 on Saturday April 01, 2023 @04:15AM (#35398328)
Speak for yourself, I find it great. Much better than the alternatives like pip or nuget. And the ecosystem has endless amount of solutions ready.
Re:Google Drive does a surprise rollout of file limits, lock... by heleninboodler on Saturday April 01, 2023 @05:56AM (#35398886)
And I love big macs, but they may not actually be a good thing.
Re:Google Drive does a surprise rollout of file limits, lock... by throwaway50601 on Saturday April 01, 2023 @06:52AM (#35399159)
In this case it is a good thing.
Re:Google Drive does a surprise rollout of file limits, lock... by yjftsjthsd-h on Saturday April 01, 2023 @02:33PM (#35402752)
What do you think npm does better than pip?
Re:Google Drive does a surprise rollout of file limits, lock... by Brian_K_White on Saturday April 01, 2023 @04:17AM (#35398340)
McDonalds is my favorite answer to the popularity argument. Popularity is a data point to factor, but it's only one and it's meaning and value are entirely context dependant. Basically means nothing by itself.
Re:Google Drive does a surprise rollout of file limits, lock... by tomjen3 on Saturday April 01, 2023 @06:56AM (#35399185)
If we somehow changed the rules so that Mc Donald and Starbucks were illegal, we would not end up with local artisinal coffeeshops on every corner, we would likely have a lot fewer places to get good coffee.
Re:Google Drive does a surprise rollout of file limits, lock... by raverbashing on Saturday April 01, 2023 @07:37AM (#35399430)
True, it's certainly not that intuitive
Re:Google Drive does a surprise rollout of file limits, lock... by listenallyall on Saturday April 01, 2023 @10:10AM (#35400447)
Get over yourself. McDonald's is far from "lowest common denominator." Go travel the world a bit and see how real people live and what they actually eat every day.
Re:Google Drive does a surprise rollout of file limits, lock... by wincy on Saturday April 01, 2023 @11:29AM (#35401036)
We had a drive thru grass fed burger place open up across the street from McDonald’s and it was gross. It lasted maybe a year. McDonald’s makes pretty good burgers, not what I want every day for sure but in a pinch they aren’t bad.
Re:Google Drive does a surprise rollout of file limits, lock... by nickphx on Saturday April 01, 2023 @01:16AM (#35397367)
everyone is differently abled.
Re:Google Drive does a surprise rollout of file limits, lock... by bdcravens on Saturday April 01, 2023 @06:48AM (#35399140)
I don't do that, but I was once bitten by iCloud. I always put my code in ~/code and copy it over when I get a new machine. I once had the idea to just put it in ~/Documents/code, thinking it'd be automatically synced. Turns out that iCloud doesn't sync dotfiles.
Re:Google Drive does a surprise rollout of file limits, lock... by brycewray on Saturday April 01, 2023 @08:25AM (#35399698)
Re:Google Drive does a surprise rollout of file limits, lock... by cableshaft on Saturday April 01, 2023 @10:46AM (#35400693)
I use Git for version control but for some of my personal projects I also have a copy in Dropbox, so I can make changes on my laptop downstairs, not be ready to commit it, save it, go upstairs, and continue work from my desktop pretty much seamlessly.

Some of my projects aren't set up this way, and it can get annoying to have made a few small changes and be forced to commit them in order to pull them from upstairs.

Re:Google Drive does a surprise rollout of file limits, lock... by tomjen3 on Saturday April 01, 2023 @02:00AM (#35397561)
If I was teaching anybody programming I would teach them to copy the folder over every time they added a new feature, rather than teach them git at the same time.

With some C++ libraries or node_modules that can run up fast.

Re:Google Drive does a surprise rollout of file limits, lock... by q7xvh97o2pDhNrh on Saturday April 01, 2023 @02:05AM (#35397585)
What? Why would you teach someone to do things the wrong way?
Re:Google Drive does a surprise rollout of file limits, lock... by renewiltord on Saturday April 01, 2023 @02:31AM (#35397734)
I must apologize. We have purposely trained them wrong. As a joke.
Re:Google Drive does a surprise rollout of file limits, lock... by Xylakant on Saturday April 01, 2023 @03:06AM (#35397931)
You can’t teach all of the things at the same time. People will just freak out, be confused and learn nothing. There’s a lot of the things that you’ll teach “wrong” at the beginning. You’ll never talk about CI/CD at that stage, deployment, packaging, etc. either, despite a lot of this being a requirement for a lot of software engineering projects.
Re:Google Drive does a surprise rollout of file limits, lock... by jbverschoor on Saturday April 01, 2023 @03:20AM (#35398013)
Why would you have nodemodules in every project? It shouldn’t be a local directory anyway
Re:Google Drive does a surprise rollout of file limits, lock... by ikiris on Saturday April 01, 2023 @03:38AM (#35398114)
They’re probably a math teacher and want them to learn about punch cards before introducing complex concepts like a floppy disk.
Re:Google Drive does a surprise rollout of file limits, lock... by Brian_K_White on Saturday April 01, 2023 @04:50AM (#35398546)
It's not teaching them the wrong way. It's teaching them a simple version of the right way.

You can't do everything at once and git is counter-productive on day one, and the most important thing was they find programming remotely interesting at all.

The next most important thing is always working on a new copy.

How exactly you make those new copies barely matters at all compared to just having them at all.

Using something arcane and unforgiving and inscrutable and complex like git to accomplish those copies is way way down on the list.

The new student is barely interested in the actual coding to make a game if you're lucky. They would rather mow lawns than learn administriva like git.

It could even be argued as irresponsible to hand git to babies and expect everything to be fine. Just because we all have about 5 git commands we use 99.9% of the time, and have no problem 99% of the time because we learned how to "hold it right" and just always carefully do things in the right order, does not mean git can actually be made safe and simple. Those 5 or so commands aren't actually enough.

Re:Google Drive does a surprise rollout of file limits, lock... by em-bee on Saturday April 01, 2023 @06:12AM (#35398981)
i don't entirely agree with not teaching git to a new programmer, but if we look at the extreme it makes more sense. how would i teach a nine year old? exactly like that: copy the project.

actually, a good way to think of it is releases. even with git, i keep a copy of each project release, that itself is not stored in git.

Re:Google Drive does a surprise rollout of file limits, lock... by hombre_fatal on Saturday April 01, 2023 @12:15PM (#35401425)
A new programmer can just use a git UI like the Github app. It abstracts everything away and leaves you with the obvious benefit of being able to commit a succession of snapshots that represent logical groupings of changes.

I haven’t used cli git since uni. GUI is better for basically everything except for a few rare and advanced commands.

Re:Google Drive does a surprise rollout of file limits, lock... by fbdab103 on Saturday April 01, 2023 @02:38PM (#35402808)
Yet that is still just one more impediment to getting someone off the ground. You are already throwing programming concepts (variables, and loops, and conditionals, oh my!) + big scary IDE + likely first-time command line, etc onto their plate. Invoking yet another weirdo program into the paradigm is not helping a beginner.

Jeremy Howard (of Fastai fame) has a good analogy that we do not make people sit in a classroom for a semester to learn all of the theory of baseball. Instead, we give them a bat and a ball, and layer on the instructions of how the game works. You can get a good approximation of the game with just a couple minutes of instruction and refine the understanding from there.

Re:Google Drive does a surprise rollout of file limits, lock... by em-bee on Saturday April 01, 2023 @07:21PM (#35405223)
if someone is at that level they are learning the language and do tutorial or student projects where version control doesn't yet matter. which is fine. once they have done a few of those, it's time to introduce basic version control.
Re:Google Drive does a surprise rollout of file limits, lock... by fbdab103 on Saturday April 01, 2023 @07:37PM (#35405355)
I managed to finish college without a real VCS. Would it have made some things easier? Sure, but again, add it to the pile of things I needed to learn and did not have enough time to study.
Re:Google Drive does a surprise rollout of file limits, lock... by em-bee on Sunday April 02, 2023 @03:03AM (#35407935)
as far as college is expected to prepare students for work, version control should absolutely be part of that.

i don't expect a fresh graduate to be a skilled git user but if the nature of development at work is substantially different from what the student learned at school, then they will have a much harder time adjusting.

they should at least be familiar with all the concepts that they will encounter in a junior job and not be faced with having to relearn a completely different development process.

Re:Google Drive does a surprise rollout of file limits, lock... by q7xvh97o2pDhNrh on Sunday April 02, 2023 @11:15AM (#35411405)
I thought about it more, and I'd say we actually agree on the principle of teaching simple and building up. It's more a question of how different teaching techniques present the value of source control.

The hard thing about source control is not the how — using the git CLI is only slightly more complicated than copying a folder. Git turns that into a very straightforward directed graph, and the CLI gives you a few commands to move around the graph, sprinkling some more edges and nodes wherever you like. It takes about an afternoon to figure out once you're onboard with the why.

The why of source control is the thing — and our industry is already full of people who don't understand it. That's how we get people who treat git as a "save" mechanism to be invoked whenever it's been a while since the last commit, or branches with one sloppy commit message after another [1], or entire repos that are just spaghettified carelessly-merged hairballs of commits.

Mastering the why of source control means learning when to cut a commit, what shape that commit should be, and why that is.

And I think that's more my objection to the teaching approach outlined here — without any other context, it reads to me like it's not quite focusing on the right things. At worst, it's inducting the student into the industry-standard cargo-cult approach to source control. [2] If the why isn't learned, then it doesn't really matter whether the specific motion is copying folders or typing in git CLI commands.

Ideally I think source-control techniques could be introduced right when they're going to be interesting or fun — when it's time to build something together with someone else. Then that set of lessons could start by copying folders and eventually building up to git — and each lesson could show how good, disciplined use of source control concretely improves the collaboration process.

[1]: https://tbaggery.com/2008/04/19/a-note-about-git-commit-mess...

[2]: https://xkcd.com/1597/

Re:Google Drive does a surprise rollout of file limits, lock... by Brian_K_White on Tuesday April 04, 2023 @07:03PM (#35447016)
"using the git CLI is only slightly more complicated than copying a folder"

happy path

Re:Google Drive does a surprise rollout of file limits, lock... by tomjen3 on Saturday April 01, 2023 @06:52AM (#35399161)
As others have pointed out, it is not teaching others wrong things: copying the directory is (modulo optimization) what Git does. However if you dump people straight into everything at once they will become extremely confused and won't learn anything.

What I want to do is take one step at a time, and build on what they already know.

Then when they can program, you can show them how to use Git and the superpowers that comes with it.

Re:Google Drive does a surprise rollout of file limits, lock... by q7xvh97o2pDhNrh on Sunday April 02, 2023 @11:25AM (#35411518)
Woops, just saw I replied to a higher comment in this tree instead of to you as the asker of the original question.

FWIW, my thoughts are basically that it's a question of sequencing the lessons and framing the overall purpose: https://news.ycombinator.com/item?id=35411405

Re:Google Drive does a surprise rollout of file limits, lock... by charlieyu1 on Saturday April 01, 2023 @04:16AM (#35398330)
I always like the Odin Project way of teaching - you start with setting up virtual machines, install IDE, learn git before you get to write your first line of code.
Re:Google Drive does a surprise rollout of file limits, lock... by Brian_K_White on Saturday April 01, 2023 @04:26AM (#35398407)
This sounds a bit like Lockhart's Lament about how we teach math is why everyone hates math.

The analogy was imagine if we taught music that way, where you spent years learning fundamentals and theory before ever being allowed to touch an instrument.

Re:Google Drive does a surprise rollout of file limits, lock... by rzzzt on Saturday April 01, 2023 @04:58AM (#35398578)
Kodály had reasonable success with this approach across the world: https://www.classical-music.com/features/musical-terms/kodal...
Re:Google Drive does a surprise rollout of file limits, lock... by blep-arsh on Saturday April 01, 2023 @06:38AM (#35399101)
His idea was to begin with one's voice as a musical instrument, so one would interact with music directly at first, learning the theory and the notation along the way.
Re:Google Drive does a surprise rollout of file limits, lock... by rzzzt on Saturday April 01, 2023 @07:26AM (#35399353)
The lady quoted in the article agrees with you but also seems to support why I thought of Kodály in the first place:

  > "Eleven years of piano lessons taught me something about playing the piano 
  > but almost nothing about music," she has said. "I was skating on the 
  > surface. If a child is shown a written crotchet they have no physical 
  > understanding what’s behind that. Kodály musicianship puts petrol in the 
  > tank in that it gives them a profound experience of music-making, through 
  > the voice, building up a repertoire of songs and giving them the 
  > unconscious knowledge of pitch-matching, walking the pulse, rhythm, 
  > phrasing and improvising – before making it conscious."
So you will not be touching the piano before all of this takes place and you will be learning the fundamentals and theory, even if in a playful way.
Re:Google Drive does a surprise rollout of file limits, lock... by ipaddr on Saturday April 01, 2023 @07:29AM (#35399371)
Playing a classical instruction you would normally do that. Maybe you learn how to hold, change reids, do scales first but without theory you can't read notes or understand what to do with them. Without reading notes you can't play songs off of sheet music.
Re:Google Drive does a surprise rollout of file limits, lock... by kbumsik on Saturday April 01, 2023 @02:44AM (#35397804)
I mean, why not?

I use both git and Dropbox, because I have multiple devices to sync: laptops, a desktop, and linux servers.

If you use a desktop and a laptop back and forth, git is quite inconvenient. You don't need to commit and push from the desktop to switch to the laptop with a folder level realtime sync solution.

Also, git only protects files that are staged, but Dropbox can restore any files to any point of file event (not periodic snapshot, but it keeps all file events). So combining both you are safe from any kinds of mistakes.

I use Dropbox because Google Drive sync wasn't stable enough for this kind of workflow but I am not sure if it has been improved lately.

Re:Google Drive does a surprise rollout of file limits, lock... by stinos on Saturday April 01, 2023 @02:54AM (#35397867)
I mean, why not?

Because git combined with Dropbox and the likes can be slow, lead to broken repositories, mad sync conflicts and so on? At least that is what I've witnessed with colleagues. This was years ago though, and I assume you dont have these issues or maybe a different workflow, so this is more like a word of warning for others: test this properly first before just diving into it.

Re:Google Drive does a surprise rollout of file limits, lock... by kbumsik on Saturday April 01, 2023 @03:03AM (#35397914)
Hmm I haven't have significant issues for almost 10 years. And a few years ago Dropbox introduced a folder-level rewind feature so you can easily restore any broken folder.

Anyway, YMMV.

Re:Google Drive does a surprise rollout of file limits, lock... by youngtaff on Saturday April 01, 2023 @05:51AM (#35398858)
Yup, I’ve been running this config for personal projects for over 10 years too
Re:Google Drive does a surprise rollout of file limits, lock... by Dylan16807 on Saturday April 01, 2023 @03:48AM (#35398166)
Maybe if you shut a laptop while it's syncing and then start editing the same things on a different computer without considering that you should finish the sync, but that seems pretty niche.

Are you sure those people were using their own personal dropbox folders? If they were sharing with each other that's a different thing entirely and requires a lot more care to avoid problems.

Re:Google Drive does a surprise rollout of file limits, lock... by stinos on Saturday April 01, 2023 @07:17AM (#35399293)
Are you sure those people were using their own personal dropbox folders?

Yes, one single account.

while it's syncing and then start editing the same things on a different computer

IIRC this was one of the issues. Not necessarily because of shutting down, but just when using multiple computers one after the other and Dropbox not having synced in between. Not that niche depending on line of work, think lab-like setups where one thing gets deployed to multiple machines and deployment then gets tested. In one company the 'oh but you have to wait for dropbox to sync before doing that' and 'how?' responded by 'urm, yeah, check the timestamp on all files in that directory' was a rather common thing, often leading to stupid issues. Put git in the picture there and things won't get any better.

Re:Google Drive does a surprise rollout of file limits, lock... by Dylan16807 on Saturday April 01, 2023 @01:20PM (#35402058)
Oh, using it for deployment, so you're moving directly from one computer to another right after making a change and then using those files? I could see how that causes problems sometimes. I think the use case of "here is my checkout, I edit it on multiple computers, I don't use it as anything else" is a lot more reliable.
Re:Google Drive does a surprise rollout of file limits, lock... by dreamcompiler on Saturday April 01, 2023 @04:18PM (#35403695)
I think you're on to something here. It might be both safe and convenient to use git with Dropbox iff you create a bare git repo that is not in a Dropbox folder, and then specify a separate worktree that is in a Dropbox folder. That might give you the best of both worlds, but I haven't tested the idea.
Re:Google Drive does a surprise rollout of file limits, lock... by Dylan16807 on Saturday April 01, 2023 @04:33PM (#35403808)
There aren't any fundamental issues with putting the git repo in Dropbox. Under normal circumstances, to cause a conflict you'd have to do something that writes to the git folder, then switch computers, pull up the same checkout, and do something else that writes to the git folder, all within less than half a minute.
Re:Google Drive does a surprise rollout of file limits, lock... by dreamcompiler on Saturday April 01, 2023 @06:37PM (#35404861)
The fundamental issue is that Dropbox changes are non-atomic w.r.t. what git considers "atoms." See my other comment in this thread. You're right that there's usually not a problem with a single contributor, but if you ever have two or more contributors sharing a Dropbox-contained repo it will be bad news.
Re:Google Drive does a surprise rollout of file limits, lock... by Dylan16807 on Saturday April 01, 2023 @06:41PM (#35404895)
Sure, don't share. But there's a good use case for putting a single-user checkout into Dropbox, and that's because it adds convenience and gives you continuous backups.
Re:Google Drive does a surprise rollout of file limits, lock... by dreamcompiler on Saturday April 01, 2023 @04:05PM (#35403589)
I've done this in the past but stopped. The problem is there are no atomic transactions in Dropbox. If two people are pushing changes to a repo at the same time using only git, it's not a problem because git understands atomic transactions. But if that repo happens to be in Dropbox all hell can break loose because the various files inside the .git directory are not being synched atomically.

A git repo in Dropbox can appear to work okay with a single contributor where that contributor is only working on one computer at a time. But as soon as you add a second contributor, you very much should take Dropbox out of the process.

Re:Google Drive does a surprise rollout of file limits, lock... by ulucs on Saturday April 01, 2023 @04:18AM (#35398351)
I don’t like to do it, but I like to sync my projects folder and google drive does not offer me an “exclude folders named node_modules” option
Re:Google Drive does a surprise rollout of file limits, lock... by rootw0rm on Saturday April 01, 2023 @04:36AM (#35398466)
i highly recommend rclone
Re:Google Drive does a surprise rollout of file limits, lock... by uallo on Saturday April 01, 2023 @05:11AM (#35398630)
Re:Google Drive does a surprise rollout of file limits, lock... by bluedino on Saturday April 01, 2023 @04:19AM (#35398356)
I worked with a guy that put all of our Rails apps in his Dropbox
Re:Google Drive does a surprise rollout of file limits, lock... by RobotToaster on Saturday April 01, 2023 @04:35AM (#35398454)
I'm guessing, but github desktop by default uses the documents folder. By default Google drive backs up the documents folder.
Re:Google Drive does a surprise rollout of file limits, lock... by NoZebra120vClip on Saturday April 01, 2023 @06:56AM (#35399186)
I use Google Workspaces at work, and I have configured my notebook more like a netbook. Every possible file and folder gets stashed in Drive, and the agent runs to integrate with the Windows filesystem. This is especially important for Company Data and Confidential Materials.

I have modest storage needs in my role, but imagine a developer, Big Data user, or video editor used it. As long as they could tolerate the latencies, they might stash quite a bit in there.

Re:Google Drive does a surprise rollout of file limits, lock... by throwaway689236 on Monday April 03, 2023 @06:44PM (#35432392)
I even exclude them from my TimeMqchine backup, they're pinned.
Re:Google Drive does a surprise rollout of file limits, lock... by onion2k on Saturday April 01, 2023 @05:22AM (#35398678)
Google: We have identified modern web development as a threat to our systems, and have taken measures to ensure npm users cannot store their npm_modules directories on GoogleDrive. Please consider rewriting your nodejs projects in Go.

That's a bit unfair on Node and NPM. The modules directory rarely grows to more than 4 million files.

Re:Google Drive does a surprise rollout of file limits, lock... by yjftsjthsd-h on Saturday April 01, 2023 @02:22PM (#35402625)
> The modules directory rarely grows to more than 4 million files.

The article says the limit is 5 million files, so... 2 NPM projects? That's not really better...

Re:Google Drive does a surprise rollout of file limits, lock... by hnfong on Sunday April 02, 2023 @10:57AM (#35411152)
I think the GP is sarcasm, but I only have like 70% confidence.