6 ms·
It seems like doubling down is the standard thing to do. Here's a video about how Instagram bugs engineers to do fewer string manipulations in Python instead of
by anonymoushn 7y ago
It seems like doubling down is the standard thing to do. Here's a video about how Instagram bugs engineers to do fewer string manipulations in Python instead of using a faster language https://youtu.be/hnpzNAPiC0E https://youtu.be/hnpzNAPiC0E
- bsder 7y agoYou ... are not ... Instagram. Okay. Get over it. Python is fine. Threads are fine. Go is fine. Clojure is fine. Java is fine. PHP is ... okay I won't go that far. :) You fix the problem when the cost required to fix the problem is finally less than the opportunity cost of fixing something else.
- anonymoushn 7y agoI would prefer not to deal with "scaling up" for workloads that could run in a single process on commodity hardware. I've mainly worked at companies that would be bankrupt if they used Python the way Instagram does.
- bsder 7y agoDjango and Python somehow handled websites for entire newspapers on far wimpier hardware just fine--which makes me wonder if "cloud" (ie. non-deterministic memory and I/O accesses due to sharing with other tenants) isn't the problem rather than Python. You need a market. You need paying customers. You need cashflow. You need features. You need a business plan. You don't need scaling. Ever. To first, second and third order approximations. Your company has a higher probability of bankruptcy than needing scaling.
- earthboundkid 7y agoNewspapers run everything behind a CDN, so Django isn’t a bottleneck. The things they do that can’t just be CDN buffered (like ad targeting and paywalls and comments) end up being supplied by outside vendors. I think Django fits well for a news org, but it’s good to understand why it fits well.
- nexuist 7y agoPHP is fine too. Check out https://laravel.com/ https://laravel.com/ and tell me that doesn't look like a joy to work with.
- franga2000 7y agoI just got roped into a project with the promise of Django, but the project lead ended up deciding to go with Laravel, so I've been looking into it for a few days. It's a resounding no from me. If you're stuck with PHP, sure, this beats the WordPress style of...well...I can't really find words to describe how bad it is..., but it's still miles behind anything else. It full of strings and other things that you just have to memorize with IDE integration even with specialised extensions still worse than other languages with standard IDEs.
- zippoxer 7y ago"String-programming" is mostly optional. Modern Laravel is introducing type-safe alternatives. For instance, instead of doing validation like: 'gender' => 'in:male,female,other' You can now do: 'gender' => Rule::in(['male', 'female', 'other']) Which, coming from Go, I very much prefer. Modern PHP is pushing for type-safety (via type-hinting) and Laravel is following this direction as well.
- phreack 7y agoHow much of the old "A fractal of bad design" post would you say still applies? That one post showcased so many footguns right at the language level that it spooked me away from it forever.
- neurostimulant 7y agoA lot of those are still applies, but these days you can ignore those bad parts and only use the new good parts just like how you would use javascript. Still, I only use php occasionally but I wish it's not as eager in treating string as number in many cases.
- smacktoward 7y ago