Web Development

shootwhatsmyname , in New CSS that can actually be used in 2024 (no hype)
@shootwhatsmyname@lemm.ee avatar

here’s the hype:

🔥🎉🥳

tinker_james , in The quiet, pervasive devaluation of frontend

I'm going to be honest. I like this thread. Not only is the article long and "thorough" (whether you agree with this form of thoroughness or not) but the responses are too.

I can appreciate what the author is trying to express. I also related to how he's trying to express it because it's very similar to how I try to explain my opinions, shower thoughts, meanderings....which typically earns me eyes glazing over from my conversation partners haha.

I have many many thoughts on everything being discussed here, but rather than contribute, I'm going to sip on my coffee and keep reading.

P.s. I'm liking PD better than Reddit. Actual conversation happening.

gunpachi , (edited ) in What are your favorite e-commerce alternatives to Shopify?

You might want to check out Vendure . Haven't used it so I can't give my opinion on it but generally I have heard good things about it.

The other option would be Wordpress + Woocommerce like others mentioned.

shootwhatsmyname OP ,
@shootwhatsmyname@lemm.ee avatar

Wow, this actually looks incredible, thanks! Never heard of it before

RonSijm , in The quiet, pervasive devaluation of frontend
@RonSijm@programming.dev avatar

Backend: There is a problem.

@ChatGPT: Can you turn the above sentence into 2 full paragraphs?

Frontend:

There’s a trend I’ve noticed—or at least, I think I’ve noticed. It’s the kind of thing that’s hard to be sure of; the kind that might genuinely be true, or might simply appear to be true if you look at it a certain way.
I can’t tell if I’m right, or if the shapes I’m envisioning in arbitrary ink blots say more about me than they do about what I’m observing.
Maybe it’s both. Maybe it’s all subjective gray area and I’m just picking a spot to draw a line.
I guess you can decide for yourself.

I feel like I’m seeing a widespread diminishment of the practice of frontend. Nearly everywhere I look, I notice its importance minimized, and its challenges trivialized.
This effect might be invisible to you right now. And thus, you might be reflexively inclined to say it doesn’t exist.
Maybe you’re right. Maybe it doesn’t. Maybe I just need to step away from my little screens in my little basement office a little more often.
Or, maybe it’s just like any other implicit bias; maybe it seems like it doesn’t exist because it feels so ordinary until you know what to look for.
So: let’s talk about what I see. Maybe you’ll see it, too.

What convoluted nonsense am I even reading here

gofsckyourself , in Static site generator (SSG) alternative to Squarespace?

Oxygen builder is weird as fuck, especially on top of WordPress' already weird data structure.

If you were considering WordPress I would just stick with Elementor because it's the most popular builder. You can also use https://proelements.org/ to try out the pro version without having to subscribe.

MaximilianKohler OP ,

Hmm, I watched the Oxygen video https://www.youtube.com/watch?v=7yae8GvpPVo where they build a webpage and it doesn't seem weird to me. As a Squarespace user, it seems more familiar to me than the Gutenberg editor. For example, setting the spacing of two side-by-side elements with Gutenberg seemed really strange. They were spaced really far apart without an obvious way to reduce the spacing.

proelements

Interesting! That looks like a completely free version of Elementor Pro. It looks like it's not on the official Wordpress plugins site https://wordpress.org/plugins/search/PRO+Elements/ though. I read that makes it more risky.

gofsckyourself ,

By "weird as fuck" I mean in the context of WordPress and how its templating system works, not in the context of UI/UX.

No, the pro elements plugin not available through the WP.org repo and is only available via GitHub.

Vincent , in Tailwind vs. normal CSS - performance and size
ICastFist ,
@ICastFist@programming.dev avatar

The article doesn't include the information that it uses Nuemark, "a standalone library that works under Bun, Node, and Deno", written by the author himself. It "comes with a set of built-in components aimed at addressing the most common content management use cases" and is part of Nue, which the author markets as "A perfect framework".

There is one mention of Nue, in the original comparison, and another at the end under "What is nue?" - Maybe it's "expected" that the reader knows the author is using Nue and shouldn't need to make it clear, as the blog is hosted on nuejs.org, after all. Not the best practice to omit that, tho.

But what really annoys me is people making "minimalist" sites using FUCKING JAVASCRIPT FRAMEWORKS. Use a fucking markdown -> html converter

bonus_crab , in Tailwind vs. normal CSS - performance and size

