Better HN
topnewbestaskshowjobs
Log inSign up

uk_programmer

144 karma · joined Feb 20, 2020 (6y ago) · 232 submissions

Submissions

comment 6y ago · link · parent

> Honest question, care to elaborate?

Many people may not think it is their place to speak. Some people may think they wouldn't be the best person to advocate. Others might think other people speak better about it. Other people might not be in a position to speak about it.

In the UK we have many people who claim to talk for the "working class" that as one of my friends put it "looked like they have never done a day of heavy lifting in their life". I wouldn't speak on behalf of the working class, I do a white collar job.

> From my perspective opting out means no change. And no change means structures stay the same. Therefore, they persist and are maintained with your (weak) approval.

Does it? Many structures fall in under their own weight, many organisation reform from within. You are assuming the world and people within them around doesn't ever change. There is a whole bunch of assumptions you are making. Sometimes the best thing you can do is to do nothing.

I used to cycle to work every day. That was more effective to get my coworkers cycling in than any amount of advocacy I may have done verbally. Just yourself being the change you want in the world is sometimes sufficient.

comment 6y ago · link · parent

> This is a reminder that opting out of controversy means tacit approval of the existing power structures.

No it doesn't. There are quite a few reasons why you might opt out of having a position of a controversial subject none of them mean you tacitly approve of the status quo.

comment 6y ago · link · parent

He didn't single them out. He mentioned actually mentioned drug addicts first (which are most likely English) and then the Romanian Gangstars. I would imagine they either stood out in his mind or he happened to be in the same wing of the prison. If I met a Romanian Gangstar it would definitely stand out in my mind.

Also labelling criminals from Romania as Romanian is simply a statement of fact. If they were Japanese Yakuza or Chinese Triads I would expect him to call them Japanese and Chinese respectively.

comment 6y ago · link · parent

What is racist about it? I don't see any racism in that statement.

He was simply stating that he was more comfortable around other white collar criminals.

comment 6y ago · link · parent

I might very well do that.Thanks

comment 6y ago · link · parent

Well to nitpick your nitpick. Internet Explorer did allow you to use vbscript to manipulate the DOM.

http://www.herongyang.com/VBScript/IE-Browser-DOM-API-Docume...

Also you can use XSLT to create a new DOM tree in a browser from an XML document.

http://www.informit.com/articles/article.aspx?p=24032&seqNum...

EDIT: I forgot about JScript vs JavaScript vs ECMAScript.

https://johnresig.com/blog/versions-of-javascript/

However much of this isn't relevant today.

comment 6y ago · link · parent

However there is still a "Prime Minister" which picks the cabinet.

comment 6y ago · link · parent

It maybe better. Realistically I am going to have to learn either Angular or React if I want contracts in the future.

Angular 4 was a lot better than Angular 2 as there were more docs available. One of my major frustrations at the time was that you couldn't just pull up an example of how to do something that I would imagine would be pretty common and you were scrounging around for blogs or things were behind a paywall.

comment 6y ago · link · parent

Is it? Because there is normally things like JSX, React Router, Redux and a lot of other stuff that you have to learn with it to build an application.

I've seen fairly decent backend developers having a right mare trying to get their head around just the npm tooling (no it isn't obvious if you haven't worked with it before).

People don't realise that there is a lot of the eco-system you have to learn just to do something fairly basic. You also have to unlearn things that you've done before elsewhere which itself can be difficult.

So I find this hard to believe.

Anyway this is going down the road of "why don't you use this it is easy?" which isn't the point I was originally making. I personally getting fed up of all the bloody tooling you have to learn to make something basic, when I can just ignore it and go back to basics.

comment 6y ago · link · parent

I've worked professionally with Angular 2 and 4 and it just a PITA. People either just end up using it like the JavaScript version of ASP.NET WebForms or you end up with one guy that really knows it inside out and nobody understand the code he has written.

It hides too much of what is going on for my liking and if you break something a lot of the time it is impossible to diagnose without slowly pulling the code apart.

With just plain old JS I can always crack open the debugger and I am sorted.

comment 6y ago · link · parent

The problem I have with many of the modern frameworks is the tutorials is extremely simple or they are far too advanced.

Also there is a lot of jargon around each frameworks. So a lot of the time, I just give up and go back to jQuery, Handlebars and event delegation as that does 90% of what I need.

comment 6y ago · link · parent

> still unsure i follow. i must be missing something... react does not prevent anyone from using jquery afaik. in fact, anyone can go ahead and use jquery with react if they want.

React / Angular JS etc tend to require spending a lot of time learning how it works first. Then you have to build almost all your application around it. This can take a lot of time, which pushed up costs and complexity. If you are building something like Google Docs or Google Maps you want to build it like a SPA. For a lot of the sites I've worked on in the past building it as a SPA was completely unnecessary.

