HNHacker News
TopNewBestAskShowJobs

uk_programmer

144 karma · joined February 20, 2020

submissionscomments
uk_programmer··on A review of Thomas Piketty’s “Capital and Ideology”
Maybe. But if it wasn't deemed valuable than it wouldn't matter how much it costs to mine.

Oil in some regions of the world literally seeps out of the ground (known as petroleum seep) and until the 19th century it wasn't really deemed to be something of value.

uk_programmer··on A review of Thomas Piketty’s “Capital and Ideology”
Not at all. The cost of producing something is different from its market value.

Recently because of panic buying of loo roll, there wasn't any loo roll available in the UK. On Amazon for a 12 pack of decent quality loo roll was selling at 4 times the price of what it would be normally and they became sold out.

You can lament about the ridiculous panic buying. However demand outstripped supply and the price reflected this. In normal circumstances they wouldn't have sold for these prices and people would have had to sell at the regular price.

uk_programmer··on A review of Thomas Piketty’s “Capital and Ideology”
> you're making the normative and tautological argument that values are what they are because that's what (you think) they should be, not that there is any intrinsic reason for value to be defined only by a market. markets are great theoretical constructs, but real-world markets don't behave the way we always envision they ought to. they're subject to all sorts of external forces.

It isn't about what I think. When people make purchases they will typically try to buy as cheaply as possible. If someone is looking to make a purchase they will typically go to whoever is offering it cheapest, if other people want to compete they will either have to offer it at the same price or cheaper.

Are you claiming this isn't true? Because I have witnessed it with my own eyes. I used to work in a Petrol Station we were ones of the cheapest places around and we had a lot of custom.

Other places that were more expensive were empty at the same time on the same days because they were more expensive. There is of course exceptions to this (Head and Shoulders Shampoo being the classic example) but they are outliers.

The same with a labour market. The market rate for a C# programmer is approximately £350-450 a day in the UK. More specialist development roles pay more e.g. Angular JS developers which are typically £500-750 a day (the last time I looked). There is less Angular JS developers that are available (low supply) so to attract talent companies that wish to hire need to raise the rate. However C# developers in the UK are much more common (higher supply) so companies won't pay those high prices.

Are you telling me this isn't happening? Because you can go to total jobs yourself and put C# developer Manchester and you will see difference in market rate yourself.

> beyond market settling times, what the delta between labor value and market value very likely indicates is some sort of mispricing in the market, often due to some external, malign manipulation (i.e., an application of force, or power). efficient markets should tend toward the labor value of production, that is, profits are minimized to that of idiosyncratic risk (like pandemics).

Not true. You are making several assumptions:

1) That there is abundance of said product (high supply).

2) People are wanting or needing to make a purchase.

3) That there isn't other competitors which have improved their processes or paying their employees less.

Number 2 being the most important IMO as everything else is normally equal. If nobody wants to buy it at the cost (or higher) you will be selling it at a loss.

uk_programmer··on A review of Thomas Piketty’s “Capital and Ideology”
The labour theory of value is easily discredited. The market determines the value i.e. what people are willing to pay for something.

The labour theory of value is simply describing the cost of producing something. Whether people are willing to buy it as that price (which would be same as selling it at cost) is an entirely different matter.

uk_programmer··on Chrome phasing out support for User-Agent
It is rarely an options. Additionally defects are introduced into features that have been supported for quite a while.
uk_programmer··on Chrome phasing out support for User-Agent
The problem is that without User Agent sniffing in some circumstances there is no other way of working round a browser bug e.g. There are cases where browsers will report that it supports such feature using one of the feature checks but the implementation is garbage. The only way is to have a work around based on user-agent sniffing.

Sure a lot of developers abuse the feature but I fear this might create another set of problems.

uk_programmer··on Proposed bounty for adding virtual camera / microphone support natively to OBS
The going rate for a developer is about £300-600 a day in North Europe for relatively common skillsets such as C#. It isn't just silicon valley.

The $10,000 bounty is about right for this sort of work. In fact it might be a little low, but I have no idea how OBS works internally so I could be completely wrong.

uk_programmer··on How I became a better programmer (2017)
Some of it this was spot on, especially doing research. Very rarely you will be doing something completely novel and it always good to look at how other people have solved a problem.

However the old "Learn C" and "Write a compiler" which are within meme territory tbh. It is more important generally to understand what a particular in whatever language you are using to know what the compiler / interpreter / run-time is doing under the hood as most developers will be working with a high level language.

I've seen a lot of "how to improve as a programmer" articles and IMO what seems to be left out is learning how to do things as simply as possible. Many of the software systems I've worked on is so over-engineered, many simple websites are huge both client and server side and they usually don't warrant it.

uk_programmer··on Don't use markdown for documentation (2018)
Most of these reasons why Markdown Fails are weak at best.

