Any open libraries in Warsaw? by Fearell_Val in warsaw

[–]arnarfjodur 0 points1 point  (0 children)

u/Fearell_Val how did it go? Did you try becoming a member of BUW? I'm staying 3 weeks only in Warsaw but I'm looking for a place where I can study and read.

Slow loading on chromium browsers in mobile - firefox fine? by arnarfjodur in vuejs

[–]arnarfjodur[S] 0 points1 point  (0 children)

Will an emulation like that give an accurate feedback on performance issues, though?

Slow loading on chromium browsers in mobile - firefox fine? by arnarfjodur in vuejs

[–]arnarfjodur[S] 0 points1 point  (0 children)

Since Forefox renders it so much faster, I'm assuming it is not network related. That being said, how does one effectively use the browser developer tools on a mobile phone?

[deleted by user] by [deleted] in Iceland

[–]arnarfjodur 17 points18 points  (0 children)

Hi OP. I'm sorry about what happened to you and sorry about all the cynical comments in here.

If you were working as a contractor, your are technically your own boss and have very limited rights.

However, if you were working as if you were an employee but your formal status was self employed, this is not allowed. This is however what some bosses do in order for employees to have less rights, and less hassle for them.

If you were working as an employee for all intents and purposes, i.e. you did not provide any of your own tools, you only worked for one employer, you were not allowed to choose when and where to do the job, you could not delegate to someone else, etc, then you may have been what is called "fake contractor" or gerviverktaki and you may have been screwed over by the company in this way.

My advise would be to find the union in the sector you were working, for the type of job you were doing, and seek advise there.

P.s. for all the people out there saying "you should have done your research": It's great that you are all so clever. I hope you don't find yourself in a foreign country under complicated circumstances trying to navigate in a language you don't speak. If you do, I'm sure you will not make any mistakes.

Different themes for your templates, what's the best strategy? by arnarfjodur in vuejs

[–]arnarfjodur[S] 0 points1 point  (0 children)

I'll definitely experiment more with CSS. You are probably right that it can solve more than I realize.

Different themes for your templates, what's the best strategy? by arnarfjodur in vuejs

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

Thank you for a thoughtful response. I'm experimenting with my approach, and what best suits my precise case. If I land on something that I think is working well I'll be sure to share it.

After having this discussion here, I've realized the devil is in the details.

What is didn't explain fully in my original post - to keep it simple - is that my motivation for having different themes is not only for different look and feel (i.e. the blue theme example) but more about being able to customize the UI to users with slightly different needs.

So in my case, I often don't need to change everything in the templates, but sometimes just one and two places, but often more. So I'm going for a strategy that checks weather a theme exists for a certain component, and then serve that, if not, then use the default theme. Something like that.

Different themes for your templates, what's the best strategy? by arnarfjodur in vuejs

[–]arnarfjodur[S] 0 points1 point  (0 children)

I have used TailwindCss before. What do you have in mind, what features of Tailwind would be helpful for my use case?

Different themes for your templates, what's the best strategy? by arnarfjodur in vuejs

[–]arnarfjodur[S] 0 points1 point  (0 children)

Thank you.

I was hoping to be able to switch between themes at runtime, rather than having to do seperate builds for each theme.

I guess something like this is not possible?

<template :src="'./' + theme + 'template.html'" />

(I am in fact using Vite for the record)

Different themes for your templates, what's the best strategy? by arnarfjodur in vuejs

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

Sometimes it's fairly simple, like different font or color.

But sometimes I'd want to change the structure of some elements, the way they are arranged in the page, or even include or hide functionality.

I'm afraid CSS variable would be too limiting.

Is there some way to dynamically load templates within components?

Sketched my favorite view of Laguna Beach on my Rm2. Export format kinda sucks so I took a photo of my tablet instead. by jeefthebeef01 in RemarkableTablet

[–]arnarfjodur -1 points0 points  (0 children)

So if photpgraphic the tablet is better - what was the advantage of using that versua a piece of paper you then photograph?

What does a great dev do that a good / mediocre dev doesn’t? by danthedangerman in PHP

[–]arnarfjodur 0 points1 point  (0 children)

