Edit: I couldn’t even spam back to get out, it would go back and then pull me forward to next question. I had to just change the URL back to HN.
345 karma · joined January 31, 2012
Edit: I couldn’t even spam back to get out, it would go back and then pull me forward to next question. I had to just change the URL back to HN.
# In this example, I use blueprint plugin
@bp.route('/', methods=['PUT'])
def create_resource():
return
vs class Resource(...):
def on_put(self, request, response):
return
Mirror: https://pastebin.com/50W8TJV2Flask's hooking logic [1] is nice but I much prefer Falcon's middleware logic [2]. This then ties into the fact that Flask's design requires working with `g` [3] (essentially a global object) where as the middleware design leads us to bake in data in the request object. The example blow demonstrates how middleware definition works and how "adding data" per request works in both of these frameworks.
# Flask; assuume `app` exists
from flask import g
@app.before_request
def before_request():
g.some_variable = 'foobar'
vs class ExampleComponent(object):
def process_request(self, req, resp):
req.some_variable = 'foobar'
Mirror: https://pastebin.com/Z3yGCfzFAdditionally, Falcon middleware API also exposes `process_resource` which is similar to above but also allows us to _pass_ arguments to the routed resource instance.
[1] http://flask.pocoo.org/docs/1.0/api/#flask.Flask.before_requ...
[2] https://falcon.readthedocs.io/en/stable/api/middleware.html
[3] http://flask.pocoo.org/docs/1.0/appcontext/#storing-data
Edit: Formatting
> Scrolljacking basically means we replace native scrolling (what you’re used to) with targeted scrolling: when the user initiates a scroll, either with their mouse or keyboard, scrolljacking takes them to an exact vertical point on the screen (for example, the top of the next content container)
They aren't targeting your scrolling to specific areas on the page, just adding an ease in/out. It happens natively on iOS actually.
Edit: I do agree that it might hinder accessibility, just dont think the term applies as it does in other cases here.
http://sterlicht.alwaysdata.net/transcrypt.org/docs/html/special_facilities.html#inserting-literal-javascript-pragma-js-and-include
vs
transcrypt.org/docs/html/special_facilities.html#inserting-literal-javascript-pragma-js-and-include>>> sum([x['moons'] for x in target['system']['planets']])
Thanks for contributing to the VS Code ecosystem.
1. Syntax (missing for Elixir)
2. Shortcuts (even preferences shortcut is missing)
3. Easier configuration API; I think currently, you give us the "entire React app", rather get something simple.
I have the application downloaded; assuming you have autoupdates. I will keep an eye out; excited to see where this goes.
1. I wonder though why you/team didn't opt for extending the vim emulation - via a plugin - on VS Code. Did the exposed API limit you from doing so? Edit: Having used the extensions of VSCode, I am wondering if that is the case.
2. Does it support installation of sublime/atom/vscode plugins?
I hope I can become a good parent and can teach my kids to be good people by the time I am ready. If you need a state to tell you that, you probably should not be having kids. Having is a privilege and unfortunately also a right.
Edit: In all seriousness, what I was saying is that we should be teaching kids to be good people rather than acting good on the internet.
Also, we should be smart enough to know that all this article is doing is spewing shit on Reddit to generate them pageviews. That is all journalism is now a days.
how about asking kids parents to detoxify their kids than solving the problem way down the chain of command?
People are shitty online because they have anonymity. Now instead of going ahead and removing that, it might be worth going backward even more and going to the person.
people need to be nice on the internet. The internet does not need to be nice to people. Detoxifying internet is no different than censorship. I can say this with certainty that as soon as we ask companies and governments to detoxify, it will get misused [un]intentionally.
Agree but I hope we take super small baby steps and get what above is accomplishing right the first time without complicating the use cases just yet.
Edit: My only problem with this is that there is copying going on even without general/mass acceptance.
Edit 2: Addendum to above: Even with the suggestion you've made, that assumes you know the problem BEFORE you have a product. OP has a product.
But yes. OP, if you combine both of these 2 cents, your 4 cents would be: Know the problem before you have a product not the other way around :)
Edit 1: Also, note that there are new set of biases to worry about in the approach you have pointed out; does not make it invalid, but you also have to be careful there.
---
Great article OP. Thank you very much. I remember using Bluebird and sharing the sentiments of the comment which I am replying to.
This is a very common sentiment and is echoed almost everywhere startup related. You can read PG's essays on the matter or watch some Startup School videos.
I understand you may already have a product so hopefully others can give you more advice.
Every airline uses some sort of a contractor or a shared piece of software for online checkins. You can tell by the formed URI fragments and the JSON being sent back and forth.
Its all trash. I wanted to work on a business that unified all check-ins under single company. I do not think however, it is reasonable given that all of these airlines have the process, as shit as it is, for a reason.
Every single thread. Some new kid makes a small little app and it gets crushed with someone pointing out - usually obvious - short comings or how unnecessary it is. Let’s all be supportive for once.
Not saying OP is not supportive; OP is just communicating their frustration. Just using OP as a conduit to explain the pattern I usually see.
Agreed
> The morality doesn't seem that disparate either - they are both exploitative. > I do stand corrected on this company after being linked to their post on reversing their model.
Noted.
To clarify, I do not disagree that F2P can be exploitative. It certainly can be. There are cases when kids are playing games and end up spending thousands of dollars.
F2P can however, be done right. I've been playing Dota 2 since the beta which is F2P and only provides cosmetics; believe same is true for League of Legends. Hence, I was saying that one is pure evil and the other is lesser (and in some cases not evil at all)