|
Winter is Cuming posted:Tutsplus is an invaluable resource that I wholeheartedly recommend. It has so many great tutorials. http://net.tutsplus.com/tutorials/php/aspect-oriented-programming-in-php/
|
# ¿ Sep 26, 2013 04:34 |
|
|
# ¿ May 2, 2024 08:12 |
|
abraham linksys posted:Check out the source here for an example. Huh??
|
# ¿ Dec 2, 2013 07:15 |
|
Kobayashi posted:Not really sure how to Google for this, but for modern Javascript, what kind of style recommendations are there for quotes vs. double quotes? Sometimes people seem to use double quotes extensively. Others use single quotes. I cut my teeth on C-like languages and Perl, so by habit I tend to only use double quotes for interpolation or escaped characters, but I wondered if modern JS has other conventions? I worked on a project long ago that used double quotes for user-visible text and single-quotes for internal strings, like identifiers, so that's what I do now. I acknowledge it's a weird personal rule and I don't really give a poo poo if people submit code to my projects that break the style.
|
# ¿ May 10, 2014 02:17 |
|
Pollyanna posted:We should put that in the title. who gives a poo poo
|
# ¿ Jul 16, 2014 18:30 |
|
there are people like you. they spend more time debating the correct design of their software with themself than actually sitting down and writing the drat software. they are not people i like to work with. just write your drat software.
|
# ¿ Jul 16, 2014 18:31 |
|
My mind keeps on trying to fuse this with both "moses supposes" and "developers developers" and it's getting very confused.
|
# ¿ Jul 17, 2014 03:29 |
|
We got an Angular site shipped from some external contractor. I've been trying to hack on it to add simple functionality and it's the most insane thing I've ever done. Angular is an incomprehensible mess and I can't figure out how to do anything in it.
|
# ¿ Apr 10, 2015 01:49 |
|
React seems very similar to how I would design my own system, which is a system composed of a tree of widgets that "render" to DOM. Angular seems to be all about data binding of strings to a premade DOM, which is impossible to do anything semi-complex with.
|
# ¿ Apr 10, 2015 02:08 |
|
The page they gave us is less than 100 lines of code. It's not bad all things considered. I just spent two hours in the Angular IRC channel and the guy there convinced me that what I'm building isn't what I should build, it can't be built in Angular, and that data binding is better and I should use it instead.
|
# ¿ Apr 10, 2015 03:03 |
|
needs the part where they announce angular 2.0 and the graph goes negative
|
# ¿ Apr 10, 2015 16:51 |
|
That's not how that works.
|
# ¿ Apr 10, 2015 18:21 |
|
It's finally deployed: https://endlessm.com/ Source code at https://endlessm.com/landing-page/build/js/timer.js
|
# ¿ Apr 10, 2015 20:05 |
|
should be fixed now.
|
# ¿ Apr 10, 2015 20:56 |
|
one of our sysadmins hosed up the dns, it's fixed but might take time to propagate.
|
# ¿ Apr 10, 2015 22:33 |
|
I really don't understand the new web build process stuff. How do I build a .html file that references my fancy new modules with something like webpack? I'm in the guts of file loaders and html webpack plugins and I really don't understand any of it.
|
# ¿ May 26, 2016 23:50 |
|
ok. since you can have a css loader i figured there would be some concept to inject the built css into the html but i guess not. i am also toying around with something else. for super neat dumb reasons at work it would be nice if i had this app as a single .html file so i was wondering if it's possible to inline all the scripts and styles right into this sucker.
|
# ¿ May 27, 2016 17:24 |
|
I don't understand why having an .html app bundle is a bad idea, to be quite honest. The reason is because I need to be able to upload this "app" as an attachment to another service. It's an internal tool, and we don't have an intranet to deploy it on yet. It's complicated.
|
# ¿ May 27, 2016 18:13 |
|
ModeSix posted:Jesus just looking at his post history in this thread, it's almost like he's trying to troll us. What about my posting history is bad? I said Angular is bad and React is good, which seems to be the generally agreed upon Correct Opinion these days.
|
# ¿ May 27, 2016 18:15 |
|
abraham linksys posted:ember doesn't have any one big company behind it but still has plenty of small shops and mid-sized mature companies using it, idk (twitch, digitalocean just moved back to ember after trying react for a while, etc) i can't find anything about twitch trying react at all. in fact, the only mention of react is a job posting suggesting they do use react: https://jobs.lever.co/twitch/888a6a8b-3cff-4c90-b490-33852910713e
|
# ¿ Jun 12, 2016 02:32 |
|
The problems with <div onclick="buttzone()"> was the lack of proper namespacing / scoping, since everything needed to be global. React fixes that by allowing you to bind to functions by reference rather than evaluated strings. I don't know why people switched to elem.addEventListener('click', buttzone); instead of doing elem.onclick = buttzone; when the latter is much simpler and less confusing with multiple handlers and such.
|
# ¿ Jul 13, 2016 23:06 |
|
Pollyanna posted:What's the point at which you should start using a framework? Our big ol' dynamic HTML table/Excel spreadsheet replacement/inline form editing Frankenstein has an issue with hiding/resetting forms via a cancel button and after fiddling around with jQuery spaghetti and completely disorganized, inline source code, I'm frustrated enough to want to convert the whole thing to a React component instead of Rails form helpers and wash my hands of the whole thing. Front-end poo poo has been a recurring issue for us and absolutely none of it makes sense. The lack of a framework is making things just totally stupid. try refactoring it before rewriting it to the latest hotness
|
# ¿ Jul 14, 2016 18:23 |
|
the best part is him trying to count lines
|
# ¿ Aug 11, 2016 02:45 |
|
OK. I have a problem. I write a bunch of cool web toys. I want to try out using TypeScript on one of them, because I keep making dumb type errors. My preferred workflow: in Visual Studio Code or Atom, have TypeScript. If I press F5 on the right in my browser, I should get JavaScript that is up to date. I do not care if I use Gulp, Grunt, Broccoli, or Webpack. You pick the tech stack and tell me how to set it up. I just want TypeScript automatically compiled when I change something. Maybe some nice debug integration. Go.
|
# ¿ Oct 26, 2016 05:21 |
|
Thanks guys! I eventually figured out how to use VS Code's builtin tasks to do it for me. Now I have a simple thing ported to TypeScript, and, wow, I am loving loving this language. https://magcius.github.io/NITRO_BMD/ https://github.com/magcius/NITRO_BMD
|
# ¿ Oct 26, 2016 07:13 |
|
prom candy posted:Handcrafted code is overhead, I imagine you'd be in a much worse position if he hadn't used all these dependencies. i would rather work with a codebase written by people that know how to write left-pad by hand than people that include it as a dependency
|
# ¿ Feb 8, 2018 08:47 |
|
Lumpy posted:Yarn is just a thing that sits on top of npm though, right? So you can still have that npm bug using Yarn if yarn installs that npm as part of *it's* install?? npm is two parts: a website full of tar files, and a client that downloads and extracts the tar files. yarn replaces the second thing without replacing the first thing. so no, yarn will not have that bug.
|
# ¿ Feb 27, 2018 18:44 |
|
Also know when to roll your own rather than hacking around a library that isn't doing what you want. I'm in the process of ditching gl-matrix in my own app because of how... *checks paper* not good it is.
|
# ¿ Jun 19, 2018 19:42 |
|
as usual, arguing about programming metaphilosophy ends up going in circles with no new knowledge gained
|
# ¿ Jul 27, 2018 19:56 |
|
Mr Shiny Pants posted:I don't know if this works. I thought it was fun to think about. The modern web, ladies and gentlemen.
|
# ¿ Aug 2, 2018 16:50 |
|
all frameworks suck and youre never gonna be happy with your decision death waits for us all hth
|
# ¿ Aug 4, 2018 05:24 |
|
typescript is cool but just write all your own UI code from scratch and don't use one of these stupid frameworks also npm / parcel / webpack and the whole node ecosystem are loving trash and barely work
|
# ¿ Sep 1, 2018 20:02 |
|
wasm doesn't do what you think it does and will only make things worse hth
|
# ¿ Sep 2, 2018 07:13 |
|
|
# ¿ May 2, 2024 08:12 |
|
typescript is probably the only piece of anything in this stupid ecosystem that actually works i've spent more time just yesterday fighting with webpack and parcel than i've ever spent fighting typescript.
|
# ¿ Oct 15, 2018 18:53 |