Function

Function or functionality may refer to:

Computing

  • Function key, a type of key on computer keyboards
  • Function model, a structured representation of processes in a system
  • Function object or functor or functionoid, a concept of object-oriented programming
  • Function (computer science), or subroutine, a sequence of instructions within a larger computer program

Music

Other uses

gollark: Well, it's poorly designed, more so than JS in my opinion.
gollark: PHP is maaaaybe easy for simple stuff, but also very evil.
gollark: There are many languages you can use for web*server*y stuff, but you can only really use HTML/CSS/JS for frontends.
gollark: With Express.js the server thing would look *very roughly* like this:```javascriptconst express = require("express")const multer = require("multer")const app = express()const upload = multer({ storage: multer.memoryStorage(), limits: { fileSize: 2**22 // 4MiB maximum filesize }})app.get("/image", (req, res) => { res.send(loadImageFromSomewhere())})// send upload form HTML - you would need to write this tooapp.get("/upload", (req, res) => res.sendFile("upload.html"))app.post("/upload", upload.single("file"), (req, res) => { saveImageSomewhere(req.file.buffer)})app.listen(8700, () => console.log("listening")) // listen on port 8700```
gollark: I mean, you could use PHP too. I don't like it. But you could.

See also

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.