> react is doing what php did a while ago (and is still doing). it's mixing frontend with backend stuff. i personally find it refreshing!

We've been trying to get away from that for quite a while. I try to write almost all my JavaScript in a way that assumes as little as possible about the page structure, the web application etc. It can be done, however it requires thinking about how your markup works and how the page works.

Generally you should have good separation between your markup, your styling and your scripts.

> we did that for a while then people came and told us how bad it was and we needed to do strict MVC or whatnot. now everybody is doing it and it's cool again!

The problem is that it is cool again. I don't want my backend code tied to my front end code.

comment 6y ago · link · parent

In the past most websites were Rendered HTML from a language such as PHP / Java / C# / Perl and then they had a small amount of JavaScript over the top for interactivity and client side form validation i.e. when you submitted a form a full postback to the server was made. jQuery bridged the browser compatibility problem that existed at time. So most sites were built using jQuery + Server side MVC framework + SQL Database. Overtime more and more logic was pushed onto the client side (mostly updates via AJAX) and eventually JavaScript MVC frameworks were written to deal with the extra complexity. Angular / React etc are just the latest incarnation of these.

However much of the JavaScript written on those sites was done by back end programmers who didn't really understand jQuery or JavaScript and thus you ended up with jQuery spagetti code which others have lamented about. However if you were proficient with JavaScript at the time you could use a few JavaScript patterns and keep everything fairly clean.

This architecture while dated works incredibly well (minus the jQuery spagetti) for quite a few web applications. This includes everything from shopping sites, bespoke CRUD apps, Forms etc. However it isn't cool, it doesn't look as good on your CV and you actually have to really understand what you are doing to keep it performant.

comment 6y ago · link · parent

Well I would argue that is because many of the developers writing those weren't really JavaScript developers. It is quite easy to keep things tidy if you just keep to some basic JavaScript patterns which aren't very different than some of the patterns promoted on the server side.

The problem is that JavaScript just isn't that well understood and this is partially because superficially it looks very similar to C# and Java.

comment 6y ago · link · parent

I agree. Most of my colleagues think I am quite a decent JavaScript programmer, but because I haven't got much commercial experience with React or Angular it is quite difficult to find a JavaScript role.

comment 6y ago · link · parent

> Just like how you can watch TV without a Netflix subscription, just not Netflix.

This is incorrect. You cannot watch or record broadcast TV of any sort without a TV license. That includes any channels on freeview (funded by ad-breaks) or any live TV from another service e.g. watch live TV through the internet (even on services that aren't the iPlayer).

From the TV licensing website:

> Live TV means any programme you watch or record as it’s being shown on TV or live on any online TV service. It’s not just live events like sport, news and music. It covers all programmes on any channel, including soaps, series, documentaries and even movies.

https://www.tvlicensing.co.uk/check-if-you-need-one

> It's equivalent to buying a ticket for a film as another example.

No it isn't. You have no choice in the matter. When I paid for the TV license I never watched the BBC's content but I still had to pay for the BBC's content.

e.g. If I were to pay for Sky TV I would still need to pay a TV license. I cannot opt out of paying the BBC. The only way to not pay the BBC is to use only online services or only use your TV for consoles / bluray / dvd.

comment 6y ago · link · parent

I shudder to think about the amount of man hours wasted on a relatively simple website that has been completely over-engineered with the likes of React and/or Angular JS when a simple server side MVC framework and a bit of jQuery could have sufficed.

The industry is rife with people that instead of looking at a problem and choosing the appropriate tech to solve the problem. They choose the technology and then try to solve a problem with it.

comment 6y ago · link · parent

> You mean that different people doing the same job earn a different salary? How is that even possible?

Do you mean the same job or the same job title?

Unless you are working in a job where it is very well defined what your responsibilities are different people even with the same job title might be doing very different work.

I have the same job title as the guy next to me and he can't write a lick of JavaScript and spends all day writing VB / C#. All I do is JavaScript pretty much. I am sure we are paid differently as my skills are less valuable to the business (I believe).

comment 6y ago · link · parent

You should notice that I qualified it with "very".

comment 6y ago · link · parent

This actually happens a lot in call centres. This is why I am very polite to those on the phones because I know they are likely to be working in a horrid office.

comment 6y ago · link · parent

IIRC it was originally to verify celebs real accounts. Then they said anyone with more than a certain number of followers and now it seems to be just a status symbol.

comment 6y ago · link · parent

There is a really good online emulator as well.

https://bbc.godbolt.org/

I had one of these when I was young and it pretty sport on with how I remember it.

1
45678