The 5th reason especially You can convert markdown into other formats such as PDF, Word, Media WIKI etc using pandoc (I am sure there are other programs). It is trivial to write a shell script or similar to convert markdown files into another format.

> After that, it is hard to migrate to another tool, as custom-defined HTML classes and flavor's features won't work outside the current set of tools and page designs.

That contradicts his Lack of Extensibility. Typically anything custom you do outside what is supported officially by the tools maintainer is your own lookout.

Markdown is a like a lot of things that succeed. It is good enough to produce well formatted documentation to be read by a client and simple enough for people to learn it relatively quickly without headaches.

uk_programmer··on Margin considered harmful
> For example, it feels nice to define margin or padding on a <p> element, but what does that mean - distance between two paragraphs? Between paragraph and heading? Between paragraph and bulleted list? Using spacers seems like the only way out of this madness.

I don't want to be rude but you are completely misunderstanding what CSS and HTML are supposed to do.

1) The <p> tag denotes that the content in the element is a paragraph in the document.

2) The styling is just tell the client (which is typically a browser) how the element is supposed to be styled. It isn't supposed to mean anything in relation to other elements and it isn't supposed to convey meaning.

Generally wherever possible you should try to separate the markup and its styling. You can't always do that, but you should try to.

uk_programmer··on Someone Is Stealing Tracker Songs and Selling Them
There is a great video on youtube that explains how it all works.

https://www.youtube.com/watch?v=i9MXYZh1jcs

He gets into the explanation of how the tracker software works about 8min 30seconds in.

Typically though if you got a cracked game at that time it would have the crackers group name and there would be a little graphical demo and some tracker music.

uk_programmer··on The chronic suffering of the VB.NET community
I think I've written some CSV parsers until I thought to myself "I can't believe they don't have this in .NET".
uk_programmer··on Opera GX – Gaming Browser
For my office I bought two "gaming" monitors because they were cheaper than the equivalent "professional" monitor. The panels were exactly the same. However my accountant raised it when I put it on expenses it just because it had the word "gaming" in the title.
uk_programmer··on CSS Zen Garden
Kind of and kind of doesn’t. I am saying you should call stuff what it is. So a larger component maybe (this comment text box for example) the styling that belongs to that should all be grouped logically together. The easiest way to do this is have a element with a class attached called comment text box.

Bootstrap does this on some components but it has loads of positional bits and pieces mixed. Also the components are fairly generic.

uk_programmer··on CSS Zen Garden
What you are talking about is the still part of the document and the document structure. Generally where writing something you will have a beginning, a middle and and end of a document. You will have parts of a document that will have lists, tables etc. These are structural elements. You can look at the markup itself (if done semantically) and you will be able to ascertain its meaning.

Yes a table will need to have the correct elements in the right order. This isn’t presentational it is semantic.

HTML5 does this better than HTML 4 as it has more semantic elements as a response to the more complicated layouts of modern web pages.

uk_programmer··on CSS Zen Garden
At the time CSS wasn't as feature rich as it was today. The problem was a lot of the time the designs didn't respect the medium at all. There were even designs that were impossible. The technology was being pushed to do stuff it wasn't really supposed to do.

You are complaining about the wrong thing.

> Despite the popular claim to the contrary, HTML was always part of the presentation layer.

Not at all. It is document format. Designs that do not respect that doesn't change it's intrinsic nature.

This is like complaining that a shoe isn't a very good mallet.

uk_programmer··on Things you can do with a browser in 2020
I believe Brave has them disabled by default or an option for it. It is a shame a good feature has been abused, but yes you are right it is to be expected.
uk_programmer··on CSS Zen Garden
Not at least with HTML 4 and XHTML. HTML didn't harbour presentation information. It told the browser the structure of the document.

If you look at other document writing system such as LaTeX. You will see that there are Sections, SubSections etc.

The link to the CSS simply told the browser how these should be presented. LaTeX has something similar as you can create a document class and Word has different styles you can import.

Having a concept of a document structure with a set of styles attached which you can change easily is a good idea.

The HTML document should make sense without a style sheet and if you write/generate semantic markup it does work properly.

uk_programmer··on Things you can do with a browser in 2020
This is a great list some of these APIs look pretty interesting and didn't know about them this is a great list.

Push notifications are becoming an irritation mainly because of their overuse. The number of sites where you go to them to have a look at one piece of information and you have to tell them no to push notifications is becoming quite an annoyance.

uk_programmer··on CSS Zen Garden
If you call things what they are it works out better e.g. a class for a call to action class="btn-cta". Want a large call to action button class="btn-cta btn-large" or similar.

I really should write something on forgotten simpler CSS / JavaScript techniques.

uk_programmer··on CSS Zen Garden
I've heard all this before. I am extremely sceptical and tbh I wouldn't want to build a site this way at all.

