- Joined
- Feb 9, 2013
Beats me.Yeah, but why isn't that just a method that exists on all objects? I don't understand why this requires a keyword.
Javascript was originally jimmied up in ten days. It's probably just a wart.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Beats me.Yeah, but why isn't that just a method that exists on all objects? I don't understand why this requires a keyword.
When you're implementing a language, the further down you go, it gets harder to do ordinary things that you could do in the language itself. Every implementor wants to make it turtles all the way down, or as far down as is feasible. It's because it's easier to work in a garbage collected, non-C language than in C.But Pythin, a language with a very different heritage, has the del operator, which works almost the same way (it actually removes shit from arrays instead of setting them to undefined.)
I feel like there's some principle of language design I'm missing here.
Object.prototype.delete_key = function(key_name) {
return delete this[key_name];
};
Does the API already exist? Or do you want a project that involves doing both the API and the frontend?to practice working with restfull apis i would like to create a small app to display data from said such an api using the mvc approach. now my question is how to plan such an application?
for now i wrote down what the user interactions should be and made a sketch of the page. what methods are there for planing the details, the small steps towards the final product. from the back end to the front end or the other way around? for now the apps where very small and i just coded what felt right to be done next, without any planing beforehand. what is the approach you guys use to structure the work and what literature would useful to read .
Are you going to be writing any backend code of your own? Are you going to be writing your own API?for this project i'm using a already existing api, so i can be sure it follows the restful pattern.
writing my ideas down help me so far staying somewhat on track. the api is cached and has no limit on how many calls i can make, for some data it will work fine to read them every time someone asks for them. others are refreshed every 24h and are used to create a json object out of different endpoints. how do i get a function to execute every day at the same time?
edit: so the part that runs every 24h could be done on a node server and for the rest i'm using js that got translated with babel in the browser?
Are you going to be writing any backend code of your own? Are you going to be writing your own API?
JWT is useful for when you've got more than two parties. So like, other than just client and server.@Marvin @garakfan69 have any suggestions for a webapp authentication library for Golang? I'm looking into authboss right now. I'm not even really sure how modern webdevs do sessions, does everyone use JWT now?
-Golang Game Server Logic-
# du -sh src/
44K src/
# time go build
0.16user 0.02system 0:00.12elapsed 154%CPU (0avgtext+0avgdata 24920maxresident)k
0inputs+0outputs (0major+1757minor)pagefaults 0swaps
-The Tiny Website-
# du -sh src/
25K src/
# time npm run build
[...]
40.69user 0.93system 0:30.13elapsed 138%CPU (0avgtext+0avgdata 413960maxresident)k
95056inputs+328outputs (0major+331223minor)pagefaults 0swaps
# du -sh node_modules/
170M node_modules/
Probably because whoever started the project was most comfortable with using Python. That's usually the reason any particular language is chosen for any particular project.Can someone explain why the matrix devs decided to implement their home server in python of all languages? Is it because python interpreters exist for pretty much all CPU architectures, so it can run almost anywhere?
Synapse is just one implementation of the matrix protocol, albiet the reference implementation. Dendrite is written in Golang, but not ready yet: https://github.com/matrix-org/dendriteCan someone explain why the matrix devs decided to implement their home server in python of all languages? Is it because python interpreters exist for pretty much all CPU architectures, so it can run almost anywhere? Because from my point of view, it seems like something a little more performant might be a better choice.
Why is yet another IM protocol necessary?Can someone explain why the matrix devs decided to implement their home server in python of all languages? Is it because python interpreters exist for pretty much all CPU architectures, so it can run almost anywhere? Because from my point of view, it seems like something a little more performant might be a better choice.
Why is yet another IM protocol necessary?
KiwiFarms has a secret Riot server on an obvious subdomain that no one chats in.The Matrix protocol (which Riot is a client for) is an open source federated protocol that allows for Slack/Discord like features (persistent chat logs, voice/video, rich text) in addition to optional E2E encrypted chat.
The fact it's federated allows you to connect to other Matrix servers (called "homeservers") via your own homeserver. You can think of this like email. Your email provider can ban you, but other email providers can only block you from sending messages to them. You can see me demonstrating the federation feature in my screenshot by viewing the Linux chat hosted on the main official homeserver via the KF server. I never directly connect to the official Matrix homeserver.
I think the only answer to that question is that I've never seen an IM protocol that people were actually happy with using. A lot of protocols are just dead (ICQ, AIM, etc.), and IRC is "dead" seemingly only because everyone insists that it is. Tox and Ricochet are full of pedos and basically equivalent to routing your IRC traffic through tor. Slack and Discord are accessible only through webapps or bloated electron-based desktop clients, with Slack having boring corporate associations and Discord being barely above spyware. I've never used XMPP, but the main complaints I've heard about it are that it doesn't scale well and that it uses xml (which I personally don't consider bad, but others disagree). Matrix is like a federated version of Discord based on an open standard, like CrunkLord420 said above. In terms of failings, I can see it eventually becoming like XMPP where the open standard eventually leads to the devs becoming lazy and telling client devs to implement massive amounts of functionality on their own, or maybe it'll fail because the devs eventually want people to use third-party IDs like phone numbers and email addresses.Why is yet another IM protocol necessary?
Recently I've been using a program called Ripcord, a cross-platform Qt program which can connect to both Discord and Slack servers. It's still kinda janky - I need to manually reconnect to servers after switching from wi-fi to my wired connection and vice versa, and the one time I tried to do Discord voice chat with it it couldn't detect my headset as an output device properly - but chatting works well enough and it sure as hell uses a lot less RAM than running either the official Discord or Slack clients, much less both of them. I even found out about it here on the Farms. I suggest giving it a try.Slack and Discord are accessible only through webapps or bloated electron-based desktop clients
Recently I've been using a program called Ripcord, a cross-platform Qt program which can connect to both Discord and Slack servers. It's still kinda janky - I need to manually reconnect to servers after switching from wi-fi to my wired connection and vice versa, and the one time I tried to do Discord voice chat with it it couldn't detect my headset as an output device properly - but chatting works well enough and it sure as hell uses a lot less RAM than running either the official Discord or Slack clients, much less both of them. I even found out about it here on the Farms. I suggest giving it a try.
I still use IRC. The hardcore crypto protected stuff is usually swarming with pedos, but I use it when I'm in a foreign country to be safe. (Like Telegram.)I think the only answer to that question is that I've never seen an IM protocol that people were actually happy with using. A lot of protocols are just dead (ICQ, AIM, etc.), and IRC is "dead" seemingly only because everyone insists that it is. Tox and Richochet are full of pedos and basically equivalent to routing your IRC traffic through tor. Slack and Discord are accessible only through webapps or bloated electron-based desktop clients, with Slack having boring corporate associations and Discord being barely above spyware.
The problem with this is that, while electron is bloated as shit, it's probably the best way to make an attractive desktop app.electron-based desktop clients
Yeah, XML is a shitty aspect of it. But otherwise it functions pretty well. It fulfills the needs for a classic IM protocol like AIM very well.I've never used XMPP, but the main complaints I've heard about it are that it doesn't scale well and that it uses xml (which I personally don't consider bad, but others disagree).