8
Bubbles
5y

Me: *ranting to my friend who isn’t a dev (but is in IT and a good knowledge of networking) about a problem I came across in my project.

“I don’t know how I’ll send folders”

Him: “just compress it before hand and decompress when it’s sent”

Me: *mind fucked*

Have any of you guys gotten surprisingly good ideas from non programmers?

Comments
  • 8
    Tarball it :)
  • 1
    @irene but I’d rather not assume the user knows how to zip a folder or wants to go through that process before sending.

    Plus it’s one more thing I get to learn how to do in C# 😎
  • 1
    @irene I’d rather just do it for the user more out of convenience than anything
  • 1
    @Bubbles There shpuld be a library in C# that lets you Zip the folder and unzip it again.

    Challenges include:
    - Is the generated Zipfile streakable or do you need to put it in cache somewhere (beware of the size and delete it afterwards)
    - Does the chosen Zip library allow to Zip the folder for you or do you need/want to cyxlcle through all files and subfolders (recursive or stackbased) to find all files (beware of symlinks)
    - If the user has any say, could modify your software, could create a similar software/client or the ZipFile (e.g. when cached) make sure the received file doesn't contain any path traversals (e.g. .. ) or is a ZIP Bomb (though should be veery rare)
  • 1
    @LinusCDE yeah I’ve seen something about a compression library
  • 0
    @Nanos yeah I hope they fixed the compatibility issues
  • 1
    The only idea I got from non programming developer is how to use Microsoft product(excel devops ...). The just do click like 3 place and vola things are done. Where as I have to check stack overflow/Google for that.
  • 1
    @sak96 oh cool I’ll look into that
  • 1
    @Bubbles if it's C# you're using, you might wanna look into the System.IO.Compression namespace https://docs.microsoft.com/en-us/...
  • 1
    @Krokoklemme I was planning on it 😄
Add Comment