Having used it in a major project its a shame that its so inefficient because the user experience really is much much better. It feels like a successor language to CSS because it fixed lots of unobvious and badly named attributes and makes lots of things just easier.

The code is more verbose but also you can completely understand how the page will look just by reading the html.

That said it makes sense the performance is so much worse, where you would have matched on one class for N styles you now match on N classes for N styles.

Theoretically its totally possible to do that matching at compile time and 'compile' the string of classes you wrote into individual ones per element for each combination used in the html though.

Kissaki ,

you can completely understand how the page will look just by reading the html

You lose being able to read meaning and structure though, and you also lose technical accessibility.

I like to add css hacks to websites. But I can't if they don't have useful, identifying, and stable selectors.

bonus_crab ,

not really if you use a web framework and actually separate different things into their own components.

but yeah mixing non tailwind css into a tailwind project after the fact would be gross and hard.

Z4rK ,

It seems that we’ll get up to 10x soeedups with v4: https://tailwindcss.com/blog/tailwindcss-v4-alpha

darkpanda ,

The performance improvements in v4 are for compilation times, not rendering.

spartanatreyu ,
@spartanatreyu@programming.dev avatar

Tailwind is only feels like a successor to CSS to developers writing css like it was 10 years ago (or using frameworks that write it like that, e.g. bootstrap), or projects not using visual regression testing.

Modern css is so much better.

  • Want to position, overlap, or align things? Use CSS Grid.
  • Are you using a CMS or component system and want to change the order that CSS is applied? Use Cascade Layers.
  • Want to have resizeable components? Use component queries.
  • Want to make a change all through your site? Use custom properties.
  • Want to style things differently based on how many other elements are inside or around it? Use :has(), +, ~, nth-..., ... selectors.

If you're using something like BEM, or bootstrap to make columns, your knowledge is way out of date and you're doing it wrong.

Tramort , in The Evolution of Shiki v1.0

Knowing this might fundamentally change the way Shiki works, and since we don't want to risk breaking the existing Shiki users with our experiments,

This is the best way to do things. Thank you! If you date going to introduce breaking changes, COME UP WITH A NEW NAME!

heeplr , in polyfill.io now available on cdnjs: reduce your supply chain risk

why would using a cdn I don't control, from a non-contracted 3rd party and their "PageShield" app reduce my supply chain attack risk?

Am I not just increasing the attack surface since now my visitors can be victim not only by my servers being compromised but now also by the 3rd party being compromised?

serious question.

onlinepersona , in Welcome to the Supercloud - Cloudflare (2022)

This is a sales pitch and it has its hooks, but now I want to see the documentation. What does this look like, practically?

CC BY-NC-SA 4.0

Euphorazine , in Find a decent Internet v2 domain registrar

I don't think you're looking for a registrar, you are looking for some third party DNS server that acknowledges "the domain scam" I guess.

All the major and minor DNS providers rely on the w3 registrar to populate their domain name to IP addresses. So services like hover or GoDaddy will register with the registrar and then DNS services will get your routing info from them.

I'm not aware of any other registrar out there or some DNS service that allows you to submit your own routing info.

Kissaki , in Should you allow username to use Apostrophe (aka quotes )

You don't need to escape any content for storing in a DB field.

Use the correct database interface and you're good.

I'd be more concerned about intention and intentional design. Arbitrary characters can be misleading or problematic for users. Using an allow list for accepted username characters is a good approach if you can't depend on good intentions of users.

spartanatreyu , in Full Stack Web Development Roadmap
@spartanatreyu@programming.dev avatar

This seems a little meh, people shouldn't be getting taught react or nextjs if they're not proficient enough with JS first.

That just teaches people to reach for frameworks when what they're trying to do could likely be solved in a few lines of code.

amargo85 OP ,

i totally agree. i've been posting things in js for those interested in learning the basics of the language

spartanatreyu , in jQuery 4.0.0 BETA
@spartanatreyu@programming.dev avatar

Theo had a great video on this, and went through why jquery is still important for the internet (besides the older and/or inexperienced who use it):

https://www.youtube.com/watch?v=1bZYmpOOC8U

mac , in Deno in 2023
@mac@infosec.pub avatar

I still can't get to grips with the islands directory causing separation from my other components, it feels weird because both islands and components are components, I think Next.js' approach of having a use client string at the top of the interactive component makes much more sense because your component directory structure can mimic the app/pages directory layout.

Honestly it's the only thing keeping me from jumping over to Fresh.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • webdev@programming.dev
  • test
  • worldmews
  • mews
  • All magazines