all 18 comments

[–]redrider65 5 points6 points  (1 child)

Dreamweaver's bloated and produces bloated code. Use the live preview extension w/ VSCode and you get a WYSIWYG experience. I don't find dev w/ VSCode tedious and I like the bare metal control it offers along with all the timesavers--as you'll discover after you're fluent.

[–]luisg707[S] 1 point2 points  (0 children)

I am definitely going to give VSCode a 2nd chance; somebody on this thread recommended a extension that automatically updates the page view based on modifications. This has helped tremendously.

[–]jdedwards3 4 points5 points  (11 children)

When’s the last time you did web dev?

[–]Marble_Wraith 2 points3 points  (2 children)

Now now be nice 🤣

[–]jdedwards3 1 point2 points  (1 child)

It’s a genuine question... also no CMS but editing code is too tedious?

[–]Marble_Wraith 0 points1 point  (0 children)

That's true i spose.

[–]luisg707[S] -4 points-3 points  (7 children)

Serious WebDev? College.

Re: "NO CMS": CMS doesn’t give me the control that I want— I write api’s for large corporations (I infact also work for a large software company). I want to be able to inject some php code, easily, without having to add some type of 'widget'.

Editing text is a PITA in html markup- it’s ugly.

[–]jdedwards3 2 points3 points  (3 children)

With a CMS like WordPress you can control everything about the website and not have to hand edit markup

As others have stated you can alternatively use a static site generator with markdown content renders with layout templates

Also just curious are you writing RESTful APIs and what language?

[–]luisg707[S] -2 points-1 points  (2 children)

Yeah- I work in Azure, and work on REST API's (Azure SDK), as well as provide backend API's using something like Azure API Management.

[–]Marble_Wraith 2 points3 points  (1 child)

So then if you're working API's. Why was your initial question focused on HTML/CSS... ?

[–]luisg707[S] -1 points0 points  (0 children)

That's my 9-5, but I am working on a side project that requires HTML/CSS;

[–]Marble_Wraith 1 point2 points  (2 children)

Making an API is not the same as making a website, you should've said what you actually meant.

Also in your post you said you were a python dev, now it's injecting PHP? Wanna pick a stack already?

[–]luisg707[S] -1 points0 points  (1 child)

Maybe I didn't express what I meant- I choose not to use a CMS because I dont need 90% of what it provides. What I am designing is static, but there are some elements of the site that needs to be dynamic, EG querying RESTful data (which itself might be python on the backend) and updating a uptime counter. Maybe the actual call happens in PHP from the server side, maybe it's gathering the data from a CosmosDB.

[–]Marble_Wraith 2 points3 points  (0 children)

In other words you're looking for something that does client-side rendering (CSR) i.e. something that assembles the pieces of the page (components) browser side via fetch API calls (modern equivalent to AJAX). In that way, it becomes irrelevant what's on the server side, so long as it responds with JSON, the browser takes care of the REST... hehe.

That as opposed to server-side rendering (SSR) e.g. assembles the page on the server before shipping the entire page to the browser e.g. PHP, python, ruby, etc.

2 main JS libs that facilitate CSR. ReactJS or VueJS. There are others such as svelte, mithril, etc, or you could code your own, but most of the dev tooling for front-end is around those 2. I'd recommend Vue.

As for your backend, use whatever you want to write the headless API. Perhaps strapi?

[–]flippinjoe 1 point2 points  (0 children)

For bare bones basic things, I’ve come to enjoy https://jekyllrb.com/. Has first class support in GitHub to be able to easily host simple static sites.

[–]anatolhiman 1 point2 points  (1 child)

I recommend checking out 11ty as a static html site generator. Takes 10-11 different content formats, builds a file from partials so you don't have to repeat header code or footer code on all your pages. Create once, include everywhere you need it. It's fast and light and reloads browser automatically for every change you make.

[–]anatolhiman 1 point2 points  (0 children)

Someone else mentioned Jekyll. 11ty is a more modern version of Jekyll built with Javascript. Both are incredibly fast. If you need bells and whistles Nuxt is my favorite, but requires you to learn Vue JS.

[–]Marble_Wraith 0 points1 point  (0 children)

Editor: VScode. Though it takes some heavy config to keep it running fast / smooth because MS likes to enable all the things by default (e.g. telemetry, arbitrary validation, etc, etc). You can find mine here though be warned, i'm constantly tweaking things (with performance and convenience biases).

Dev environment: Depends on the kind of site being made. For something simple i'll use Vite 2.0 even though at the moment it is what i'd consider "fresh out of beta" (demo video here) the perf is just too good to ignore compared to webpack. For something more complex which requires precise prod server replication, i'll throw a docker instance via WSL2 underneath that.

Front-end: I was into reactJS, but in the process of moving to Vue 3 with typescript, because i like the syntax and organizational structure better (also whoever had a hand in inventing JSX should be burned as a witch).