off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
2021-05-17T10:36:11.251500Z

God, 123-reg technical support is the worst. I bought a domain name from them over the weekend and now I can't login to the account to setup some DNS. After 30 minutes on the phone to them all they can suggest is "try again tomorrow?"

dharrigan 2021-05-17T10:36:37.252100Z

I do believe they don't have the best reputation

2021-05-17T10:36:45.252500Z

I can't raise a support ticket, as you have to be logged in to raise a ticket and I can't access their support live chat, as again, you have to be logged in

2021-05-17T10:37:02.252900Z

I think I might just do a charge back and screw the domain

dharrigan 2021-05-17T10:37:20.253100Z

<https://www.theregister.com/2021/01/07/123_reg_dns/>

dharrigan 2021-05-17T10:37:43.253600Z

Have a search on the register for 123-reg and you'll get a plethoria of hits...

2021-05-17T10:40:48.254600Z

All I wanted was to create a basic static site, with https using azure and blob storage with a custom domain pointed at it. All weekend on it and everything is just crap. 123-reg is crap, the azure portal is crap, azure documentation is crap.

hindol 2021-05-17T10:52:23.255200Z

Azure Portal is not crap. I needed some time to get used to it.

2021-05-17T10:52:47.255600Z

We use it pretty heavily at work, and I've tried to use it personally. I find everything about it awful

2021-05-17T10:53:00.255800Z

the UI is an embarrasment

hindol 2021-05-17T10:54:06.257Z

UI from the usability perspective? Or that it uses really old tech (backbone.js) and looks old?

2021-05-17T10:54:36.257600Z

It sometimes gives error messages that basically equate "that didn't work", with no further information. So you just try exactly the same thing again and sometimes it just works...

2021-05-17T10:55:05.258300Z

the usability is terrible, the UI basically equates to keep scrolling the UI to the right...

hindol 2021-05-17T10:56:06.258600Z

True that. Agree about the horizontal scrolling.

hindol 2021-05-17T10:57:11.259900Z

About the error messages, I think everyone is worried about leaking internal stuff that one should not have leaked, thus they have this generic error.

2021-05-17T10:57:21.260200Z

Ive been on support calls with clueless tech support who, while sharing his screen, was on stack overflow trying to find how to solve my issue

Christoffer Ekeroth 2021-05-17T11:20:03.260500Z

If you’re looking for alternatives for hosting static pages I can recommend Netlify; very easy to use and they have a generous free plan

Christoffer Ekeroth 2021-05-17T11:20:57.260700Z

Setting up a site with git-based deployment, custom domain and SSL literally takes like 5-10 minutes

2021-05-17T11:22:47.260900Z

WIth Azure it seems to be Create a resource group Create a blob storage account Mark it as a static site Create a CDN profile Create a CDN endpoint Create a custom domain on the CDN endpoint Create a CName entry on your DNS to point ot CDN endpoint Enable SSL. It does a bunch of verification, when that finally happens you cna browse to your site. Update site. You are served old site before it was updated... Start over. Azure tells you that you need to wait 8 hours to try agian

2021-05-17T11:23:20.261100Z

I'll check out netlify, life is just too short for azure

👍 1
2021-05-17T13:03:01.261500Z

oh wow, that's it all set up and working with Netlify and I can push to it with a manual release git hub action, with working SSL and root domain

👍 1
2021-05-17T13:03:14.261700Z

seriously, three days on azure and I couldn't get it working.

Christoffer Ekeroth 2021-05-17T14:22:00.262200Z

netlify 4 life

Christoffer Ekeroth 2021-05-17T14:25:22.262400Z

they have a pretty good story around CDNs and static asset caching as well; they leverage HTTP/2 features like multiplexing and etags so you can get performant client-side caching without resorting to cache busting hacks: https://www.netlify.com/blog/2017/02/23/better-living-through-caching/

Christoffer Ekeroth 2021-05-17T14:25:46.262700Z

(I promise I’m not a Netlify shill, just a very happy customer 😄 )

Christoffer Ekeroth 2021-05-17T14:27:20.262900Z

One caveat is that once you’ve outgrown the free tier the paid plans are ridiculously expensive for what you actually get (but in that case the Azure door is still open)

