nadiyar.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Admin email
naadiyaar@protonmail.com
Admin account
@@nadiyar@nadiyar.com@nadiyar.com

Search results for tag #programming

[?]Matthew Turland »
@elazar@phpc.social

[?]screwlisp »
@screwlisp@gamerplus.org

Archive pending
communitymedia.video/c/screwta
@kentpitman answering some of the questions and comments in this thread:
gamerplus.org/@screwlisp/11553

- several notes on islisp islisp.info/

- Tool reuse versus new
- (modularity versus globality)

- Learning using only symbols?

- questions thread included a discussion of @JohnMashey viz unix

there will be a part 2

    [?]PHP Zen »
    @PHPZen@phpc.social

    Dynamic Method Calls in PHP
    🔹 Flexible = Great for frameworks
    🔹 Risky = Harder to read, debug & refactor

    Sometimes, “clever” code hides real dangers.
    Be explicit. Be safe. Stay readable.

    🔗 LINK : dev.to/ashallendesign/the-dang

      [?]Dmytro (Dima) Oliinyk »
      @dima@dol.social

      class Bag extends Dog {}

      Dog in bag

      Alt...Dog in bag

        [?]Asbjørn Ulsberg »
        @bitbear@icosahedron.website

        “I regret to inform you that, after a long struggle, [David Heinemeier Hansson] eventually lost his fight against the parasitic fungus that was taking over his brain, and died. The exact timeline is unclear, but we suspect he succumbed to his illness sometime in 2020.”

        Well worthy read for everyone, especially those invested in the Ruby ecosystem.


        hachyderm.io/@phillmv/11552078

          [?]MGClaros »
          @mgclaros@mastodon.world

          This article shows how duckplyr can be used instead of dplyr, providing very fast results with very huge datasets.
          tidyverse.org/blog/2025/06/duc

            AodeRelay boosted

            [?]Hacker News » 🤖
            @h4ckernews@mastodon.social

            [?]𝐭𝐡𝐠𝐬 »
            @thgs@phpc.social

            Your code is not your code.

              [?]Daniel »
              @danielpetrica@infosec.exchange

              ​While building my new project, Coz.jp, I hit an unexpected roadblock.
              ​The challenge? How to make:
              ​Multi-language routes (e.g., /en/, /ja/)
              ​A catch-all route (for link shortening)
              ​Language switch redirects
              ​...all coexist without conflicts.
              ​After several nights of testing complex solutions, I landed on one that I'll be honest about: it's simple, but ugly.
              ​The Solution:
              I have an array of all available languages. I simply loop through that array and define all the main site routes inside the loop.
              ​It's not the "cleanest" code you'll find in a textbook. But it was the easiest to implement, the most fail-proof, and it allowed me to move forward.
              ​It's a perfect reminder that in the world of shipping products, a robust, working, and maintainable solution is often better than a theoretically "elegant" one that's complex and brittle.
              ​Done is better than perfect.
              ​Have you ever had to choose a "simple but ugly" solution to a tough problem? I'd love to hear your stories.

                [?]Marek »
                @mark22k@layer8.space

                Angry IP Scanner has released a new version.

                And I was named as a contributor 😀

                github.com/angryip/ipscan/rele

                By the way, my ipscan plugins are free software (GNU GPLv3, REUSE compliant) and can be found on Codeberg.

                codeberg.org/mark22k/ipscan-pl
                codeberg.org/mark22k/-/package


                  [?]Javed A. Butt »
                  @javedAB@mastodon.social

                  Most WordPress users aren't programming. They're configuring.

                  There's a real difference:
                  - Writing code vs clicking GUI
                  - Building systems vs combining plugins
                  - Asking "How do I automate?" vs "Which plugin?"

                  Like Excel user vs Database engineer.
                  Like Canva designer vs UX engineer.

                  Both valid. Different skillsets.

                  Configuration isn't programming.

                    [?]OpenMP ARB »
                    @openmp_arb@mast.hpc.social

                    We are excited for next week in St. Louis!

                    Each year we invite OpenMP members to submit short videos on various OpenMP topics. Those videos featuring Giorgis Georgakoudis, Vivek K., Tim Mattson, Kevin Sala Penadés, and Ruud van der Pas are now available. Learn about DTrace, PyOMP, AI-assistance and more!

                    openmp.org/events/sc25/

                    OpenMP Tech Talks are now available!

                    Alt...OpenMP Tech Talks are now available!

                      AodeRelay boosted

                      [?]Ntos Fops »
                      @ntoskrnl@furry.engineer

                      Ever wondered what happens when you check out a branch in git? This little guy has all the answers 🦊

                      🎨: my friend @tegfox - THANK YOUUUUU omg aaaaaaa it came out so freaking good as you always do :D <3 he's so CUUUTEEEE just look at da lil guy just trying his best to manage all that code <3

                      A short one-page comic with 5 frames, titled "Local Branch Manager".