It goes against what CSS was supposed to do and generally the results are IMO hard to work with because you have the overhead of having to learn how the framework works rather than just using the fundamental principles of what you are working with. Also the markup is horrendous to read.

With modern CSS you are given so much control. Your style-sheets aren't complicated anyway.

uk_programmer··on CSS Zen Garden
I really like CSS Zen Garden and it had a profound impact of how I think about front-end work. I see a lot of back-end developers trying to force the markup and their styling to conform to what they want.

If you understand how the document flows, separate your CSS from your markup, write clean and valid markup and keep everything as minimal as possible. There is really a "zen" like element to it which I think is kinda lost today.

However when it comes to code I am a minimalist and tend to do as much as possible with Vanilla JS.

uk_programmer··on CSS Zen Garden
> It's not necessarily a good idea to completely separate what things are and how things look. It indeed makes easier to do a complete redesign, but how often does it happen? And if it does happens, what are the chances that it actually won't require markup changes?

If the markup is done properly in the first place. It is incredibly easy to restyle and you typically don't to rework much markup. It just ends up working.

> but it allows much much faster development, less spaghetti styling, less cross-browser concerns and less code all around.

I have seen no evidence of this in practice. This is only true if you design is basically a skin of these frameworks. If you have anything remotely custom you end up overriding so much you might have well just started with a normalise/reset style-sheet. So for some internal application that never seen on the outside, you can use bootstrap and slap something together quick sure. However if you are actually building something with a unique it just doesn't really work.

If you think about what you are doing instead of just jumping in and coding. You can break stuff down properly without the need for hundreds of classes that typically come with these CSS frameworks. You do end up with clean CSS and the markup is clean and you do have less code.

By doing things properly i.e. you markup and css is correct. You have less cross browser bugs. I end up in my current being asked by a coworker to pick up IE bugs (yes we still support IE9 upwards). Only 10% of the fixes are actually problems with IE. 90% of the problems are correcting the markup (making it valid) and cleaning up the CSS and it just works cross browser. Sure you will have to work around things like you don't have flexbox and other niceties and you have to use an alternative style-sheet. But fixing the markup normally gets it from "not rendering properly at all" to "rendering only slightly wrong".

uk_programmer··on The reckless, infinite scope of web browsers
JavaScript is getting simpler in a lot of ways. Things that are confusing to developers of others languages e.g. function scope can be avoided by telling people to use let instead.

Also a lot of the things I wanted 5-10 years ago that I had to work around are now being included. For example there is a decent-ish http request API.

I don't like web assembly. I think it is actually worse in a lot of ways than the huge JS frameworks that people think that it will replace.

uk_programmer··on The chronic suffering of the VB.NET community
A little known secret is that in the VB namespace in .NET full fat, there is a really nice CSV file reader/writer.

https://coding.abel.nu/2012/06/built-in-net-csv-parser/

uk_programmer··on Mac mini
I really don't understand the fascination with Mac OS. I have two macs and tbh it feels like a polished Linux distro that doesn't run that well after a few OS versions (my 2015 Macbook Pro is so slow it is useless now and I've bought a Thinkpad).

Though I will admit that I typically Brave, Brew, VSCode / Visual Studio and iTerm. It might be me just and not getting any of the real benefit, but I tend to use Windows and Linux just a shell.

uk_programmer··on The chronic suffering of the VB.NET community
VB gets a lot of hate. But the language is perfectly fine for the most part. One of the most annoying things about VB.NET is that projects need to be configured with certain options out of the box otherwise it allows you to write some very sloppy code.

I still use VB.NET for creating quick tooling for either myself or non-technical users. There doesn't appear to be anything else really these days for doing that. The newer options from Microsoft tend to enforce a lot of patterns, which just slow you down, when for small tools you don't really require all that guff.

I hope with an open source .NET compiler it will be possible VB.NET to carry on well beyond Microsoft's culling.

uk_programmer··on Please consider not adopting Google WebComponents
Have you got any stats to back that up? I've been playing around with it and there is nothing from the profiler in Chrome or Firefox that suggests it might be slow.
uk_programmer··on Facebook contractors and subcontractors will not receive $1000 bonus
What do they mean by a contractor? Do they mean Software Engineering contractors or do they mean zero hour contractors which are typically not paid particularly well.

I am a .NET contractor/consultant at a similarly large corporation (just finishing a contract now). I wouldn't expect a penny from the corporation. It just how it goes.

uk_programmer··on NsCDE: Not So Common Desktop Environment
I did the same with a Sun Blade 150 (gave it to a friend). They are pretty expensive to pick up now. Solaris 8 (maybe 9) was on there and I think I ended up running on of the BSDs on there. The machine wasn't fast (not compared to an Athlon XP 2500+) but it was a nice unique unix workstation that ran solidly.
← PreviousPage 4 of 8Next →