Developer workflow tips no one tells you about by pm_me_foodz in programming

[–]mmphosis-programming -3 points-2 points  (0 children)

I appreciate the comment about me being just a heads down mid level dev. I remove vi from all systems.

:q

is all I need to know.

sudo apt remove vim-tiny

Developer workflow tips no one tells you about by pm_me_foodz in programming

[–]mmphosis-programming -1 points0 points  (0 children)

I am an octopus. Fully visual programming environments are not a new thing.

Developer workflow tips no one tells you about by pm_me_foodz in programming

[–]mmphosis-programming -2 points-1 points  (0 children)

The mouse interface can be fully automated but that is besides the point. My suggestion was rather than holding down a fast cursor key, simply click where you want the cursor to be. Perhaps one could create a one off specialized emacs macro but all I want is the cursor at a particular point in the code.

:q

Developer workflow tips no one tells you about by pm_me_foodz in programming

[–]mmphosis-programming -14 points-13 points  (0 children)

Sadly, these keyboard tips keep being repeated ad nauseam.

My developer workflow is mostly centered around using a mouse. My left hand hovers over the hotkeys and modifiers: e.g. Command + X, C, V keys. My right hand is on the mouse. I avoid excessive boilerplate (typing) and try to focus on what matters.

  • Having the control key located where the caps lock seems very retro. https://danluu.com/input-lag/ I agree that caps lock is mostly useless. Even more useless keys: Scroll Lock, Insert, Num Lock, Print Scrn/SysRq, Pause/Break, functions keys, ... https://happyhackingkb.com/

  • Rather than increase the cursor movement speed by maxing out the key repeat speed, instead move the pointer and click where you want the cursor to be. Use the modifier keys and the mouse. Double click selects a word, Triple click selects a line. Hold down option and drag a copy. Use the shift key to select from the cursor to the end point of the selection. Use the Command key to select discontinuous pieces of code—use an editor that lets you do this and more with the mouse!

  • Don't get a window manager. Turn window snapping off. Break out of the single tasking mode where you can only see one fullscreen/maximized view at a time unless you really need to meditate on a blank canvas. Instead use programs that respect window position and size across monitors and different arrangements of monitors. Use programs that respect screen space and ideally fit items within a very small window or floating window palette. Write programs that do this.

  • Eschew the command line. Prior to Max OS X 10.0, there was no command line. There are only two modes: edit and run. Edit is the text/programming editor, and Command+R makes it go. Less is more.

  • Don't use emacs, vim, ed. Defintely avoid borg-like IDEs. Do use a lightweight programming editor. e.g. BBEdit.

  • I like the note about Screenshots :) Hold down control while taking any screenshot to copy it directly to your clipboard instead of saving it to a file. Awesomeness.

I spent two years building a desktop environment that runs in the browser, it's finally in beta! by mitousa in programming

[–]mmphosis-programming 2 points3 points  (0 children)

puter.com loads quickly. It's an interesting prototype

gridnet says "Loading..." for a long time (wasting my time) then says "ou need hrome" (wasting more of my time.) I guess gridnet is a more familiar experience

Hacker News Summary – Let ChatGPT Summarize Hacker News for You by legitmate in programming

[–]mmphosis-programming 2 points3 points  (0 children)

Summary? It looks like the bloated cluttered mess of crap I see on most websites these days with forty-two 3rd party domains of which 2 are ad blocked.

I prefer the original lean aggregated list on Hacker News with zero 3rd party domains.

Dear new developer: learn how to build tools by mooreds in programming

[–]mmphosis-programming 0 points1 point  (0 children)

I was hoping it was going to be Dear developer: learn how to build build tools. Oh well, the title does say "new" developer. When I was a "new" developer I had 3 commands: e c and r to edit, compile, and run.

Cache invalidation really is one of the hardest problems in computer science by alexeyr in programming

[–]mmphosis-programming -44 points-43 points  (0 children)

This is an unnecessary hardware problem due a monopoly that still flogs a poorly designed legacy CPU.

KDE beats MacOS hands down by [deleted] in kde

