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

> This particular case - finding and replacing certain characters with other characters - is pretty well-suited to the problem, and is probably more readable than a bunch of open code to do the same thing.

No, it is not a good solution to the problem; you ignore my earlier comments. English or latin text is not comprised of the sole ASCII characterset; it contains characters outside this set (quoting other languages, names, imported words for example).

comment 8y ago · link · parent

* RegEx opens your application up for DoS attacks

* RegEx is not very readable

* RegEx can be (very) slow

* It's not trivial to write RegEx code that achieves your goal in a high-quality way. Often quircks and edge-cases are missed.

I'm not saying that you should never use them, but oftentimes a (much) better alternative of achieving your goals is present.

See https://blog.codinghorror.com/regular-expressions-now-you-ha...

comment 8y ago · link · parent

Using RegEx is generally frowned upon; RegEx is a bad language to write anything in apart from prototypes. Furthermore, this will not work for most text as even US English text contains special characters. Think paraphrasing other languages, names and imported words.

comment 8y ago · link · parent

I wish content suppliers would listen more to clients. Clients want more content without ads, so why not invest more into offering content without ads?

comment 8y ago · link · parent

I really hope a service will be created where I can pay for adfree content internetwide.

comment 8y ago · link · parent

Not all drug addicts commit crimes. There is certainly a place in society for people who fill their void(s) by using drugs. You do need to be careful though, not all addicts are crimeless.

comment 8y ago · link · parent

But costs can go above a certain absolute threshold. In this example, the cost may be a human life, which is unacceptable.

comment 8y ago · link · parent

> how awesome it would be to have cameras in (almost) all rooms in my house

Why?

comment 8y ago · link · parent

Though this deeply touched me, I do wonder what possible motivation is behind this for the Myanmar people. Hatred most likely number one, yet I wonder what lies beneath this.

comment 8y ago · link · parent

Delivering ad-free content is potentially a billion-dollar business. I'd be happy to pay a flat fee and read articles online, watch TV, movies, documentaries et cetera ad-free. Off course, some content services offer this. The problem is twofold: "new" services I discover still give me ads, and I need to subscribe to many services to get ad-free content.

I much rather have one service I pay to resulting in many content providers allowing me to consume ad-free content.

comment 8y ago · link · parent

This is my top one as well. Most intelligence is slow yet can be outsourced to a (on premise) cloud. I find it quite strange that in 2017, there is no universal API to delegate code analysis computation onto distributed nodes. Language servers are a good step, yet this concept should be expanded to (macro) code analysis, automated code reviews, memory leak detection, (unit|integration) tests, large scale refactorings, builds, deployments, basically anything a modern IDE does.

Some of above is already there, but they are separate products which don't integrate well. For example: You can find a distributed build environment for .NET & Java. This also runs test, so there is some level of integration. However, I'd also like workflows like refactor-build-test-analyze-fix-refactor until satisfactory.

comment 8y ago · link · parent

I was in Valencia (Spain) a few weeks back. This city is one of the most ideal cities I have been to for cycling; flat, perfect climate, riverbed running right through the middle of the city, spacious roads and high density. One of the inhabitants told me they dedicated cycling lanes a year back or so. That was visible: They had painted bicycle lanes right over roads & pedestrian areas. I guess when the Valencian people start to see how much fun cycling ones life makes, Valencia will become the cycling capital of the world soon enough.

Berlin has quite some traits for a good cycling city as well. A flat geography really helps here, along with a willing population.

comment 8y ago · link · parent

Google maps is improving since the day I first saw it - that must have been around 2003 or so. The improvement on the data is phenomenal if you look at it over then past 10+ years; The amount of times I blindly trust GM to go somewhere increase every year. I suspect the edgecases will be solved slowly, like navigating to a shop inside a mall, a market stall, an ad-hoc gathering, a planned building, et cetera.

Typing in an address, going there by directions, verifying the building front without extra time needed for travel is truly magic.

comment 8y ago · link · parent

Even if they succeed in building a Tesla worthy competitor, there is still the huge issue of battery production. Tesla will lead the coming years not for its nice car implementation but rather its production capacity of cheap high quality batteries. I wonder how China will bring that production capacity.

comment 8y ago · link · parent