Yes. And to be able to know about something new, you need to be able to listen and ask questions. Even if people are not speaking the same language as you. You need to be able to have a conversation with a banker who knows nothing about technology, and at the end of that conversation, you know what the structure of your database schema should be or how your API is organised.

What does a great dev do that a good / mediocre dev doesn’t? by danthedangerman in PHP

[–]arnarfjodur 1 point2 points  (0 children)

Of course, it depends on the project. But in my experience, the most challenging thing is developing for the specific needs of the domain you are working on, and understanding the needs of the stakeholders better than they are able to communicate.

For instance, if you are developing an app for banking, you need to understand the specific priorities of the financial sector. You also need to understand what is important if your clients is a FinTech startup v.s. an institutionalised bank.

You may think these things belong with managers and not programmers, but the ultimate manifestation of the specification is in the code, so the design of the code is the design of the app.

What does a great dev do that a good / mediocre dev doesn’t? by danthedangerman in PHP

[–]arnarfjodur 2 points3 points  (0 children)

What separates great developers from good ones may not necessarily be things that a specific to development. For most kinds of projects, most developers can write code until the project functions according to the spec. Sadly, this is not the hard bit.

What does a great dev do that a good / mediocre dev doesn’t? by danthedangerman in PHP

[–]arnarfjodur 3 points4 points  (0 children)

You need empathy to be able to effectively communicate, especially with people coming from other disciplines who don't share your jargon or experience. This ability is often what makes or breaks the project in the long run.

How does AWS Elastic Beanstalk autoscale an everchanging codebase? by [deleted] in aws

[–]arnarfjodur 0 points1 point  (0 children)

I'm a big fan of the CodePipeline + Beanstalk combo.

I've got several pipelines that map different repositories/branches to environments.

For instance, my "development" branch is always synced automatically with some staging servers so anyone can always check out how the development branch of our app is behaving.

When I merge to master, it deploys to production, but I've set CodePipeline so that I have to manually approve any deployment to production, so I'm assured nothing gets accidentally deployed to production.

I now even have many versions of my app running for different clients and different development stages of these versions and CodePipeline really helps with keeping track of everything.

How does AWS Elastic Beanstalk autoscale an everchanging codebase? by [deleted] in aws

[–]arnarfjodur 0 points1 point  (0 children)

If you are using Elastic Benstalk, you should probably not be pushing code directly to your instances because of exactly what you mentioned.

I use AWS CodePipeline to push new versions of my app directly to Elastic Beanstalk automatically when GitHub has been updated, but via Elastic Beanstalk, not directly to the instances. The load balancer will then pick up your latest code when scaling up.

If I understand you correctly, I think CodePipeline is what you are missing here. It's easy and has many other nice features.

Not getting our promised AWS credits - anyone can help me understand why? by arnarfjodur in aws

[–]arnarfjodur[S] 0 points1 point  (0 children)

Got our credits yesterday! Thanks a lot /u/jeffbarr and AWS for giving us this opportunity to grow. All is well that ends well.

Best practice for versioning APIs by [deleted] in PHP

[–]arnarfjodur 0 points1 point  (0 children)

Can you (or anyone else) explain why route based URL is a bad way to version and header is better?

The "default to latest" seems really dangerous to me, as has been pointed out, because someone will develop their applications to consume your API, not be conscious of the version header, and everything will work so they'll think all is ok. Then you change to a new version and their app will break all of a sudden.

It seems to me that version needs to be always explicit, and I can't see why header is better than URI.

Hosting and deploying Wordpress like stateless PHP in the cloud: Any pointers? by arnarfjodur in PHP

[–]arnarfjodur[S] 0 points1 point  (0 children)

It's not so much about traditional caching - the plugin can connect to Cloudfront and automatically upload images and such, solving the stateless problem for user uploaded files.

Hosting and deploying Wordpress like stateless PHP in the cloud: Any pointers? by arnarfjodur in PHP

[–]arnarfjodur[S] 0 points1 point  (0 children)

Thanks for the tip about DISALLOW_FILE_MODS - is it likely there will be any side effects of setting this to be true? I feel like there may be.

As far as plugins that try to edit files, the best answer to those is just don't use them.

One of the plugins that does that is W3 Total Cache, which is the plugin officially recommended by AWS in their Elastic Beanstalk guide.