HNHacker News
TopNewBestAskShowJobs

ffjffsfr

243 karma · joined September 27, 2016

submissionscomments
ffjffsfr··on Problems with RESTful APIs (2015)
> I see the point that REST is not perfect, but better than "awful".

:+1 and they are also better than what author advocates. One thing in author proposal that absolutely puts me off is this:

> JSON-Pure APIs (...) have only one response code to confirm proper receipt of a message - typically 200 OK for HTTP.

This is terrible. PLEASE do not design your API-s like this, this will confuse the hell out of all bots, browsers and everyone who depend on status codes (and that's all web clients). Your 404 error pages will be cached and stored in google, redirects will not be remembered, error pages not retried, etc etc.

I don't get the idea of json pure. Author claims that one benefit is:

> All errors, warnings, and data are placed in the JSON response payload.

But REST-ful API doesn't forbid you from returning informative error messages in json. Why not keep old HTTP semantics known by everyone and return json with informative error message?

I also think that author confuses HTTP semantics as defined in actual WEB STANDARDS with purely academic work of Roy Fielding. Meaning of status codes or methods has nothing to do with REST-ful this is just plain HTTP semantics as defined by RFC-s.

ffjffsfr··on Ask HN: How much can you charge per blog sponsorship?
that's inspirational, so you're basically saying to try to put some text saying sponsors welcome, show blog stats and wait for someone to show up and offer something and just take offer?
ffjffsfr··on Ask HN: How much can you charge per blog sponsorship?
how will they know my blog is hitting 25k users per month? What if my blog will start hitting 25k (unlikely but who knows), how will they know about it
ffjffsfr··on Mozilla Acquires Pocket
how does pocket make money? they do have pocket premium: https://getpocket.com/premium?ep=2 but I never saw them advertising it and never thought about using it and I'm using pocket heavily past several months. Is "pocket premium" their main source of income? Is it bringing real dollars?
ffjffsfr··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
Does anyone know answer to this question someone is asking there at the end? Is it related?

> could you tell us why a lot of people had to re-authenticate their Google accounts on their devices all of the sudden? It may not have been related, but Google definitely did something that had us all re-authenticate.

I too had to reauthenticate and was very worried because it was first time I had to do this, I thought something bad happened with my account and it was very suspicious.

ffjffsfr··on The web sucks if you have a slow connection
I think average number of requests per site, and average page size in megabytes went up over time. It is much higher now and content we browse is actually very similar - people read news like they did 20 years ago, but now their news site requires 2mb of data when it required 100kb 20 years ago.
ffjffsfr··on Why Many Cities Have No Money
OK so the reason why US cities have no money is that they have grown horizontally instead of growing vertically and horizontal growth means high infrastructure cost. That's all very well, but I still dont understand why it happened. Does anyone know why US cities expanded horizontally instead of following growth patterns similar to Europe?
ffjffsfr··on Show HN: Explore ideas whose patent protection expires today
I'm trying to understand what it does by looking at pictures and reading this description but I have no idea: https://patents.google.com/patent/US5588162 is it just raising and lowering toilet seat based on input? So I can sit on toilet manipulate some handle and it will lower my seat level?
ffjffsfr··on Ask HN: What is something you do for clients that consistently blows them away?
> implementing sockets into their apps.

are you talking about websockets for web apps? It's not always easy to implement and it requires some extra libraries and deployment setups. Is it really that easy to add for you as giving client extra candy in post order?

ffjffsfr··on Hyper 1.0.0
haha seems like there's so many hypers. When I saw this I thought about Python Hyper (HTTP2) https://hyper.readthedocs.io/en/latest/
ffjffsfr··on How Bad Are Zillow “Zestimates”?
It's not suprising that estimates based on "user-submitted data points" are not accurate. Everyone who ever tried to sell a house knows how difficult it is to estimate real market price of property. Usually people will submit higher valuation of their house so that they can negotiate it down in case their valuation is not realistic. It is better to give higher value so that you have room for negotiation. Transaction prices will always differ from listing prices.
ffjffsfr··on Stoicism: Indifference is a power
I wouldn't ignore physiological causes of depression, but on the other hand why not try? Who knows, maybe it will help you? A lot depend on what actually is going on in depressed person's life. There are different depressions, different people, and different cures for depression. In ancient times stoicism was recommended as remedy for melancholia. I'm subscribing to /r/stoicism on Reddit and this topic comes up sometimes, some people report that it helped them, e.g. https://www.reddit.com/r/Stoicism/comments/1kljc5/stoicism_a...
ffjffsfr··on Show HN: Whosfiring
It is defaced now. Some troll logged in and started posting spam.

I'm really not sure why this is on front page of HN? This is just random messages board without any verification. Anyone can sign in and post message anonymously saying: "company foo is firing". There is no way to know if 'foo' is actually firing.

ffjffsfr··on “I have toyota corola”
That was really useful site, I think I found some job via this couple of years ago. Is it no longer in existence? Why?
ffjffsfr··on “I have toyota corola”
How can you find text of license of curl in Toyota? I have friend with Toyota wanted to verify. Or maybe someone in this thread can verify this? Is it somewhere in user-guide?

Seriously how people can possibly think some random email from user guide or whatever text they find in car is valid support channel? It is either completely idiotic or there's something wrong with Toyota information guide that leads to this misunderstanding.

ffjffsfr··on Qt binding for Go with support for all major operating systems
You mean PyQtSlot? http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#Py...
ffjffsfr··on Qt binding for Go with support for all major operating systems
> but if one has a core dump or can reproduce the crash under a debugger, a traceback can be easily obtained in the majority of cases.

how do you create core dump? starting program under some debugger? I tried debugging with valgrind but the output contained so much noise it took my ages to find something. I also had to recompile QT used by PyQT because QT because QT requires some flags to be able to debug. What's the best way to debug things like this?

ffjffsfr··on Qt binding for Go with support for all major operating systems
I have some experience building PyQt apps and can confirm random crashes (segfaults, sigaborts and such). I suspect this has nothing to do with lambdas. It may likely be something happening between Python and QT - remember that all things happening in QT/C++ world are invisible to Python. For example if your Python routine returns None (as many Python methods, functions do) instead of some other object that is expected by C++ (say QNetworkRequest) it may crash and die without any traceback. I spend hours on things like this - QT method must return something but in some cases was not returning expected object and whole thing was crashing. Python being Python doesn't care about return types, there is no Python traceback, you're left in the dark groping, browsing codebase trying to find what might get wrong, no debugger will help you.

Working with QT bindings is very difficult. Debuging things is not easy. I'm not sure if using bindings is worth it. I suspect doing things in plain C++ QT might be easier to debug and maintain.

ffjffsfr··on Why Nate Silver, Sam Wang and Everyone Else Were Wrong
Everyone claiming that polls or forecasters were wrong should really do their homework and think what 'forecasting' is all about. It is not about predicting future with 100% certainty. It is about calculating odds of outcomes. You can calculate odds of Trump winning and put them at 40%, you can put them at 1% or 90%. In neither of cases you are wrong or right when he wins. Odds of winning are not 'verified' in any way. If you say that there is 50% chance of coin flipping on tails you are not wrong when it flips on head.
ffjffsfr··on Canada's immigration website crashes on election night
If I'm programmer/developer looking for job in Sweden where can I find offers? How do you feel about taxes in Sweden? Aren't they very high in nordic countries?
ffjffsfr··on Software Developers: how to get a raise without changing jobs
> Bring more value to the company than what’s expected of you. Then ask to be compensated for it.

Sorry but it doesn't always work like this. Sure, performing well makes it more likely for you to get a raise, but there is no guarantee. Perhaps performing well increases probability of you getting a raise. But it does not guarantee anything nor is it most important factor in computing this probability. Probabibility of raise will depend on variety of factors including your company culture, your manager personality, company financial situation etc.

ffjffsfr··on Berlin Is Bringing Back Subway Trains from the 1950s
Sorry but what's the big deal about this? They renovate 3 old trains to serve some tiny tourist line. It will be mostly tourist attraction - train from 50-ties with all the old signs. It is cheaper to renovate than buy new. Is it really that unusual?
ffjffsfr··on The Costs of Running a Support Team in the Bay Area
Interesting read, thanks for sharing! Slightly off-topic, have you thought about making your blog more readable? There is grey text on grey background. I'm short sighted and when reading this on my computer monitor while eating lunch I had to actually print it to pdf to be able to read it conveniently. Your blog also breaks in "read mode" chrome extension that I usually use to alleviate problems with bad designs like this one.
ffjffsfr··on Ask HN: How do you deal with boredom at work?
thanks that's really good advice. My current role is software development, I like the article about planning my day will check this out. I think point 2) is most relevant for me, perhaps I need to find new job that is more stimulating for me.
ffjffsfr··on Why I'm Not a React Native Developer
> This is simply a list of things the author doesn't like about JS, very much of which is practically solved by Flow/TS and ESLint.

One of shortcomings of language listed by author is precisely this: shortcomings in language are not fixed by fixing the language but by adding new community-supported library.

ffjffsfr··on Is developer compensation becoming bimodal?
it's really difficult to get good salary information. glassdoor.com is nice but getting data from them will be pain (you probably cant crawl them). I was thinking about writing some spider parsing Stack Overflow careers or "who is hiring" HN threads. But if you get data in this way you only get salaries offered and not salaries actually paid. I guess salaries paid might differ from what is offered. There was a spreadsheet so maybe OP could check this https://docs.google.com/spreadsheets/d/1a1Df6dg2Pby1UoNlZU2l... https://news.ycombinator.com/item?id=11331223 I wonder if this will confirm ideas about bimodality.
ffjffsfr··on Is developer compensation becoming bimodal?
Majority of new IT grads earning 150k? This can't be representative sample for US.

> this is from about 100 data points, members of the “Hackathon Hackers” Facebook group, in 2015.

What's the point of analyzing data from such narrow and unusual sample?

RE: how to get data about programmers salaries, I'd say try to check job postings, they usually say how much company offers.

← PreviousPage 2 of 2