|
Also, I'm surprised that bootstrap is still so popular. I thought ZURB Foundation was supposed to overtake it. I coded a lot of my programmer stuff in bootstrap, although I feel like I should also look into Patternfly 4. But I have to learn React first, since it's a big part of patternfly4. Maybe I should dump it all and just do django or flask and bootstrap.
|
# ? Jun 11, 2022 05:49 |
|
|
# ? Apr 27, 2024 23:31 |
|
Having used both Django and Flask extensively: Use Django. Flask claims to be lightweight, but then you have to add a bunch of libraries to make it worthwhile, and by that point, you may as well use Django.
|
# ? Jun 11, 2022 06:04 |
|
Thanks! I had expected as such. Django has such a good templating and database system too.
|
# ? Jun 11, 2022 06:13 |
|
jquery isn't simply "not fashionable", it is legitimately painful to work with for anything nontrivial due to all the work that is necessary to keep a complex UI's DOM synced with the application's data model. For simple stuff it works fine, sure, but simple apps don't generally stay simple. The reason the world moved on to React is not just because people love chasing fashion. and anyway you don't even need jquery these days because queryselector and fetch are standard browser built-ins these days, you can just write framework-less javascript. bootstrap works if that's what you're used to but i prefer semantic-ui, since it has a first class React wrapper.
|
# ? Jun 11, 2022 06:50 |
|
Click element -> ajax call -> add returned data to a container div. Let the backend do all the heavy lifting.
FlapYoJacks fucked around with this message at 07:21 on Jun 11, 2022 |
# ? Jun 11, 2022 07:13 |
|
There's not really any point using jQuery now but some things are still randomly slightly more obnoxious in vanilla JavaScript.
|
# ? Jun 11, 2022 07:27 |
|
FlapYoJacks posted:sb-admin * autocorrect. looks neat, ty
|
# ? Jun 11, 2022 07:31 |
|
sob-admin is a solid admin username.
|
# ? Jun 11, 2022 07:42 |
|
RokosCockatrice posted:sob-admin is a solid admin username. covers both what the users think the admin is, and what the admin does at home
|
# ? Jun 11, 2022 07:44 |
|
Gentle Autist posted:imo jquery is great but just not fashionable. a lot of the poo poo it made easier is now part of native browser APIs but it’s still a quick way to get a thing done 100% agree with this.
|
# ? Jun 11, 2022 10:03 |
|
FlapYoJacks posted:Click element -> ajax call -> add returned data to a container div. Let the backend do all the heavy lifting. also correct imo. not everything has to be a massively complicated series of event handlers on the page when you can just POST
|
# ? Jun 11, 2022 10:10 |
|
sb hermit posted:explicitly creates a lambda I've heard this term thrown around a bit so spose i need to "get" it thankyou for for this Corla Plankun posted:its kind of like the arrow function is teaching a man to fish, and the other version is just giving a fish to the man my mum did me up some fish for my birthday dinner and it was fuckkkin good Heavy_D posted:might help to see how you'd do it without arrow functions this is very helpful thanks bob dobbs is dead posted:the arrow notation is not perfectly synonymous to the function () {} notation. previous poster was also right that understanding the difference is misery and despair this is where I am at now, working on this. thankyou everyone who contributed to helping me. I understand very clearly why my code was failing. I am still working on getting arrow functions to feel intuitive for me but I am progess Powerful Two-Hander posted:thus exactly matches my one attempt to use typescript lol lol cool av
|
# ? Jun 12, 2022 03:51 |
|
lambda is mostly another name for arrow function, but highlights the fact it may not have a name. the fact that functions don't need a name is of great importance to some people for some reason. i have yet to figure out y
|
# ? Jun 12, 2022 05:54 |
|
didnt clint eastwood stare in a movie about them
|
# ? Jun 12, 2022 06:04 |
|
lambda is just jargon for a function you define in the code ad-hoc instead of formally as a function. It's not really a "thing" in CS beyond a language feature (it's also the only way to really do a closure, but that's something unnecessary for a beginner to worry too much about when just learning)
|
# ? Jun 12, 2022 07:04 |
|
Grum posted:lambda is mostly another name for arrow function, but highlights the fact it may not have a name. the fact that functions don't need a name is of great importance to some people for some reason. i have yet to figure out y it's a way to treat functions as a first class variable one of the concepts that functional programming brought to the masses really useful for callbacks much easier than C based function pointers
|
# ? Jun 12, 2022 07:49 |
|
JavaScript already had anonymous functions
|
# ? Jun 12, 2022 13:34 |
|
Grum posted:lambda is mostly another name for arrow function, but highlights the fact it may not have a name. the fact that functions don't need a name is of great importance to some people for some reason. i have yet to figure out y it's an object of religious worship for the cult of the logicians. they believe the whole world is made out of total pure abstract anonymous functions and hallucinated an absolutely terrible branch of math to prove it (category theory)
|
# ? Jun 12, 2022 15:43 |
|
lambdas are the turing machine of the functional weenies
|
# ? Jun 12, 2022 16:31 |
|
category theory was made by algebraists to do algebra, not by logicians ive been to both of the parties, they are remarkably different but also utterly the same
|
# ? Jun 12, 2022 16:34 |
|
no monad, no cry
|
# ? Jun 12, 2022 16:36 |
|
The short answer is that's just what it's called, doesn't really mean anything. The long answer: Lambda calculus is a formal system that can be used to model any computation. It's cornerstone is the unnamed, or anonymous, function. The mathematical notation uses the Greek letter lambda for these anonymous functions, hence the name. Functional languages are generally based on the lambda calculus so they sometimes call their anonymous functions lambdas. Anonymous functions are often useful so other languages adopted the feature. Calling them lambdas came along for the ride. So it's just what they're called, doesn't really mean anything.
|
# ? Jun 12, 2022 17:21 |
|
alonzo church first published it as the ∧ calculus but the typesetter was pissed and he changed it to be λ because λ is lowercase Λ (notice in turn that Λ and ∧ are different but... uhhh... not that different) previously, the thing was the ∧ calculus in because whitehead invented 𝑥̂ to denote bound var x. then the typesetter in turn looked at that notation by whitehead and asked them to do ∧x instead mathematical typesetting has been completely eliminated thoroughly by don knuth personally, but it was definitely a significant thing for centuries bob dobbs is dead fucked around with this message at 17:30 on Jun 12, 2022 |
# ? Jun 12, 2022 17:24 |
|
haskell uses a backslash
|
# ? Jun 12, 2022 17:28 |
|
they mainly exist because when you say "yeah just use a lambda" it sounds way more interesting than "use an anonymous function"
|
# ? Jun 12, 2022 17:36 |
|
I don't remember the details because I avoid js like the plague, but don't arrow functions have more nuances than traditional anonymous functions? I'd swear I read that in the context of js, "lambda function" refers strictly to arrow functions, as opposed to any anonymous function.
|
# ? Jun 12, 2022 17:42 |
|
nudgenudgetilt posted:I don't remember the details because I avoid js like the plague, but don't arrow functions have more nuances than traditional anonymous functions? I'd swear I read that in the context of js, "lambda function" refers strictly to arrow functions, as opposed to any anonymous function. I don't think "lambda function" is an actual javascript term but similar anonymous functions are more traditionally called that in other languages so people may use that term.
|
# ? Jun 12, 2022 18:00 |
|
bob dobbs is dead posted:alonzo church first published it as the ∧ calculus but the typesetter was pissed and he changed it to be λ because λ is lowercase Λ the russians used a pencil
|
# ? Jun 12, 2022 19:19 |
|
The big difference is arrow functions also suck. poo poo, wait. Difference?, idk honestly
|
# ? Jun 12, 2022 19:28 |
|
in python it's called a lambda to discourage use
|
# ? Jun 12, 2022 19:33 |
|
pokeyman posted:in python it's called a lambda to discourage use
|
# ? Jun 12, 2022 19:35 |
|
gonadic io posted:haskell uses a backslash which they chose because it's the ascii symbol that most closely resembles a lambda, didn't they?
|
# ? Jun 12, 2022 19:37 |
|
NihilCredo posted:which they chose because it's the ascii symbol that most closely resembles a lambda, didn't they? yes, and you can enable unicode mode and use an actual lambda if you want. just a funny next stage in the typographical degeneration imo
|
# ? Jun 12, 2022 19:44 |
|
bob dobbs is dead posted:category theory was made by algebraists to do algebra, not by logicians i tend to throw them all in the same "formalism nerd" bucket in my head along with dnd rules lawyers and c++ guys
|
# ? Jun 12, 2022 20:16 |
|
(he posted, in the programming thread)
|
# ? Jun 12, 2022 20:19 |
|
i’m working on every aspect of my site at once and currently i’m thinking about fonts now is it possible to buy a font and host it and ask the website to use that?
|
# ? Jun 12, 2022 21:11 |
|
Just use one of the hundreds+ of Google fonts, commercial font licensing is crazy expensive. I have licensed Gotham and Helvetics Neue and the price tags are hilarious at best.
|
# ? Jun 12, 2022 21:26 |
|
yeah i didn’t look into the pricing yet lol but is the principle the same?
|
# ? Jun 12, 2022 21:43 |
|
Yup, with Google fonts you can just use their hosting and everything is hidden behind code they provide. Roboto is a popular example: https://fonts.google.com/specimen/Roboto
|
# ? Jun 12, 2022 21:52 |
|
|
# ? Apr 27, 2024 23:31 |
|
ok good I've found the font source code pro
|
# ? Jun 12, 2022 21:53 |