kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devbyio@piefed.blahaj.zone
7 months

Too much Bloat

piefed.cdn.blahaj.zone English

ed is the standard text editor

45
    You must log in or register to comment.

    • OR3X@lemmy.world
      7 months

      ED IS THE STANDARD TEXT EDITOR

        • thejml@sh.itjust.works
          7 months

          You wouldn’t use a "vi"itor or an "emacs"itor, you use an "ed"itor!

            • Hellfire103@lemmy.caEnglish
              7 months

              I would, however, use a "vi"sual editor.

                • io@piefed.blahaj.zoneEnglish
                  7 months

                  newsflash, ed is also visual, i can see it on my terminal rn

                  • Morphit @feddit.uk
                    7 months

                    I think that could be improved upon.

                  • rhabarba@feddit.orgBanned
                    7 months

                    I use a samitor!

                    • Grey Cat@lemmy.worldEnglish
                      7 months

                      We do use a "vi"itor, it’s called Vim/Neovim

                    • yetAnotherUser@lemmy.ca
                      7 months

                      ?

                        • psud@aussie.zoneEnglish
                          7 months

                          “Ed is the standard text editor.”

                          Ed, the greatest WYGIWYG editor of all.

                          ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!!

                          When I use an editor, I don’t want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a “viitor”. Not a “emacsitor”. Those aren’t even WORDS!!! ED! ED! ED IS THE STANDARD!!!

                          TEXT EDITOR.

                          When IBM, in its ever-present omnipotence, needed to base their “edlin” on a UNIX standard, did they mimic vi? No. Emacs? Surely you jest. They chose the most karmic editor of all. The standard.

                          Ed is for those who can remember what they are working on. If you are an idiot, you should use Emacs. If you are an Emacs, you should not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE SO-CALLED “VISUAL” EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!

                          /Quote

                          Nb WYGIWYG* is a play on WYSIWYG†

                          *What You Get Is What You Get

                          †What You See Is What You Get

                      • marcos@lemmy.world
                        7 months

                        Somehow, despite being the standard it doesn’t come installed by default in any distro I’ve tried.

                        They all insist you use sed… that bloated thing!

                          • wewbull@feddit.uk
                            English
                            7 months

                            ed and sed arre different things. One edits files in place, interactively. The other edits streams i.e.batch processing.

                            ed is the precursor to vi. Similar commands. It’s just you can only work on one line at a time.

                              • marcos@lemmy.world
                                7 months

                                One edits files in place, interactively. The other edits streams i.e.batch processing.

                                You want sed -i -f -

                                ed is also the precursor of sed, and of some other dozen of commands.

                                  • wewbull@feddit.uk
                                    English
                                    7 months

                                    Yes ed begat sed, but sed works differently. It didn’t replace ed. It did a different job.

                                    Ed loads the file into a buffer which you edit in a random access fashion and then save. Sed collects a list of commands and then streams the file line by line, executing the commands as they match lines. In your example nothing happens until you’ve entered the whole editing script.

                                • io@piefed.blahaj.zoneEnglish
                                  7 months

                                  sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. But it is sed’s ability to filter text in a pipeline which particularly distinguishes it from other types of editors.

                                  I love the way they are selling this

                                  https://www.gnu.org/software/sed/manual/sed.html

                                  • SubArcticTundra@lemmy.ml
                                    7 months

                                    It’s like nano Vs the original pico

                                    • palordrolap@fedia.io
                                      7 months

                                      If your system has vi or a clone, try vi -e, or, if the symlink is set up, ex. Technically that’s vi in ex mode, not ed per-se but it’s about as similar as you’re going to get without a lot of pointless bother.

                                        • io@piefed.blahaj.zoneEnglish
                                          7 months

                                          is that vim’s evil mode?

                                            • palordrolap@fedia.io
                                              7 months

                                              Comparison time!

                                              ex is to ed as nano is to pico

                                              That is, it’s an editor that works in almost exactly the same way as the original, but it’s by somebody else.

                                              ex is to vi as vi is to vim, or C to C++.

                                              That is, the latter grew out of and improved upon the former, but you can still use them like their forerunners if you really want, which is why vi has an ex mode and why you can still use pointers in C++ if you’re sufficiently warped.

                                                • io@piefed.blahaj.zoneEnglish
                                                  7 months

                                                  and how does qed, ed, ex and sed and grep relate to nano micro and pico in comparison? 🤔

                                                    • palordrolap@fedia.io
                                                      7 months

                                                      qed was also a line editor but pre-dated and inspired ed, so that’s pico to nano or ed to ex again, just even further back in time.

                                                      sed and grep grew out of commands within ed (or equivalent) so I guess you could say they’re each kind of a knight’s move two to the side and once backward from the direction of ex to vi. Backwards because they’re simpler, but two to the side because they’re not interactive.

                                                      As to what would be “backward but one to the side” in that analogy, that’d be something like a tool that asked questions about every line in a file and made changes accordingly. I don’t think there’s any such standard tool, but I can think of at least a couple of ways to write one.

                                              • Endymion_Mallorn@kbin.melroy.org
                                                7 months

                                                Mint includes both ed and sed.

                                              • Alavi@programming.dev
                                                7 months

                                                I load the file into the memory and alter the memory bits manually.

                                                  • JohnAnthony@lemmy.dbzer0.com
                                                    7 months

                                                    With a magnetic needle and a steady hand ?

                                                      • Chais@sh.itjust.works
                                                        7 months

                                                        Can’t do that with SSDs.

                                                          • Endymion_Mallorn@kbin.melroy.org
                                                            7 months

                                                            No, for an SSD, you have to remove it from power and either apply load to specific capacitors, or use concentrated bursts of radiation.

                                                          • Alavi@programming.dev
                                                            7 months

                                                            …anything is possible

                                                        • termaxima@slrpnk.net
                                                          7 months

                                                          I use ed too…

                                                          Except I have alias ed=$EDITOR and export EDITOR=nvim in my .zshrc x)

                                                          • rhabarba@feddit.orgBanned
                                                            7 months

                                                            sam is the standard Plan 9 editor.

                                                            • expr@programming.dev
                                                              7 months

                                                              Naturally, vim is still acceptable.

                                                              • daw@feddit.org
                                                                7 months

                                                                Ed, the greatest WYGIWYG editor of all.

                                                                  • Kilgore Trout@feddit.itEnglish
                                                                    7 months

                                                                    What you get is what you get?
                                                                    Excuse me if this was the joke.

                                                                      • daw@feddit.org
                                                                        7 months

                                                                        You might not know that the defacto standard with editors and the new hot thing at the time that thing was written is WYSIWYG. So yes this was indeed the joke.

                                                                        • Endymion_Mallorn@kbin.melroy.org
                                                                          7 months

                                                                          I always thought it was “What You Give Is What You Get”.

                                                                      • palmtrees2309@lemmy.world
                                                                        7 months

                                                                        Good intro and history to ed I liked

                                                                          • io@piefed.blahaj.zoneEnglish
                                                                            7 months

                                                                            thanks for that!

                                                                          • tomiant@piefed.socialEnglish
                                                                            7 months

                                                                            Sill och nubbe - JA TACK.

                                                                            Rösta JA till proposition 5!

                                                                            • crimsonpoodle@pawb.social
                                                                              7 months

                                                                              Wait till you realize e means extended

                                                                                • io@piefed.blahaj.zoneEnglish
                                                                                  7 months

                                                                                  no it doesn’t (?)

                                                                                    • crimsonpoodle@pawb.social
                                                                                      7 months

                                                                                      Oh no you’re right I was thinking of ex

                                                                                  • sga@piefed.socialEnglish
                                                                                    7 months

                                                                                    i concede, you are too chad for me to even be in same plane of existence.

                                                                                    • dwraf_of_ignorance@programming.dev
                                                                                      7 months

                                                                                      Real men use Butterfly

                                                                                        • Morphit @feddit.uk
                                                                                          7 months

                                                                                          That’s part of the bloat in emacs.

                                                                                        • Endymion_Mallorn@kbin.melroy.org
                                                                                          7 months

                                                                                          I want to use ed as a proper text editor, but xed has so many features I can’t turn it down anymore.

                                                                                          • Digit@lemmy.wtfEnglish
                                                                                            6 months

                                                                                            I use fin.

                                                                                            (Write your own text editor.)

                                                                                              • Digit@lemmy.wtfEnglish
                                                                                                6 months

                                                                                                I also use mcedit, and emacs.

                                                                                              Programmer Humor@programming.dev

                                                                                              programmer_humor@programming.dev

                                                                                              Subscribe from remote instance

                                                                                              Create post

                                                                                              Report community

                                                                                              Modlog
                                                                                              You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

                                                                                              Welcome to Programmer Humor!

                                                                                              This is a place where you can post jokes, memes, humor, etc. related to programming!

                                                                                              For sharing awful code theres also Programming Horror.

                                                                                              Rules

                                                                                              • Keep content in english
                                                                                              • No advertisements
                                                                                              • Posts must be related to programming or programmer topics
                                                                                              Visibility: Public

                                                                                              This community is visible to everyone.

                                                                                              • 56 users / Day
                                                                                              • 205 users / Week
                                                                                              • 212 users / Month
                                                                                              • 14.5K users / 6 months
                                                                                              • 2.33K posts
                                                                                              • 89.8K comments
                                                                                              • 2 local subscribers
                                                                                              • 31.9K subscribers
                                                                                              • UI: 1.0.0-beta.0
                                                                                              • BE: 1.0.0-alpha.20
                                                                                              • Modlog
                                                                                              • Instances
                                                                                              • Docs
                                                                                              • Code
                                                                                              • join-lemmy.org