2021-05-17T14:39:30.263200Z

I didn't actually need a cdn, just azure makes it a requirement to have a custom domain

sova-soars-the-sora 2021-05-17T17:18:35.266700Z

So I want the landing page of my site to be very fast. I can move my site to http://app.websait.com and then put the wordpress at http://websait.com/ this will break all the links to http://websait.com/whatever because they'll now live at http://app.websait.com/whatever... would probably muck up a lot of search results...

2021-05-17T17:20:21.267500Z

surely there's some dns redirect / routing magic that fixes this (it's been years since I messed with it but I remember aws having a widget for this sort of thing)

sova-soars-the-sora 2021-05-17T17:22:44.268400Z

I think it would be pretty easy if the new wordpress host I am using gave me a dedicated IP, but that also costs extra... so I'm wondering what I can do to have [wordpress host] serve http://page.com/ [normal server] serve http://page.com/*

sova-soars-the-sora 2021-05-17T17:31:58.268900Z

Maybe I just gotta figure out how to self host WP and make it fast... i was hoping to get another provider so it would be nice and snappy x/

2021-05-17T17:34:33.270Z

@sova one option to consider is an nginx reverse proxy in front of wordpress, with a static cached landing for the main page - which might be more effort than you are ready for if you haven't done nginx config before

2021-05-17T17:35:23.270900Z

but it will serve the cached documents very fast if configured correctly (not as fast as a CDN, but that's not a budget friendly option)

2021-05-17T17:36:10.271500Z

as a bonus, nginx is probably better security wise than whatever web server you are currently using, it makes a nice protective layer

sova-soars-the-sora 2021-05-17T18:22:20.272300Z

@noisesmith nginx is awesome i gotta look into using that instead.

Juλian (he/him) 2021-05-17T18:30:16.273100Z

I use traefik as reverse proxy for all my containers, and there I can not only specify the host, but also the path prefix

Christoffer Ekeroth 2021-05-17T20:09:12.273500Z

Have you tried any of the caching plugins available, like WP Super Cache? WPSC basically turns your WP pages into static HTML https://wordpress.org/plugins/wp-super-cache/ W3C is another option; it’s more granular but I’ve found it a bit unreliable as it will sometimes slow sites down to a crawl, ironically

Claudio Ferreira 2021-05-17T20:45:50.276600Z

[WHEN TO STUDY CLEAN CODE] When should a programmer start studying clean code? After writing a lot of ugly code (but learning the logic behind the programming language), or in the beggining to build great programming habits since the beggining of the journey?

2021-05-18T12:23:04.017500Z

I think "cleanliness" is a terrible way to approach this. what we actually need is readability - code where the first intuition of the human reader leads you to the author's intent. it's a question of human communication not mechanical hygiene. my preferred angle is that "optimization" is a vector space (you can optimize for memory usage, CPU usage, startup delay, portability, long term maintainability, short term time to deploy ...) and the most powerful optimization is to optimize for human readability. that optimization is fungible - it's the only one can trade it in for any other optimization. it introduces technical investment while all other optimizations introduce some form of technical debt.

👍 1
2021-05-18T12:24:30.018400Z

it's more of a literary skill. the ability to convey quickly and accurately what it means to a human reader.

2021-05-18T12:25:37.018600Z

I'd say it's best picked up via repeated code review (both reviewing the code of others and communicating with them about their intent, and having code reviewed by others and answering questions about your intent). there's quite a lot of empathy to it.

sova-soars-the-sora 2021-05-20T21:41:41.065Z

Hmm that is spot on and I think you can learn a ton by reading the source code to clojure libs lots of people use. That code tends to be very effective at communicating intent, and very effective at what it does. Since it sounds like the best way to get this sense would be to actively meet with other coders and inquire about code and intended consequences. Maybe watching streams of live-coding would be good in this department, too. I wish there was more of that.

Claudio Ferreira 2021-05-22T22:48:54.109100Z

Thanks all!

2021-05-17T21:09:09.277Z

Personally I think its easier to learn good habits, then to learn bad habits and have to undo them.

emccue 2021-05-17T21:41:16.277800Z

focus more on "ugly" code than clean code

emccue 2021-05-17T21:41:35.278300Z

all patterns are "clean" under 150 lines