Better HN
topnewbestaskshowjobs
Log inSign up

sharpercoder

917 karma · joined Nov 17, 2014 (12y ago) · 333 submissions

rtimon@gmail.com
Submissions

comment 8y ago · link · parent

But most commandline languages are inconsistent, have inconsistent abbreviations, have inconsistent command parameter naming/defaults, contain acronyms of incomprehensible words, have plain weird names, contain inconsistent or outright incorrect documentation...

A language to do stuff is actually a great thiing, especially if it can produce readable and reproducable objects (programs). However, I get really scared looking to most commandline scripts. It's an incomprehensible mess people only can start to grok after years of experience with the particualr commandline tool.

comment 8y ago · link · parent

I hate non-discoverable UI's. The first thing I do with any software, is click through all possible menu's, windows, ribbons, whatever. After some time, I usually get quite a grasp on what the software is capable of. The two notable exceptions are textbased UI's (terminals, dsls, ...) and softwar requiring domain specific knowledge (e.g. geomodeling software, specific 3D modeling software, ...).

I never understood the appeal for terminals. Often (Microsoft's Powershell is a notable exception) the syntax is full of incomprehensible abbreviations, the syntax is wildly inconsistent, the syntax contains hard to remember acronyms...

No, for me, terminals and most textbased interfaces will never be as usable as GUIs.

comment 8y ago · link · parent

Fun story. I bought a very fuel efficient diesel car (build: 2001) 3 years ago. It does 94 mpg or 1L per 30KM. Since then, many cities in my country decided to introduce "pollution zones", banning diesels of 2000 and older. My old home city decided to go one step further and ban diesels of 2004 and older. When I visit family and friends, I actually have to actively route around it. Which is ironic, since my car is more fuel efficient then most cars currently produced. But I guess the NOx exhaust also matters (which is much higher with diesels).

To be frank, it surprises me that I can go around in my car still at all. Burning diesel to move people should be banned by now, especially with the market flooding with EVs.

comment 8y ago · link · parent

I personally think we should make a plentyfold of datastructures respresenting strings. Sure, I want a geenric fits-all structure to represent text as provided in many libraries and frameworks, such as .NET's String class. However, I have many situations where using that same String class is pure overkill and prone to security bugs. For instance, I want a DigitsOnlyString, representing only the numbers [0-9]. But I also want a NumbersOnlyString, representing the digits [0-9] but also all other number characters there are in Unicode. The same for e.g. emoji's, latin characters ([azAZ]), extended latin ([azAZ], plus a subset of diacritics) Chinese characters, and I can go on for quite some more examples (Password anyone? Don't allow a lot of Unicode edgecases). These classes will have the benefit of really efficient encoding in bits, being more secure, more clarity to programmers and most important of all clear reasoning. I bet 80% of String uses can be moved to a more constrained type.

comment 8y ago · link · parent

As a lead developer, I frown upon every instance of regex used. If it's shorter then, say, 20 characters, it may be allowed. Longer then that will result in a negative advice and binding advice to refactor. You implement a language lexer & parser, or use plain string functions.

comment 8y ago · link · parent

I have now spent a few minutes on the website. I'm confused on to what robot it is offering? And what utility that robot then offers? In the video I see multiple robots. I don't see the robot actually offering any value. I'd love to spend money on a robot, but I have no idea why I would spend money on this thing (things?)

comment 8y ago · link · parent

In which the cyclist is at fault, as the minivan is on the intersection before the cyclist and thus has right of way. Right of way only counts when arriving at the same time, often neglected in analysis.

comment 8y ago · link · parent

https://products.office.com/en-us/microsoft-whiteboard/digit... ?

comment 8y ago · link · parent

I bought a Surface3 specifically to write notes and draw with OneNote. OneNote has its own big problems, and I would love to spend a good amount of moneyfor software that gets writing, write recognition and draw recognition right. To document software, I draw diagrams a lot. It would be great when a lowlevel api would be exposed to recognize specific types of diagrams (e.g. sequence, class, ...).

comment 8y ago · link · parent

Cities should have separated ways for power-to-6Km/h speed differences.

Pedestrian: 6KM/h bicycle: 18KM/h City scooters: 24 KM/h Fast city scooters: 42 KM/h Cars: 48 KM/h (50KM)

Unsure if 12, 30 and 36 must get a new category. For 12, niche electric vehicles usually are around that speed (e.g. mobility scooters, electric toys)

comment 8y ago · link · parent

Would it be possible to write a compiler from Java to Rust? C# to rust? The goal then would be to get fast(er) execution times.

comment 8y ago · link · parent

Countries within nation states are not uncommon. For example, the Kingdom of The Netherlands consists of multiple countries: The Netherlands, Curacao, Sint Maarten and Aruba. The same can be said for example for the United Kingdom.

comment 8y ago · link · parent

Outsourcing stuff usually hurts in the longer term as company knowledge is not build up within the company itself. For many parts this is crucial in a car, for other parts it has no effect.

comment 8y ago · link · parent

What I miss is actual functionality that makes my life better as a user. I totally agree on all points made, but it is not going get me a better mapping experience in any way. For me to consider OSM, I need most features that are as good and some that are better. I don't like to say it, but OSM does not (yet?) offer this.

comment 8y ago · link · parent

Make it work, make it good, make it fast.

comment 8y ago · link · parent

What happens when you request a loan? What happens when you apply for a job that involves kids, or requires trust? These are societal controls. China did not develop these the past centuries as much as the western world did, or they got destroyed in communist uprisings (e.g. Mao).

My parent comment is neutral, I'm only stating some facts and conclusions. I agree you need innovation, creativity and critical thinking to make a more diverse society. Success however is in the eye of the beholder; it's mostly a matter of what measure you use. Growth is not a panacea, while many western thinking seems it is. Neither is "amount of societal order", as China seems to think.

comment 8y ago · link · parent

I understand that most western countries have societal controls grown over the past centuries. The Chinese did not, and are catching up quickly by implementing similar controls as we have. But now, it's the digital age, and as such they are using any available technology to implement these societal controls. From this perspective, it's completely normal what the Chinese do. Seen from western eyes it does look a bit scary though. We must realize however that our society also has firm societal controls setup in many things we do.

China is now the dominant world player, this year it has surpassed the US on many areas (IT and military-industrial complex are the only US-dominant areas). Much more importantly, China is full-throttle developing it's trading strategy: The silk railway to Europe, trade dominance in Africa, footholds in Greece, Poland and other EU countries, large export deficit to the US. It won't be long before China will totally dominate trading in the world market. At that point, China can set the requirements. When that happens, traders are likely to need a WeChat account, too. No good rep? No trade.

comment 8y ago · link · parent

This bike trailer of my sister was with all that. My 3 year old niece managed to rip apart a cover and stuck her hands outside. The bike rode near some poles, causing potential hurt. My 4 year old nephew in the same trailer was close in "trying out what happened if I stick my finger there" (the wheel). I had to make a yell to impress him enough to stop. Luckily, I was cycling behind.

Likewise, if your kid gets acute illness (throwing up, dizzy, etc), you're not going to notice it right away.

I would go as far as outright banning these things for transport of living beings, with hefty fines for it. Please stop selling these things for living being transport, you will make the world a better place and have better margins on cargobikes.

comment 8y ago · link · parent

A bike trailer has the dangerous property of not being in your peripheral vision. I personally would never transport kids in a bike trailer; I have seen my sister (her daughters) get into hurtful situations and potentially dangerous situations. Whenever you can spend more for a front-load cargobike, I would highly advise to do so.

comment 8y ago · link · parent

Sorry to say this, but the US has bigger systemic problems to fix. Voting is a small one compared to the 2-party system. The US always boasts about how it is so democratic; while in reality there isn't much democracy. In fact, the 2-party system looks suspiciously a lot on the 1-party system in existence in many other countries. Sure, you have a choice, but what value is that choice?

comment 8y ago · link · parent

https://en.wikipedia.org/wiki/Swatch_Internet_Time

comment 8y ago · link · parent

I would highly recommend against this setup. While Vue is already very challenging to get right with any build tool, it's especially terrible regarding typescript and much more so with typescript decorators. You need to enable hardly documented configuration switches in multiple dependencies. Then, you must wrestle through a plethora of error messages coming from a diverse set of build tools/libraries/scripts. After you've done that, the only options is praying to the gods a config will work.

I have worked with multiple Vue projects now. The time is spent about 50/50 in pure development and getting the build setup working correctly.

Better pick another tool to do the job which has mature integration with build tools.

comment 8y ago · link · parent

One particular weak point of Vue is it's dependency on build tools. I spend a few days buiding a great app, and then another few days on getting the build apps configured right with Vue. You google from one error message to another, where each message is unclear and no relation to any build tool/plugin/library/script is made.

I really like Vue for the many great strong points it offers. But I'm equally ready to completely ditch Vue for its complete and utter garbage with respect to build/debug configuration.

comment 8y ago · link · parent

you confuse sales with UX.

comment 8y ago · link · parent

I have done quite some implementations now of things in an immutable way. Easy to test, easy to spot bugs, easy to work with. Come back a few months later, and purity is removed on many things despite clear comments on the why it is immutable.

I welcome any effort to make developers aware of immutability.

One simple thing to help here is to have the "mutability: flag marked on every method in MDN.

comment 8y ago · link · parent

Most likely, D3 should design a dsl that compiles to d3. This language should cover 80% of the usecases and vastly improve the debugging experience.

comment 8y ago · link · parent

Optional is a typical feature that should be baked into the syntax. If used properly, it will be used throughout codebases, and when it is used, it adds simple, replaceable syntax.

88.

JSettle.rs, an html5 implementation of a popular boardgame(jsettle.rs ↗)

3 points · by sharpercoder · 8y ago · discuss

comment 8y ago · link · parent

There is currently no non-niche application for cryptocurrency. Until the time that arrives, they are probably right.
12345
12