68 karma · joined Jul 22, 2020 (6y ago) · 50 submissions
comment 4y ago · link · parent
It's also important to learn your system's environment too. This is your "standard library", and it's why POSIX compatibility is important. You will feel shell is limited if you don't learn how to use the system utilities with shell (or if your target system has common utilities missing).
As an example of flexibility, you can use shell and system utilities in combination with CGI and a basic web server to send and receive text messages on an Android phone with termux. Similar to a KDE Connect or Apple's iMessage.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
https://www.gnu.org/software/nosql/4gl.txt
Note to phone users, the formatting works better in landscape.
I don't remember when this was written, but it's an interesting read. It requires a bit different approach, but it is augmented well by 3GL programs. Commands that don't exist can be written in shell, Python, C, Rust, etc. I usually use a shell first approach, start the command as a shell script and rewrite it in something else if necessary. It is quite flexible and extensible if you work within it's data types (probably the wrong term, but f.g. files and text streams).
comment 4y ago · link · parent
Mobile users can have problems too. I still come across dead zones in network coverage that render some apps useless and I'm not even outside of town.
comment 4y ago · link · parent
I'm not sure why you need HTTP or dbus for control. Just use stdin and stdout. For example:
cat << EOF | my-cli-music-player
enqueue album:40-oz-to-freedom
enqueue album:steal-your-face
randomize
play 10
wait 20s
...
EOF
This works with other CLI programs. For example (make sure you have dc and espeak): cat << EOF | dc | espeak
100 k 22 7 / p
EOFcomment 4y ago · link · parent
What does the user get out of running a BSD for Linux software that they can't get out of Linux? If you prefer BSD, then why not use software that is better tailored for BSD rather than software that requires porting and changing or removing all of the Linux specific bits?
comment 4y ago · link · parent
comment 4y ago · link · parent
I am not particularly interested in the above, except power management and wifi. I am trying GhostBSD as an alternative specifically because I am not interested in Gnome, Wayland, or Steam. I don't hate them, just don't care. I may go simpler and just use CTWM and cobble together a desktop environment.
I am genuinely curious what running these things on a BSD gets you that you can't get with Linux. Using a mainstream distro (like Debian or Fedora) gets you this without hassle.
comment 4y ago · link · parent
Webview works ok, and you can get a lightweight Electron-like thing going that uses your existing browser. This reduces binary size greatly. I didn't try any JavaScript frameworks with it, just vanilla JS. You can bidirectional bind between JavaScript and Go too.
What I liked the most was gothic, since Tk looks good enough and runs on Windows 7 easily. Gothic is a Tk binding for Go that is quite simple to use. However, you are writing the GUI in Tk now, and you will either love it or hate it. I do have a bias for Tcl, so it was appreciated.
My use case scenario was supporting an old machine running Windows 7 with mediocre video. I ended up just using Tcl/Tk without Go since it was simpler and reduced a layer (Tcl->Go->C). When it comes to writing small and/or inhouse stuff, I found it easy and fast to just slap out a Tcl/Tk app and call it a day. I can develop on my Linux/BSD box and then just Windows specific bits if necessary and it usually Just Works(tm).
Oh, it should be noted that Python + Tkinter is a decent alternative for those of you needing executables. Pyinstaller is basically a "one-click" and works with bundling Tkinter. Roy Keene has done good work putting together kitcreator for Tcl, but pyinstaller is simpler if you don't understand the magic.
comment 4y ago · link · parent
It would be more interesting if there was more flexibility in the monetization. Options for a minimum price + pay more per seat (for integration with some corporate provisioning software), subscription pricing, one time price + either support subscription or support "piecework" (like bug bounties or developer consultation), and invoicing integration.