6 ms·
Building a Desktop Application for Datasette
- moepstar 5y agoFor those wondering what "Datasette" is: >Datasette is a tool for exploring and publishing data. It helps people take data of any shape or size, analyze and explore it, and publish it as an interactive website and accompanying API. At first, i was a bit confused because i thought of the Commodore C64 Datasette [0] and wondered why one would need a desktop app for that... [0] https://en.wikipedia.org/wiki/Commodore_Datasette https://en.wikipedia.org/wiki/Commodore_Datasette
- incanus77 5y agoSame, but I was actually hoping for some kind of desktop app.
- themadturk 5y agoThank you, I'm glad I wasn't the only one who went there...
- tanin 5y agoIt's great to see more desktop app in this space. Desktop app can handle big data much better (and cheaper) than a web app if the dataset is not terabytes. I built a similar Desktop application where you can write SQL, though you will need to supply the CSV files. Here: https://superintendent.app https://superintendent.app
- dav43 5y agoAgree on the comments about getting setup with R/RStudio. Very straight forward for new comers and non-programmers which is >99% of the world. I believe there is a market for a heavily simplified RStudio - call it RStudio Light. My belief it would crush the market (excel users, novice RStudio users) who simply want to summarise, plot data. My vision is for a simple desktop app (with the core data functions in R) almost based off something like - https://cran.r-project.org/web/packages/esquisse/vignettes/get-started.html https://cran.r-project.org/web/packages/esquisse/vignettes/g...
- yarcob 5y agoAs a somewhat experienced Mac developer, I'm not sure what Electron brings to the table for a project like this. Why not create a simple Mac app with a web view? AFAIK the overhead of electron is more than 100MB, for an app that could probably be distributed as a ~10MB ZIP archive. A native Mac app with a web view would also have much less RAM overhead -- and you wouldn't need to worry about updating Electron, since you would just be using frameworks bundled with macOS. Sure, Electron is theoretically cross-platform. But you are going to need a lot of platform-specific code to package the app for macOS, Windows, or Linux anyway. Anyway, just my two cents. Maybe Electron is less scary to get started for a web developer. But if you start a project like this, I really recommend giving AppKit and Swift a try. There's lots of examples out there. Native development is easier than you think.
- pjmlp 5y agoWhat is even less scary is just to use the Web as is, and let the user keep just his favourite browser.
- da39a3ee 5y agoBecause he's not just targeting mac. The code for packaging electron for different platforms has already been written.
- Zababa 5y agoI copy-paster the "installation" code on Github, and it runs fine on my Linux. I doubt you could do that with a native Mac app.
- eatonphil 5y ago> Sure, Electron is theoretically cross-platform. But you are going to need a lot of platform-specific code to package the app for macOS, Windows, or Linux anyway. Not really. The most platform-specific code I've got in my app is 1) the CI install instructions that use brew rather than apt-get [0] and 2) what exists in the application menu [1]. For packaging, electron-packager [2] handles everything else platform specific. So my Windows, Linux, and macOS builds share the exact same script [3]. The result gets zipped and uploaded to the relevant Github release page. [0] https://github.com/multiprocessio/datastation/blob/master/.github/workflows/pull_requests.yml#L39 https://github.com/multiprocessio/datastation/blob/master/.g... [1] https://github.com/multiprocessio/datastation/blob/master/desktop/project.ts#L14 https://github.com/multiprocessio/datastation/blob/master/de... [2] https://github.com/electron/electron-packager https://github.com/electron/electron-packager [3] https://github.com/multiprocessio/datastation/blob/master/desktop/scripts/release.build https://github.com/multiprocessio/datastation/blob/master/de...
- pjmlp 5y agoAh another Electron shell being sold as "desktop".
- 55555 5y agoThey're common enough now that maybe we should just consider html, css, and js to be GUI scripting and markup languages in this context? Your browser is a desktop app and yet almost everything you do with it can only be done online. Perhaps it's fair to call this a Desktop app as it can be run offline, but not fair to call it a "native" desktop app.
- ad404b8a372f2b9 5y agoIt's not a problem of semantics or naming purity, it's a practical issue of resource consumption and UI/UX.
- Zababa 5y agoIt's a tradeoff from some resources to other resources. If you want a native app, you can invest time to make one or money to pay someone to make one. If you don't, you'll have to pay with more CPU/RAM/brain power usage.
- pjmlp 5y agoSmall collection of Electron predecessors: https://en.wikipedia.org/wiki/Active_Desktop https://en.wikipedia.org/wiki/Active_Desktop https://en.wikipedia.org/wiki/HTML_Application https://en.wikipedia.org/wiki/HTML_Application https://en.wikipedia.org/wiki/XUL https://en.wikipedia.org/wiki/XUL https://www.allaboutsymbian.com/features/item/The_Wonderful_Widgetised_World_of_Web_Runtime.php https://www.allaboutsymbian.com/features/item/The_Wonderful_... Eventually Electron will join them.
- wayneftw 5y agoPffft. Okay. That's quite a reach you've got there! ...as if any of those were ever near the same caliber as Electron in just about any aspect of user or developer needs. > Eventually Electron will join them. Perhaps it will, eventually, but not until we have better native desktop kits that fill the needs that Electron is serving right now and if they don't let you build apps with the most popular programming language in the world (that'd be JavaScript) then you can just forget it about it.
- habibur 5y agoI thought Electron application is a web application running outside the browser window, and not what we usually called "Desktop Application".
- da39a3ee 5y agoFrom a users point of view a desktop application is something they can click on and it opens a window and starts working.
- simonw 5y agoYeah, that's exactly what I'm going for with this "desktop application". I want my stuff to be usable by people who don't understand (or need to understand) the difference between a desktop application, a web application and a command-line application.
- eatonphil 5y agoVery neat! I'm working on a similar open source project, at https://github.com/multiprocessio/datastation https://github.com/multiprocessio/datastation. I started out just wanting a way to more easily connect code snippets, SQL, and graphs together. But it's evolved a bit more beyond that.
- da39a3ee 5y agoR is more popular than Python in science because scientists do statistics and R gives them literally every statistical analysis they'll ever need, many in the standard library itself, and is written by academic statisticians so everything has a "this is for doing quantitative data analysis " feel, as opposed to "this can be", or "this could be if you try this library". The greater popularity of R than Python predates RStudio.