HNHacker News
TopNewBestAskShowJobs

mediascreen

405 karma · joined August 10, 2012

Swedish web developer currently based in Stockholm. I run the the multisite web analytics dashboard Analytics Portfolio (https://analyticsportfolio.com/)
submissionscomments
mediascreen··on VSCode, Dev Containers and Docker
I agree that the database (and things like uploaded images) can be a challenge. For WordPress we usually sync down from production, to staging, to testing, to local (while filtering out PII). For other projects is't usually easier using migrations and seeding.
mediascreen··on VSCode, Dev Containers and Docker
At the agency where I work we have about 40-50 somewhat active projects at any time. Any given week I work with maybe 3 to 10 of them.

It saves so much time to just pull down the repo, run "docker-compose up" and have everything running, almost exactly the way it's running in production. With the right node or php version, databases, Elasticsearch, Redis etc.

mediascreen··on Amazon Location Service
You don't even have to use Lamda@Edge, you can just forward them to your origin and use them there.

A client used an IP to country service until we realized that we already had the information they needed in the Cloudfront headers.

mediascreen··on Bootstrap 5 Beta 1
React Bootstrap seems really solid though:

https://react-bootstrap.github.io/

mediascreen··on EU pushes for 'right to disconnect' from work at home
Centralised "right to disconnect" regulation is what will protect workers from sweatshops?

I'm not saying there should be no labour regulations in EU, just that there is a lot of detailed regulation that is more appropriate to do on a national level where it can take local culture and priorities into account. And the fundamental EU principle of non discrimination based on nationality should ensure that for example a Rumanian worker in France has the same "right to disconnect" as a French worker.

I can't see why Swedes can't decide that they don't mind work emails during the weekend while Germans decide they want to have email free vacations.

mediascreen··on EU pushes for 'right to disconnect' from work at home
How does this affect freedom of movement of workers? Could we not have freedom of movement with slightly different laws in different countries? Does every little thing relating to the labour market need to be regulated centrally?

It's just one of those things that always goes in one direction. Central regulation is just piled on.

mediascreen··on EU pushes for 'right to disconnect' from work at home
One weird thing here in Sweden, is that you can take sick leave from your vacation. So if you get the flu during your vacation you can call in sick and not use your vacation days while you are sick. I have never heard of anyone doing this though and I would personally be too embarrassed to use the system in that way.
mediascreen··on EU pushes for 'right to disconnect' from work at home
As a European I hate these types of EU initiatives. Why not let member states decide on this themselves?

When Sweden voted to join the EU there was a lot of talk about the subsidiary principle[0], but it seems almost completely forgotten now.

I guess one could argue that it affects the internal labour market in some way, but so could pretty much any issue. I would love to see more members of the EU parliament vote against proposals like this, but I guess it's hard to be on record as saying no to something you might be in favour of - if raised on another level.

[0] "Specifically, it is the principle whereby the EU does not take action (except in the areas that fall within its exclusive competence), unless it is more effective than action taken at national, regional or local level." (https://eur-lex.europa.eu/summary/glossary/subsidiarity.html)

mediascreen··on PHP 8.0.0 beta 2
You should probably be looking at the core Laravel framework repository, not the "new project"-boilerplate.

https://github.com/laravel/framework/graphs/contributors

To me it seems like the ecosystem is growing rapidly. There are at least three large conferences each year, a handful of established podcasts and an excellent video tutorials site. There are also a number of paid services like Vapor for running Laravel on Lambda, Forge for easier server management and Laravel Shift for automatic version upgrades.

mediascreen··on Sweatpants Forever: How the Fashion Industry Collapsed
But compared to other types of clothes I find that they last a long time. I buy a new pair every year from Nudie Jeans for $140 and they last around four years (with the included free repairs). And when they are worn out you get 20% discount on new ones if you hand in your old pair.
mediascreen··on Forget Google, time to end the Visa-MasterCard duopoly
The big adoption driver in Sweden is the Amex SAS Eurobonus card which lets you collect air miles with the card. It's one of the few cards in Sweden that lets you "game" a points system slightly.
mediascreen··on Forget Google, time to end the Visa-MasterCard duopoly
I think it differs a great deal between countries in the EU. I'm Swedish and I have an Amex card and most of my friends and colleagues use Amex as well. I use it for about 85% of my spending each month. The only places in Stockholm that don't accept it are smaller coffee shops, restaurants that don't get that many tourists and mom and pop stores.

You could probably get by here with just an Amex card and cash, but I keep a backup card for the places that don't accept Amex.

mediascreen··on Advice to Young Web Developers
I think there are a few issues:

1. Site builders are still hard to use for most marketing staff, if the site should look professional and you need a few small integrations.

2. They don't mind paying for a solution where someone else does the work.

I guess it's hard for marketing departments to pick an appropriate agency and to know the consequences of the technical choices the agency makes. They generally evaluate based on design and then have a few requirements like: resonable performance and support for a handful of features in the backlog.

mediascreen··on Advice to Young Web Developers
I feel like all agencies should stay away from JavaScript frameworks unless they are willing to be open with their clients on how much time will go into maintaining the project.

My agency regularly take over older JavaScript projects - built in whatever JS-stack was trending at the moment. There are always big parts of the stack that are no longer available or in active development. Not to mention the enormous hassle it is to bring dependencies up to date for a JS-project that hasn't been updated in three years.

Depending on the circumstances we usually recommend moving it to a boring CMS like WordPress unless there are compelling reasons to double down on the JavaScript stack (if it really is more of a web application for example.)

mediascreen··on Man behind Sweden’s controversial virus strategy admits mistakes
Here is a simple and pretty unbiased video (made by and american expat) of everyday life during the epidemic in Sweden: https://www.youtube.com/watch?v=PI7nrqH_YnE
mediascreen··on Ask HN: What's your quarantine side project?
Trail Router is great! Tested it out for a few cities I know like Stockholm, Gothenburg, Las Palmas and Hanoi and it's really good.

The only thing I noticed is that it seems to prefer going next to water over anything else and have a slight tendency to take detours to run next to very small city parks. Running past a small city park for 50 meters might not be worth the detour.

mediascreen··on Lidl to Launch Rival to AWS
Doesn't that include anyone who has ever worked for AWS?
mediascreen··on Sweden’s Relaxed Approach to Covid-19 Isn’t Working
> Every week that goes by Sweden imposes more restrictions. Soon they will have as many restrictions as the rest of Europe.

That's not true. Can you name any new restrictions imposed the last few weeks?

mediascreen··on Rules of thumb for a 1x developer
I would say that PHP is pretty similar to Ruby and Python. It has a messier history and some inconsistent syntax that people like to complain about. On the other hand it has a huge community, a wide selection of web frameworks, a big set of useful built in functions and libraries, an ecosystem of useful services (for example around Symfony and Laravel) and excellent performance for a scripting language. Both the language and the ecosystem is still developing at a good pace.

In addition there are CMS:es like WordPress, Magento and Drupal with huge market shares that can be used for everything from small blogs where you to pick a theme and get a site up in minutes, to large e-commerce sites up to advanced headless backends for large publishing platforms.

It is declining in use, but the way I see it it's only because there are more alternatives nowadays, not because it's not a good option.

mediascreen··on Google will require proof of identity from all advertisers
Well, I'm not arguing for this system.

I suggested using corporate credit cards instead since there are already security mechanisms in place to handle those.

But it obviously require some form of trust in the entity you are interacting with.

mediascreen··on Google will require proof of identity from all advertisers
The announcement provides a short overview, there is a help page that describes the process in more detail [0]. It' only for american companies at this time, but I imagine that it won't get less complicated when it's rolled out for 180 countries with different corporate and legal systems...

The document states that you have to show that you are an authorized representative of the company. I am not that familiar with US law, but in many countries that means one of the signatories of the company, usually someone like the CEO or the CFO.

My point is that it makes sense that you are able to show that you have the right to act on the company's behalf in this matter. I just think that since the company trusts you with it's credit card and there already are systems in place to authorize expenditures, it would be logical to tie the proof that you represent the company to the card in this case.

[0] https://support.google.com/adspolicy/answer/9703665#700

mediascreen··on Google will require proof of identity from all advertisers
Every time I sign up for a service using our company card, with our company address and company email I feel like I'm pretty open about who the buyer is.

Wouldn't a some kind of certified bank card be an even better proof of corporate identity than a copy of someones ID?

IDs needs to be verified against articles of incorporation. For larger companies it will definitely be a hassle to get the CFO to submit their proof of identity for a purchase that is normally delegated way down in the organisation.

mediascreen··on Sweden Says Controversial Covid-19 Strategy Is Proving Effective
The article is almost three weeks old. The anonymous nurse predicts the imminent total collapse of the health care system where even the field hospitals will overflow and it's too late to do anything about it. This has clearly not happened.

The nurse goes on to blame deregulations and financial aid to banks and corporations. This seems more like the personal feeling of a rather leftist nurse published by a left of center tabloid.

I am sure there have been misinterpretations of the directives and there have probably been times where prioritizations have been done based on local and short term conditions. But it is not an active and commonly used policy.

mediascreen··on Swedish expert: why lockdowns are the wrong policy
I was not saying that. I was just disagreeing with the statement that Sweden is over its intensive care capacity.

On the other hand, as a Swede I feel that we ARE playing it pretty safe. Some of the measures other countries are taking seems extreme to me.

mediascreen··on Swedish expert: why lockdowns are the wrong policy
From what I read 13 less serious cases were placed in a field hospital at Sahlgrenska as a "trial run" to test the facilities, but since there is available room at in the actual hospital (and people complained) this has now stopped.

There is still available intensive care space at ordinary hospitals and it looks like the number of people needing intensive care has stabilized [1]. The latest numbers are 1072 total intensive care units (not counting field hospitals) and 528 people treated for covid-19 in intensive care [2].

[0] https://www.aftonbladet.se/nyheter/a/MRrGxK/patientstopp-pa-...

[1] https://portal.icuregswe.org/siri/report/corona.covid-daglig...

[2] https://www.socialstyrelsen.se/coronavirus-covid-19/socialst...

mediascreen··on AWS Chatbot: ChatOps for AWS
I've been waiting for something like this. But now that it's here it seems a bit complicated to automate the setup if you have lots of accounts.

I'll probably just go with an API Gateway proxy for the SNS webhooks in one account and add the webhook setup for the other accounts to their Cloudformation templates.

mediascreen··on A Secret Weapon for Startups – Functional Programming?
I think lots of startups are prone to something similar to the "second version" problem.

They bring in a really good senior developer as a CTO. This person finally has the chance to set their mark and for once build the perfect setup, no legacy systems to take into consideration, no outdated corporate directives limiting languages or architecture. This time it's going to be perfect.

Other aspects tend to be forgotten:

- The startup might not require a very sophisticated tech stack. Most of what needs to be built might be lots of html forms, user handling and a few other thing that can be done in any language.

- They and up with a pretty advanced stack of best-for-the-job tools and languages that forces the company to compete with lots of other trendy startup for a very small pool of highly paid highly qualified developers.

- Some tooling and functionality might have to be built from scratch compared to more widespread languages.

A healthy question to ask before picking a more specialized stack is "What do we really gain compared to building this on Ruby/Rails, Django/Phython or Symfony/PHP?"

mediascreen··on Static web – back to the roots?
Well, you have just built a custom theme to support the data from Netlify. I guess you could just as well have built a custom theme for Wordpress to avoid being stuck with an unsupported theme.
mediascreen··on 500 days of Duolingo: What you can and can’t learn from a language app
> Unless you frequently travel somewhere where another language is spoken, have family that speaks another language, or want to travel places like that [...]

As someone who has studied a handfull of languages and have no talent for language learning I would agree. If you have no connection to the language and no desire to travel to a place where it's spoken, it would be like any other hobby. But if you want to get to know a culture in depth or work in another country it's pretty much mandatory.

mediascreen··on Spotify Saved the Music Industry (But Not Necessarily Musicians)
I think there is a difference between collectors and people who just want to listen to music. I gladly pay Spotify each month to NOT have to manage a collection of physical or digital music.

I gladly pay HBO and Netflix as well, but it seems no matter what I pay, I cant get the same movie/series coverage that Spotify provides for music.

← PreviousPage 3 of 6Next →