Are there structural problems with this approach or is it mainly because of immaturity? Usually version 3 of most software is mature enough to judge it by its merits.

comment 8y ago · link · parent

This is a really great comment that aligns with most of my experience. Asking feedback is step 1, where you get information and setup social dialogue and reciprocation. Step 2 is to find why you get that feedback, distilling underlaying motivations or reasons why. Sometimes it's not there, and customers really do want a faster horse. But often times, customers want better horses in ways they can't imgine. They just feed you back the limitations of horses. Step 3 is to verify your true understanding of the feedback using prototypes. "This metal horse is just as fast, but can handle 10 times the forces on the field. Can you try and check if this is what you meant with a faster horse?"

comment 8y ago · link · parent

Something has gone very wrong at the GE board. They invested $10B+ in 2015 in the power business, which they now axe. They just took over Baker Hughes (last June), which they now want to get rid of.

comment 8y ago · link · parent

The Netherlands.

comment 9y ago · link · parent

We have the best road system in the world with high quality roads over the whole country. Most roads are "rain-resistant", meaning heavy rainfall does not affect road conditions negatively. We don't have any toll roads.

We do pay a relatively high tax for it though. The article is spot on that tolls are the consequence of public not willing to increase their taxes.

comment 9y ago · link · parent

Gravel is only permeable with permeable undersurface. This is usually not the case, because non-permeable plastics are used to prevent weed from growing in gravel area.

comment 9y ago · link · parent

And also a the term "tegel-tax" (tile-tax) is introduced. The idea is to tax real estate based on the amount of non-permeable surface it has. More non-permeable surface resulting in a higher tax bill. Satellite & plane imaging combined with computational analysis would enable enforcement.

comment 9y ago · link · parent

Is this country-wide or only at limited areas?

comment 9y ago · link · parent

> For one, taking credit for something they have not delivered.

I don't read it in that statement. I read it as a factual representation of the current state of the internet in India. Why do you interpret this as "taking credit"?

comment 9y ago · link · parent

> Even the bike-sharing craze that's drawn so much attention in the West has exploded largely because of China's unique environment. Lower-income Chinese have gravitated toward the super-cheap services in order to solve the so-called last-mile problem, getting to and from public transport nodes. The technology didn't emerge first in the West partly because consumers -- even in bike-crazy Holland -- haven't really needed such a cost-effective solution.

This is a misconception. Holland has the earliest (2003) and most popular bike-sharing service offered by the NS (National Railways).

comment 9y ago · link · parent

I'm a developer of an online board game implementation. Before starting out, I consulted any library, platform and framework available to minimize implementation effort.

Vassal was also on the list to checkout. Various items made it clear Vassal was no fit (for me at least): 1) No web interface available 2) Lead developer who seemed to worry about inexplicable technical issues 3) non-existing usability 4) board game logic must be shoehorned into a generic framework, where I want to expose a boardgame specific API.

I ultimately decided to write it from scratch.

comment 9y ago · link · parent

A great story. What I do not understand (I am a European) is that he uses a credit card, but not a credit card. I just did an AirBnB and I was prohibited by the system to use my debit card. I was outraged. I still am. I had to buy a separate debit-credit-card to be able to use AirBnB services. AirBnB supports iDeal (Dutch payment system), but only for bookings >6 days.

From my point of view, using a debit card is far superior to using a credit card. Why would I want to debt myself to pay stuff? I have enough on my account to pay for a mere AirBnB. I don't want to indebt myself. yet, there is a system which forces me to.

comment 9y ago · link · parent

Exactly my point. They can design an electric car just fine, they can produce an electric car sans battery just fine, they can sell them just fine.

They can't setup scale-up battery production sites within years. That's why serious competition from traditional car manufacturers won't happen anytime before 2022.

Chinese producers are a different story. They have the government behind them for resourcing (Lithium and Cobalt). I see Chinese manufacturers as the most serious possible competition. However, it's not unlikely the government will not allow exporting of electric vehicles on a mass scale since they will want to use them theirselves.

comment 9y ago · link · parent

One substantial possible factor in Tesla's bankruptcy is competition. You suddenly now deal with car manufacturers which are woken up to the electric drive age.

Thought exercise: how can competition take serious levels while Tesla produces half or more of the world's battery capacity?

1
678
12