- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Actually, I think what's at fault there is duck-typing.
If I check for false, it better be false for that check to pass, goddamit
Admin
The awesome thing is that it uses the same method to communicate errors about JSON parsing.
Even though "false" is a perfectly valid JSON value.
Admin
Yeah, that's just... beyond words stupidity.
Admin
Other programming languages have better ways of handling this. In Haskell, you would have the strpos equivalent return a
Maybe Int
, which would have a value ofJust n
where n is the index where the substring is found orNothing
if the substring is not found.Maybe Int
andInt
are two different types, so the compiler wouldn't let you use one where the other is expected, and converting would give a warning if you didn't handle both cases.Admin
Use jQuery! Hanzo does!
Admin
Well... only kind of:
No, I have NFC why giving it
"false"
as a string is a failure. Edge case of some kind I guess, I didn't read the RFC TBQH.Backwards compatibility stuff on the decoding part for the rest. I never ran into this as considered valid in the wild though. Not that it's an excuse, but I do find it a bit odd to allow bare values without a proper object or an array. I'm kind of failing to see the a legitimate use, too. As in, why wouldn't you stick in into an array for example, rather than just sending, say, a bare interger as a response? Surely, 2 bytes of perceived overhead is nothing to worry about?
Admin
Could be a way of migrating the code to use a different naming convention. Years ago I had some code with loads of wrappers along the lines of emulate_randomname() { system_sensiblename(); } during the transition when imposing a consistent naming scheme on the code.
Admin
Maybe a merger, and they're trying to consolifrobnicate different databases.Or some tie-wearer has decided to switch from MySQL to MongoDB for raisins.
Time to get new glasses. I read "failback servers" the first time.
Admin
+ :fa_book:
MongoDB is web scale!
Given the situation described, it is an apt monickerAdmin
Challenge:
Put as many hoops between a web user and the backend data as possible. Difficulty: Site servers on same LAN and no esoteric stuff, (IP over Avian, etc)
Raid0 -> Distributed File System -> DB Server -> Windows DSN Entry -> RPC Service -> Web Server -> SOAP Service -> Rest Service -> JQuery -> data presented in Alert box from span onClick.
Admin
Why not just
SSD -> DigitalOcean droplet -> PostgreSQL -> Ruby -> V8 -> Rails -> Nginx -> Ember -> 503 OK -> 503 OK -> 503 OK -> 503 OK -> ... -> 503 OK -> web browser
Admin
Don't forget to make sure the REST service isn't actually RESTful, completely negating the point ;)
Admin
We are having some performance issues with our setup - could you take a look?
RAID3
->
SAN->
Distributed Content-Addressable File System->
NoSQL Distributed Data Store->
cron-run PHP script->
JSON-RPC->
RabbitMQ->
Apache Spark Streaming Batch Processor->
Postgresql->
Redis Cluster (for caching)->
Business Logic Layer->
Service Layer->
WebSocket frame->
Flux Action Dispatcher->
Unread notification icon shows up by user's avatar.Admin
Things can go overboard, but there is no way I am going to ever put a corporate database on a machine that can be directly connected to the Internet.
Admin
I would have liked it, but I ran out of energy by the time I moused over all the abbr tags.
Admin
I also note that you are not using a Business Process Management System.
Admin
When I support clients, it's through Teamviewer installed on their servers.
Admin
Look at the info published by Gartner. It is estimated that up to 15% of all data breaches (at the server level) result from external support access capabilities (not specifically TeamViewer)....
Typical recommendation is at least a double hop.
Admin
They show up on mobile
[image]Admin
No repro: [image]
Admin
Maybe discourse doesn't believe that a full HD screen in portrait could possibly be mobile!
Admin
Hot diggity, you're right! [image]
Though, now this tab is stuck in "micro mode"... [image]
Filed under: Just keep refreshing, just keep refreshing, just keep refreshing refreshing, refreshing, what do we do we refresh....
Admin
This view is actually cool, I can see that a pasted image is a pasted image!
Admin
That's a here-only hack I added to the mobile CSS:
Admin
I was surprised it synchronises the click count on all the links pointing to the same place. Before I tried clicking just one of them I wondered if that was the case or previous 9 people clicked every one of them in an OCD fashion. Or maybe 36 people clicking different links to maintain the balance.
Admin
Exactly
Admin
I thought PHP was on the server site, but still it is on a server that is publicly exposed... so why would it be able to access the database server directly.
Anyway, to answer your question, use BobX.