Ookma-Kyi

Ookma-Kyi

During a Beam Dreamers meeting, I shared that I’m a PHP and Laravel developer, and someone jokingly referred to “PHP as a walking zombie.” They said the main reason it’s still popular is due to slow and bloated WordPress installations. They also jokingly, I assume, stated that if someone created WordPress in Elixir, that it would be awesome. I am wondering how difficult it would be to implement a simplistic version of it? From reading some threads, the biggest issue is implementing a plugin system. However I still would like to hear everyone’s input.

Showing Posts 17 to 8

Zurga

Zurga

Really agree with these points. I am still a very happy user of Surface.

To add my 2p, I think Surface Contexts can also provide great value within a plugin ecosystem. This way components can extract the data they need from their environment.

the_wildgoose

the_wildgoose

I had always thought Surface UI had the potential to kickstart a bunch of CMS opportunities. To explain that thought, it’s the pre-cursor to current Live View and their components. However, whilst many of those features made their way into current liveview, the remaining differences are that in Surface, all components look like HTML entities! So from the point of view of an end user programming stuff, there is very little gap between writing a <p> tag and a <customYoutubeComponent> tag. Also whilst the components are extremely similar to current liveview components, they are a little bit more rigid and it’s simpler to communicate between them. End result would be that you could package your plugins as these style of components much more easily and use more off the shelf HTML WYSIWYG editors, or a Wiki alike system

Anyway, it seems like interest in Surface massively dropped off with the creation of current Liveview, (which is understandable as for a developer you have everything you need in current Liveview), However, I think if you wanted to make a CMS system which is usable by non-programmers (or less IT geeky users), then there are significant wins for Surface

Just my 2p

venkatd

venkatd

I agree with you it’s not a technical issue. My worry is that if the plugin system is in Elixir, there would be a barrier to contributing. The Elixir community is relatively small vs the JS community.

venkatd

venkatd

I think it really depends on what examples of extensibility you would want. I would start with writing down what plugins you would implement and work backwards from there.

For example, certain types of plugins could be purely frontend-driven.

I think Shopify has some stuff you might take inspiration from:

They are moving in the direction of Shopify being headless. Then many plugins can provide different frontends to the core headless Shopify store.

LostKobrakai

LostKobrakai

It’s not exactly elixir, but there’s also zotonic as an erlang based cms.

mayel

mayel

It’s worth mentioning the work that BeaconCMS has been doing in this space, not only creating a widget/component-based CMS with WYSIWYG drag-and-drop UI but also with mixing markdown, HTML, and HEEX in these dynamic widgets (hence doing runtime compilation).

And there’s our work on Bonfire (a federated app framework rather than a CMS) which is fully modular (every piece of code lives in an extension/plugin meaning it has its own repo and can be included as a mix dependency) and allows admins and even users to toggle extensions (using something like feature flags that checks if extensions or even individual modules are enabled or not). But we’ve chosen to not try for installing new extensions at runtime, instead you can define which extensions should be available in config (including some you don’t want enabled by default) and then let CI build a release that includes all necessary code.

dimitarvp

dimitarvp

Oh, absolutely. I am saying that we should to better than WP if we attempt any form of competition. We can’t just proclaim victory because we are using Elixir and thus the BEAM VM. That’s not good enough.

victorbjorklund

victorbjorklund

Security really. WordPress was and likely still is one of the most attacked software on the planet. It takes just one malicious addon and your instance is toast, because the BEAM VM runtime is quite trusting. Zero sandboxing or any other security inside the node itself.

Yes, but that risk you also got every time you install a library too. Part of reason WP is so targeted is because it is so widely used.

(For the record, I’m not a fan of WP)

dimitarvp

dimitarvp

The fact that most programmers are clueless as puppies when it comes to security does not mean that the rest of us must collectively give up. “It’s all frakked up anyway” is not a philosophy I subscribe under.

Ookma-Kyi

Ookma-Kyi OP

That applies to everything that as MineCraft was even susceptible to malware in the png used for setting players skin. Also many WP themes that encrypt their source code have been found to have malicious JavaScript code.

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews