What dev-related stuff have you been up to?

Building simple html/json scrapers with elixir. Sometimes you get to take a nice shortcut with pattern matching, other times it’s time for regex :smile_cat:

4 Likes

Now that Devon Estes has released Muzak, I’ve been starting to look into that, trying to learn more about more mutation testing tools. So far I’m mainly familiar with Mutant (Ruby) but am now looking into Muzak (Elixir), Stryker (JavaScript and others), and Mutmut (Python).

4 Likes

I have been learning more about Elixir releases in order to construct a general-purpose Dockerfile to support production, development, and testing environments.

Think different and code well,

-Conrad

3 Likes

I don’t want to show myself as disrespectful but after reading the article I am not sure I can see what’s the benefit of mutation testing compared to property testing. Sure, property testing approaches the problem from the other end – namely figuring out the properties that make your program valid and trying to to test for them, thus making error states more visible (and it has saved my bum several times in the past!) – but beyond the different approach I am not sure I see any benefits to mutation testing. It feels more like automated cracking.

I am likely missing something. Do you have any insights?

4 Likes

Have you made any progress?
Nerves is very interesting and I’d like to try it, just I’d need a lot of time :smiley:

3 Likes

Mainly, they are looking for two different things. Property testing finds edge cases and other such special cases. Mutation testing finds insufficiently tested (maybe totally untested) code, which means either you’re missing some tests, or the code is not really needed. These are very different things, both useful. Granted, a “hit” from property testing (an edge/special case) is much more immediately useful in correcting incorrect code, than one from mutation testing (a “surviving mutant”), but it may take much longer to find.

5 Likes

I see, haven’t thought of it this way. Thought it was more like fuzzing but I was wrong.

Thank you.

4 Likes

I’m working on a project with a hybrid front-end (app) and backed by Phoenix. It’s consuming all of my time and I have to put everything I was learning aside, till it ends.

3 Likes

I’ve been learning Elixir these past days (as some of you might know :flushed:). I just let go of everything else and put my entire focus on elixir :sweat_smile:

3 Likes

I have been building some web components for text editing… and Phoenix integration.

4 Likes

It is very much like fuzzing, to the point where lots of people come up with that analogy. There are two big differences. The big one is that mutation testing is mutating the code rather than the data. Another one is that mutation testing generally isn’t random – most tools apply all the mutations they know how to.

4 Likes

Working on a guide to allow anyone to build a Phoenix app that can handle unlimited number of sites on the same port 80 and 443:

You will build a Phoenix 360 web apps project, that will consist of three websites:

  • app.local - will be the main web app and the only one that runs a web server.
  • links.local - the standalone website that will also be available at app.local/_links.
  • notes.local - the standalone website that will also be available at app.local/_notes.

The web server for app.local will also serve the requests for links.local and notes.local, and will dispatch(not redirect or forward) any request to app.local/_links and app.local/_notes into the same application that runs links.local and notes.local respectively.

This guide also has a Phoenix Security Hardening section in order to solve some security concerns around the defaults in Phoenix.

Also, contains a section with LetsEncrypt automation for localhost and production with this library:

4 Likes

Microcontrollers. All the microcontrollers! Arduino, Adafruit Metro, Micro:Bit, etc!
Been really fun doing projects again. Just ordered a Raspberry Pi Pico. I’ve even managed to finish some projects in a semi-permanent form with Arduino. Mostly IoT stuff. “If it blinks, it should Tweet”.

3 Likes

Currently honing my Elixir skills by working on my second Elixir/Phoenix project. The first was a Digital Signage board that displays a simulates stock price, exchange rate, news updates, and video playback that can all be updated in realtime.

4 Likes

Reading about Spring Web MVC and Webflux. Webflux is Spring’s implementation for non-blocking reactive streams. I recently rewrote my backend service from NodeJs to Spring Boot and will use that service as my “playground”. I’m planning on converting my UI exposed endpoints to reactive functional endpoints using Webflux all the way to the Mongo datasource. That way I’ll be ready for the millions of users who want to see what book I am currently reading … :rofl: :rofl: :rofl: :rofl: :rofl:

3 Likes

Working on my project Phoenix360. This weekend I am working on the guide to setup a server with RancherOS and Traefik to run the Phoenix360 web apps or any other dockerized web app.

3 Likes

Trying to “smarten up” on JavaScript and especially testing it – I’m mainly back-end (insert your own joke here), don’t like JS, don’t know “modern” JS very well… but have to do some for work, including stuff more complex than I’m comfy letting slide without tests.

4 Likes

I kind of feel the same way lately. I don’t have to write it professionally yet but I want to not be behind and learn the modern incantations. Lower prio for me though.

Would be interested in you sharing key insights as you go along.

3 Likes

I want to brush up on modern JS/CSS too - I wonder if we should start a thread for each of these and add resources we are going to go through and how we get on with them?

This is a good JS refresher btw:

And I want to go through @noelrappin’s Tailwind book as well - it’s only 90 pages so we could get through it pretty quickly…

1 Like

Make sure to put the words “pragmatic” and “practical” in the title and repeat them 5 times! :smiley:

I mean, I hate the JS hype-train. If we’re going to learn some stuff it might as well be something that is lightning-fast and prioritizes developer ergonomics. I am not interested in another Webpack whose setup in a new project is a damn academic pursuit by itself.

4 Likes