In the first frame, Ntos, a gray anthro fox, is at his computer programming. He checks out a code branch in his terminal.

In the second frame, a regular/feral fox is awoken from his sleep by a bell.

The fox then goes over in the third frame to a little hole, labeled as the dot git folder. The little fox scurries and digs around in there, while Ntos in the fourth frame is looking over at the fox slightly confused.

Finally, in the fifth frame, the fox has returned from his little hole happily and proudly holding a literal tree branch with a bunch of code files hanging off it, offering it to Ntos.

                      Alt...A short one-page comic with 5 frames, titled "Local Branch Manager". In the first frame, Ntos, a gray anthro fox, is at his computer programming. He checks out a code branch in his terminal. In the second frame, a regular/feral fox is awoken from his sleep by a bell. The fox then goes over in the third frame to a little hole, labeled as the dot git folder. The little fox scurries and digs around in there, while Ntos in the fourth frame is looking over at the fox slightly confused. Finally, in the fifth frame, the fox has returned from his little hole happily and proudly holding a literal tree branch with a bunch of code files hanging off it, offering it to Ntos.

                        [?]Fossery Tech :debian: :gnome: »
                        @fosserytech@social.linux.pizza

                        (more Linux and FOSS news in previous posts of thread)

                        Zed Editor introduces one-click agent extensions for ACP integration:
                        alternativeto.net/news/2025/11

                        Git 2.52-rc0 Starts Working On SHA1-SHA256 Interop, Hints For New Default Branch Name:
                        phoronix.com/news/Git-2.52-rc0

                        GCC 16 Lands Improved Memmove Behavior For x86/x86_64 CPUs:
                        phoronix.com/news/GCC-16-x86-I

                        OpenProject 16.6 adds new project evaluation tools & significant performance improvements:
                        alternativeto.net/news/2025/11

                        Open Container Initiative "OCI" Runtime Spec v1.3 Released With FreeBSD Support:
                        alternativeto.net/news/2025/11

                        Vulkan 1.4.332 Brings A New Qualcomm Extension For AI / ML:
                        phoronix.com/news/Vulkan-1.4.3

                        Vite 7.2 brings proxy HTTP2 support, build.license option, ESM config features:
                        alternativeto.net/news/2025/11

                        Kodi 21.3 brings HDR support on the Xbox One and Blu-ray playback enhancements on Linux:
                        alternativeto.net/news/2025/11

                        FreeBSD 15.0 Beta 5 Released With Build Fixes For Google & Azure Clouds:
                        phoronix.com/news/FreeBSD-15.0

                        Rust-Based Redox OS Gets Servo Web Engine Running - Sort Of:
                        phoronix.com/news/Redox-OS-Oct

                          AodeRelay boosted

                          [?]eon 🐀 »
                          @eondraws@possum.city

                          warnings? what warnings?

                          a rat looks off to the side, looking really serious and deep in thought, against a dark background. the rat themself is shaded pretty dramatically. text reads, "the rat doesn't concern themself with compiler warnings".

                          Alt...a rat looks off to the side, looking really serious and deep in thought, against a dark background. the rat themself is shaded pretty dramatically. text reads, "the rat doesn't concern themself with compiler warnings".

                            [?]Alexandre Borges »
                            @alexandreborges@infosec.exchange

                            Evading Elastic EDR's call stack signatures with call gadgets:

                            offsec.almond.consulting/evadi

                            Evading Elastic EDR's call stack signatures with call gadgets

                            Alt...Evading Elastic EDR's call stack signatures with call gadgets

                              [?]OpenMP ARB »
                              @openmp_arb@mast.hpc.social

                              Excited for ? We sure are! So excited that we couldn't wait! We are happy to announce that our OpenMP Tech Talks are now online! Five experts have submitted talks ranging from DTrace to parallel programming in Python. Wet your appetite now!

                              openmp.org/events/sc25/

                              OpenMP Tech Talks now available at: https://www.openmp.org/events/sc25/

                              Alt...OpenMP Tech Talks now available at: https://www.openmp.org/events/sc25/

                                [?]Djumaka »
                                @djumaka@phpc.social

                                I find it strange that people still try to keep the function name and the function code the same. A function name should explain the what and the code should tell you how. Because in the place you call it, you should not care how is this calculated, you want the result, and in the function code, you don't care why do you do the calculations, you care what it produces...

                                May be my mind is a bit too abstract...

                                  [?]Bill »
                                  @Sempf@infosec.exchange

                                  Gotta be the top risk right now, appsec wise. Synthient Credential Stuffing Threat Data - 1,957,476,021 breached accounts

                                  haveibeenpwned.com/Breach/Synt

                                    [?]Eric :vim: :debian: »
                                    @ericbalduin@infosec.exchange

                                    CAMARADAS, es de mi agrado compartir con ustedes la creación de KRYPTUX :ablobcatnomcookie: , ojalá les resulte de utilidad: codeberg.org/ericbalduin/krypt

                                      AodeRelay boosted

                                      [?]Artur Manuel »
                                      @amadaluzia@mastodon.bsd.cafe

                                      I've done some frontend stuff with Astro, Svelte and TailwindCSS for a bit. Astro's server-side magic mixed with Svelte's reactivity makes it a really fascinating experience to create webpages, like my own site that I host on Vercel. Honestly, while HTML is really good for making basic websites, it's not designed for reusable code which makes it really frustrating to refactor multiple components especially if they are used 10+ times. Web frameworks like Vue, Svelte, Astro and whatnot are kind of needed for good DX, at least for those wanting to do *some* frontend dev.

                                      I wanted to try creating a backend using something like Rust, Crystal or Haskell, so that I can understand and how create REST APIs, write a full-stack application, learn how to manage DBs and whatnot. Though I realised I wasn't sure how to proceed in actually making something useful, so I spoke to my IT professor and he suggested a REST application for parking spots, which DID intrigue me enough to actually go ahead and make something. So now I'll just do that.

                                      However, I still need to focus on other courses I'm in, including one where I may have to use my frontend abilities which will be interesting. Maybe I could use this as a way to show my expertise in development, which I've wanted to do for a while. I'm somewhat uneasy with all that I may have to take on, but I think I can balance all that, and college preparation for exams. I'll hope I can at least.

                                        AodeRelay boosted

                                        [?]Armin Hanisch »
                                        @Linkshaender@bildung.social

                                        (edit: missing word added)
                                        Just a shoutout and a big „Thank You“ to all these developers who provide a „dryrun“ option in their command line utilities. One of the best things I learned as a developer that might save someone‘s ass someday. 👍🏼🤗

                                          [?]EdTheDev »
                                          @EdTheDev@infosec.exchange

                                          @Amberrrrrrr Tell your partner welcome to the club!

                                          I keep a list of my favorite resources here:
                                          edward.delaporte.us/learn2code/

                                          And I'll share my favorite programming quote:

                                          "Writing a program for a person can amuse and frustrate them for a day; but teaching them to write their own programs can amuse and frustrate them for the rest of their life."

                                            [?]Abhinav 🌏 »
                                            @abnv@fantastic.earth

                                            [?]Dominik Chrástecký - Blog »
                                            @dominik@chrastecky.dev

                                            Fun with PHP: Changing Readonly Properties and Other Shenanigans

                                            Changing a Readonly Property

                                            So, you know how readonly properties are, well… read-only? Turns out they’re not!

                                            I stumbled upon this mechanism just as PHP started deprecating it — but hey, if you ignore the deprecation warnings, you can still use it up until PHP 9!

                                            A bit of theory first: readonly properties can only be assigned inside a class constructor. After that, they’re supposed to be immutable.

                                            final readonly class ReadonlyClass
                                            {
                                                public string $someProp;
                                            
                                                public function __construct()
                                                {
                                                    $this->someProp = 'unchangeable!';
                                                }
                                            }
                                            

                                            The only official way to set such a property outside the constructor is via reflection — but even then, only if the property hasn’t been initialized yet:

                                            final readonly class ReadonlyClass
                                            {
                                                public string $someProp;
                                            }
                                            $test = new ReadonlyClass();
                                            $reflection = new ReflectionClass(ReadonlyClass::class)->getProperty('someProp');
                                            $reflection->setValue($test, 'changed once!');
                                            var_dump($test->someProp);
                                            $reflection->setValue($test, 'changed twice?');

                                            This produces the predictable result:

                                            string(13) "changed once!"
                                            
                                            Fatal error: Uncaught Error: Cannot modify readonly property ReadonlyClass::$someProp

                                            Changing It Multiple Times

                                            Enough stalling — let’s dive in! The magical object that can modify a readonly property (and much more) is ArrayObject.

                                            Normally, you’d use ArrayObject to wrap an array. But it also accepts any object as the backing value — and that’s where the fun begins. Once you know how PHP stores properties internally (which is actually pretty simple), chaos follows.

                                            Let’s start with this class:

                                            final readonly class ReadonlyClass
                                            {
                                                public string $someProp;
                                                private string $somePrivateProp;
                                                protected string $someProtectedProp;
                                            
                                                public function __construct()
                                                {
                                                    $this->someProp = 'unchangeable?';
                                                    $this->somePrivateProp = 'unchangeable?';
                                                    $this->someProtectedProp = 'unchangeable?';
                                                }
                                            
                                                public function getSomePrivateProp(): string
                                                {
                                                    return $this->somePrivateProp;
                                                }
                                            
                                                public function getSomeProtectedProp(): string
                                                {
                                                    return $this->someProtectedProp;
                                                }
                                            }

                                            Now we create an instance and wrap it in an ArrayObject:

                                            $instance = new ReadonlyClass();
                                            $arrayObj = new ArrayObject($instance);
                                            

                                            And now comes the fun part:

                                            // simply use the property name for public properties
                                            $arrayObj['someProp'] = 'changeable public!';
                                            // use "\0[FQN]\0[Property name]" for private properties
                                            $arrayObj["\0ReadonlyClass\0somePrivateProp"] = 'changeable private!';
                                            // use "\0*\0[Property name]" for protected properties
                                            $arrayObj["\0*\0someProtectedProp"] = 'changeable protected!';
                                            
                                            var_dump($instance->someProp, $instance->getSomePrivateProp(), $instance->getSomeProtectedProp());

                                            This prints:

                                            string(18) "changeable public!"
                                            string(19) "changeable private!"
                                            string(21) "changeable protected!"

                                            And just like that, you’ve changed an unchangeable property. You can modify it as many times as you want. So… what other arcane tricks are possible?

                                            Changing an Enum Value

                                            Enums are basically fancy objects that represent a specific named instance — optionally with a value. The key difference from old userland implementations is that PHP guarantees every enum case is a unique instance that’s always equal to itself, no matter where it’s referenced from.

                                            In other words, an enum is really just an object, and ->value or ->name are plain properties.

                                            enum MyEnum: string {
                                                case A = 'a';
                                                case B = 'b';
                                            }
                                            
                                            $arrayObj = new ArrayObject(MyEnum::A);
                                            $arrayObj['value'] = 'b';
                                            $arrayObj['name'] = 'C';
                                            
                                            var_dump(MyEnum::A->value);
                                            var_dump(MyEnum::A->name);

                                            This prints exactly what you’d expect after reading the previous example:

                                            string(1) "b"
                                            string(1) "C"

                                            Even more amusing: Running var_dump(MyEnum::A); now prints enum(MyEnum::C).

                                            It won’t actually make it equal to another enum case, but if you use the value somewhere and reconstruct it using MyEnum::from(), you’ll get back MyEnum::B.

                                            If you try to serialize and deserialize it, you’ll get an error — because MyEnum::C doesn’t exist:

                                            var_dump(MyEnum::from(MyEnum::A->value));
                                            var_dump(unserialize(serialize(MyEnum::A)));

                                            The first prints enum(MyEnum::B), while the second throws a warning: Undefined constant MyEnum::C.

                                            Breaking Types

                                            ArrayObject is so powerful that even the type system trembles before it. Types? Mere suggestions!

                                            final class TestTypedClass
                                            {
                                                public string $str = 'test';
                                                public bool $bool = true;
                                                public int $int = 42;
                                            }
                                            
                                            $instance = new TestTypedClass();
                                            $arrayObj = new ArrayObject($instance);
                                            
                                            $arrayObj['str'] = 5;
                                            $arrayObj['bool'] = 'hello';
                                            $arrayObj['int'] = new stdClass();
                                            
                                            var_dump($instance->str, $instance->bool, $instance->int);

                                            Output:

                                            int(5)
                                            string(5) "hello"
                                            object(stdClass)#3 (0) {
                                            }

                                            So if you ever thought “Hmm, this boolean could really use more than two possible values” — now you know how!

                                            Dynamic Properties Everywhere

                                            Some internal classes like Closure, Generator, and DateTime disallow dynamic properties. Nevermore!

                                            $closure = fn () => true;
                                            $arrayObject = new ArrayObject($closure);
                                            $arrayObject['test'] = 'hello';
                                            
                                            var_dump($closure->test);
                                            // prints string(5) "hello"

                                            Crashing PHP

                                            And finally — my favourite one! Ever wanted to cause a segmentation fault? Try this:

                                            $exception = new Exception("Hello there!");
                                            $arrayObject = new ArrayObject($exception);
                                            $arrayObject["\0Exception\0trace"] = -1;
                                            
                                            var_dump($exception->getTraceAsString());

                                            That gave me one beautiful Segmentation fault (core dumped)!

                                            So, how did you like these all-powerful ArrayObject shenanigans?

                                            Fun with PHP: Changing Readonly Properties and Other Shenanigans

                                            Alt...Fun with PHP: Changing Readonly Properties and Other Shenanigans

                                            [?]Sherri W (SyntaxSeed) »
                                            @syntaxseed@phpc.social

                                            In my early 20s I got my first job at a small shop. That's when I bought my first domain & shared .

                                            It's when I set up my first email address. When everyone I knew had Hotmail... I had something unique.

                                            Well, over 2 decades that single email turned into 2 (personal & professional), then special purpose emails, aliases & throwaways. I have a few gmail accounts too.

                                            All in all I had at my peak, about 3 dozen different addresses. 😵‍💫

                                            This is a Problem.

                                            \1

                                              AodeRelay boosted

                                              [?]Ember in the Pattern Buffer »
                                              @maddiefuzz@masto.hackers.town

                                              My position was eliminated as well. If anybody needs a software engineer, I'm looking for my next role.

                                              My last position involved C, maintaining a legacy codebase supporting cyber operations. Multi-architecture experience.

                                              Proficient in C, Swift, Rust, Python, Java, and familiarity with many other languages.

                                                🗳
                                                Mehrad :kde: :emacs: :rstats: boosted

                                                [?]Rafael Pérez »
                                                @rperezrosario@mastodon.social

                                                "I'm a programmer with a Fediverse account. I spend *most* of my programming hours on this OS:"

                                                Please consider boosting for a more statistically significant result.

                                                Microsoft Windows:9
                                                MacOS:6
                                                Linux or Unix:8
                                                Other (Please comment.):0

                                                  [?]Roni Rolle Laukkarinen »
                                                  @rolle@mementomori.social

                                                  My automated Nginx exploit scanner is getting close to perfect. Who needs SaaS tools anymore when you have Bash?

                                                    [?]afreytes 🇵🇷👨🏽‍💻🕹️☭ »
                                                    @afreytes@mastodon.gamedev.place

                                                    politically incorrect programming question? [SENSITIVE CONTENT]

                                                    Imagine you are writing a novel set in the somewhat near future. Humanity is divided between a solarpunk collective trying to make a better future, and a technofascist state trying to kill anyone who doesn't share their same hateful thoughts.

                                                    Which real world programming language from today are the technofascists using? Why?

                                                    No wrong answers, have fun, but it has to be a real programming language.

                                                      [?]Roni Rolle Laukkarinen »
                                                      @rolle@mementomori.social

                                                      "you can find the projects I worked on on my GitHub". My GitHub: Airplanes made by AI that make no sense.

                                                      Alt..."you can find the projects I worked on on my GitHub". My GitHub: Airplanes made by AI that make no sense.

                                                        🗳
                                                        Quin boosted

                                                        [?]Rafael Pérez »
                                                        @rperezrosario@mastodon.social

                                                        I'm a computer programmer with a Fediverse account, and I am this many years old.

                                                        Please consider boosting for a more representative sample.

                                                        10-20 years old.:9
                                                        21-30.:72
                                                        31-40.:109
                                                        41 or older.:219
                                                          1 ★ 1 ↺

                                                          [?]nadiyar »
                                                          @nadiyar@nadiyar.com

                                                          is this the right way of creating software?
                                                          IDK but it seems like bad practice to me.


                                                          It's a screenshot from the Javalin project website showing some statistics about the codebase. it says main has 7k lines of code and test has 10k lines of code

                                                          Alt...It's a screenshot from the Javalin project website showing some statistics about the codebase. it says main has 7k lines of code and test has 10k lines of code

                                                            [?]dan_nanni »
                                                            @dan_nanni@mastodon.social

                                                            This chart shows how top-10 programming languages have changed over the years. It highlights Python’s consistent dominance while Java, C, C++, and JavaScript remain strong, with newer contenders like SQL and TypeScript rising in recent years 😎👇

                                                            Find high-res pdf books with all my related infographics from study-notes.org