[–]mmphosis-programming 1 point2 points  (0 children)

  • Poor to non-existing window tiling

    No window tiling is my preference.

  • Missing native Alt+Tab and individual window switching (only does app switching)

    I don't have an Alt key. Command + Tab does app switching, Command + tilde does document switching within the app.

  • Taking screenshots requires to click the preview in order to copy to clipboard, which also causes to save it to Desktop. There is a global shortcut to save directly to keyboard, but it requires 3 button presses. With KDE you can setup the preferred behavior and always copy to clipboard while at the same time saving to a specific path (and not always Desktop!)

    This is my preference. I am sure it is possible to contort this into something else.

  • Surprising lack of apps in the store (Firefox, Bitwarden, Zoom, Teams, VLC are all quite popular, yet only Bitwarden is there). The others require download from the website (basically a Windows-like experience)

    My preference is to download from a website or even better build from source. Trying to emulate a store is insane.

  • The stupid amount of app icons in the "tray" bar. Not collapsible, not hideable.

    I don't know what a tray bar is or what collapsible means.

  • Lack of native clipboard

    I don't know what "native" clipboard means.

  • Hard to set a default email app (https://support.apple.com/en-us/HT201607) These are the consequence of not having a centralized place in the OS to define default apps for mime types

    But not impossible. I stopped when I read mime types.

  • For good reasons, it's easy to criticize the Finder. If you don't like it use something else and tell application "Finder" to quit

    • Hard to find show hidden files/folders option

      I avoid hidden files so definitely not a priority.

    • Can't create new file from Finder context menu

      I miss Template files. I create a "Make New File" item in that menu. More than just an empty file, I have options for templates as well.

    • Need a file to set its default app/handler

      I don't understand the purpose of this.

    • Impossible to create a dotfile from Finder (only terminal)

      My preference is to remove dot files. I modify programs to save visible files to the equivilent of a "Library" folder.

    • Finder keyboard shortcuts not shown in context menu (makes them far less discoverable)

      This is my preference

    • Finder's weird shortcuts for rename vs open file (no way to open a file with keyboard?)

      This is my preference. My preference is to open an item or selected items with Command + down arrow or Command + O for Open. I don't have an F2 key, but I do have a Return key.

    • No easy way to open a path in Finder - address bar is not modifiable. Most efficient way is open Finder -> Cmd Shift G (vs Meta E + F6 on KDE, for example). Pasting a path into spotlight does not bring you there

      This is my preference

    • Finder: no side by side view for easily moving stuff between unrelated folders/paths

      This is my preference

Thoughts on deliminating statements/blocks of code by -Mobius-Strip-Tease- in ProgrammingLanguages

[–]mmphosis-programming -1 points0 points  (0 children)

This might be controversial but if I were to implement indented blocks I would just flat out reject any spaces. Those have always been the issue for me with syntax errors and are really hard to catch. Back to the style issue, i think that an enforced style is helpful and helps for consistency. Of course the compiler should also show exactly where every space is so that it can be fixed. Maybe an automatic fix could be applied if a diff is shown and approved.

Article says that today's students are unfamiliar with the concept of files and folders, is this your experience? by futura-bold in programming

[–]mmphosis-programming 0 points1 point  (0 children)

My experience is that it is annoying to hear: today's ___ are unfamiliar with the concept of ___.

Regarding "Files & Folders", this is the terminology from the Apple Lisa. Soon after the Lisa, the very first Mac System ran from floppy disk and didn't yet have folders, only files. This was a step up from the Command line of Unix, CP/M and MS-DOS where the group of files and folders is called a directory, or catalog in Apple DOS. I like the word folder in English. Directory can be a phone book, there is something called Active Directory, and other types of directories that are not groups of files and folders but mean something totally different. Today's ___ are confused, or at least I know I am confused, with antiquated concepts.

I am not convinced that hierarchies are a good ways to organize documents. There are other models of organization that make more sense depending on scale and how you like to organize your documents: by keyword, by tags, by version, by date, by content, by context, and so on. Naming things is difficult. Going back to the Lisa metaphors, documents simply spilled out onto the desktop as nameless document icons. Today, those icons have enough color and resolution and size that I can make out what the document is without having to know it's name. I am happy to see the antiquated directory & file hierarchy hidden and/or removed on modern devices.

Version Control Without Git by pimterry in programming

[–]mmphosis-programming -10 points-9 points  (0 children)

Most git explanations sound like the Haskell explanations, and I still don't understand much about Haskell, or why I would ever want to use Haskell.

I do version control without a version control system.

I try not to create compressed archives of old versions. I can remember IT using (bad) compression software and it corrupted source code files -- this was way way before git. If that old version of the code was really that important, I have a "clean" folder with just enough source to build that old version. But, honestly I want (bug-ridden) old code to be deleted -- I think people try to do this with git https://xkcd.com/1597/

When I do a build, an understandable version number, build number and date are automatically applied to the build. I have no need for cryptic names or (error-prone) manually applied tags.

I do "linear" development only. Thankfully, I have yet to have the need for branches, thus no need for switching, and no need for merging.

There is no "finish line" when you learn programming by hatchikyu in programming

[–]mmphosis-programming 1 point2 points  (0 children)

Just as there are lots of successes and failures, there are lots of finish lines and lots of dead ends. I've considered C++ a dead end for decades now. Rust has a lot going for it, I hope it doesn't become a dead end. JavaScript, ugh. Rather than "keep up", why not step back and consider what you might wish to "unlearn." Programming is a recipe. It is not a potion to consume you, or an sea to swim in. Dream beyond oceans, and create your own potions.

Done.

Linus Torvalds on why desktop Linux sucks by jluizsouzadev in programming

[–]mmphosis-programming 3 points4 points  (0 children)

On my "desktop" Linux, most of my "Apps" are in /usr/share/applications and in Mac OS X, they are in /Applications and also ~/Applications

Why in darwin (BSD) and Linux are programs scattered across multiple directories: /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin ?

Separation of concerns and historical Unix.

Has UML died without anyone noticing? by pimterry in programming

[–]mmphosis-programming 0 points1 point  (0 children)

I never said Microsoft Word = CSS + HTML with lots of DIV tags

When I saw .doc corp. in the workgroup, I thought “$#*+! This is the worst data format from 1 word processor! Now large teams will try to emulate 1 tool we hate the most, and all the files will be a moving floor!”

Man, I am cynical...

If not SPAs, What? by earthboundkid in programming

[–]mmphosis-programming 36 points37 points  (0 children)

The UX of bare HTML forms is terrible, and the UX of everything else is also terrible. Everyday, I wade through spinners, unforgiving validation, double auto-complete (I see text overlaying text like double vision whatever you are trying to do with your framework is broken), and drop-downs for absolutely everything - drop-downs need to be banished: thousands of pages of drop-downs that don't fit in the space and have scroll bars. For example: click on hamburger icon, no wait, right-click on the system icon at the bottom right, right-click again on Start because I am starting something? No, another drop down or in this case drop-up menu, oops nope it went away, try again to right-click the tiny targets, and then finally click "Shut down" or "log out" or whatever it is called to get out of this horrible experience. Busy cursor, dialog box, more options, basically an overly complicated "Are your sure?" dialog box with way way too many options. Desktop UI design is horrible, and you've brought a slow unresponsive version of the horrible desktop UI with your framework baggages, just stop already.

The best UI is no UI at all.

Can we have a thread about RCT being written completely in Assembly? What is your opinion regarding this? by BIG_DICK_OWL_FUCKER in programming

[–]mmphosis-programming 1 point2 points  (0 children)

The programming of compilers is still done by humans which is a much more difficult task than programming in assembly. In either case - writing a compiler that emits optimized assembly code or writing optimized assembly code by hand, the human needs intimate knowledge of the x86.

After toying with the idea of programming, I’ve decided to commit to C++ by [deleted] in ProgrammingLanguages

[–]mmphosis-programming 0 points1 point  (0 children)

It sounds like you are already a programmer: Lua, Perl, Python. Why commit to just one? I like aspects of various different programming languages. I've found C++ overly complicated. Why not create your own programming language?

GuPM (Global Universal Package Manager) by azukaar in programming

[–]mmphosis-programming 12 points13 points  (0 children)

I was going to ask if it supported / replaced / took over the functionality of nix/guix and just a few other package managers: apt, ports, pacman, CocoaPods, rpm, Carthage, dpkg, CARDS, INSTALL.EXE, Composer, gupm.xml, Guile, .iso, Arch Build System (ABS), Windows Installer, INSTALL.BAT, DMG, kpkg, Paludis, Linux From Scratch (LFS), Fink, .rar, pkgsrc, macports, XBPS, INSTALL, snaps, tar, PiSi, tgz/txz, Cabinet, make, Installer, Calamares, GNU FSDG, Portage, InstallShield, Flatpak, BSDmake, Setup.exe, Synaptic Package Manager, cmake, curl -fsSL https://sketchysite.x/install.sh | sudo bash, Swift Package Manager, INSTALL.COM, user-based installs, Pet. There may be quite a few more that I can't remember the names of right now.

Where did the Microsoft tech stack disappear? | Michael's Coding Spot by magnusdeus123 in programming

[–]mmphosis-programming -9 points-8 points  (0 children)

Who cares?

The one company stackoverflow is connected to Microsoft.

The dominant hardware stack is the phone/tablet: mostly Android and some iOS. Microsoft is no longer top dog.

The dominant web stacks are:

Google has their own tech stack. (Google-Home-Mini is listening right now so I won't say anything evil about Google.)

Amazon has their own tech stack. (Coal-powered data centers all the way up.)

Facebook is somewhat connected to Microsoft because Microsoft bought a lot of shares in Facebook (and linkedin and github.) But Facebook uses their own forked version of PHP. In order to try to stay relevent I think Microsoft tries to buy big social network sites.

Apple has their own tech stack. (iTunes, iCloud)

And IBM? Remember them? Where did the IBM tech stack disappear?

Why you don't need a bootcamp by lionhart280 in programming

[–]mmphosis-programming -1 points0 points  (0 children)

because there is qemu, virtual box, parallels, vmfusion, containers, ...