|
Suspicious Dish posted:var number = 3..minos(1, 5); -3..minos(-5, -1);
|
# ? Oct 26, 2017 06:05 |
|
|
# ? May 25, 2024 22:19 |
|
code:
|
# ? Oct 26, 2017 06:51 |
Ranzear posted:
Holy cow, minos has some labyrinthine logic!
|
|
# ? Oct 26, 2017 10:49 |
|
Osmosisch posted:From my experience, unless you're making huge pages with lots of bindings (which makes Angular 1 performance tank), there's no tangible benefit and a ton of work involved. This is the first job I've landed in since graduating from uni with a CompSci degree, and the first time I've had more than a breif encounter with webdev, every developer in this team is full-stack so i've had to dive straight itno it. After doing Angular, Jasmine, and other stuff like that for a few months now, is it just me, or is webdev tooling/libraries/frameworks a nightmare-fuel minefield?
|
# ? Oct 26, 2017 12:06 |
|
Nova88 posted:This is the first job I've landed in since graduating from uni with a CompSci degree, and the first time I've had more than a breif encounter with webdev, every developer in this team is full-stack so i've had to dive straight itno it. nope, that's a good description of it. let's take some rudimentary tools that were designed for laying out styled text documents and simplistic data entry forms, throw in a scripting language cobbled together by one guy in an afternoon based on some wacky ideas he thought were cool at the time, and try to use this rickety pile of hacks to replace actual operating systems and purpose-built gui toolkits designed by responsible adults with decades of experience ... what could possibly go wrong?!
|
# ? Oct 26, 2017 12:20 |
|
Soricidus posted:purpose-built gui toolkits designed by responsible adults what are those?
|
# ? Oct 26, 2017 12:46 |
|
Soricidus posted:nope, that's a good description of it. let's take some rudimentary tools that were designed for laying out styled text documents and simplistic data entry forms, throw in a scripting language cobbled together by one guy in an afternoon based on some wacky ideas he thought were cool at the time, and try to use this rickety pile of hacks to replace actual operating systems and purpose-built gui toolkits designed by responsible adults with decades of experience ... what could possibly go wrong?! Yeah tbh it can take me a week of doing front end js to do something that I could do in a day using WPF, and I have way more experience using front end js than WPF.
|
# ? Oct 26, 2017 12:57 |
|
Soricidus posted:nope, that's a good description of it. let's take some rudimentary tools that were designed for laying out styled text documents and simplistic data entry forms, throw in a scripting language cobbled together by one guy in an afternoon based on some wacky ideas he thought were cool at the time, and try to use this rickety pile of hacks to replace actual operating systems and purpose-built gui toolkits designed by responsible adults with decades of experience ... what could possibly go wrong?! Nothing goes wrong, why do you ask? Everything is peachy. Of course, during the evolution of said ecosystem we come to discover patterns, ideas and workflows that have existed for decades in other UI systems and we happily reinvent the wheel and proclaim it to be the best thing since slice bread. See Redux/Flux -> Windows messaging system.
|
# ? Oct 26, 2017 14:34 |
|
Suspicious Dish posted:inclusive ranges... adding or subtracting 1 from a number? While it's true that [0,2) is the same as [0,2-1] for the integers, the coder making the request for [0,2) may not have any information a priori about the calls being made into the function she's writing. It may only be known that "my range starts at 0, the next starts at 2, and I have to operate within that range". This happens in physical simulations, GIS data analysis, and probably graphics as well, where the actual step size is controlled by some outside process that makes changes to achieve some overall threshold. What's really needed is [0,2-epsilon] for all epsilon greater than zero.
|
# ? Oct 26, 2017 14:49 |
|
Volguus posted:I understand tree-shaking, that's perfectly reasonable. I don't understand the rest. It does minification, it adds the templates to the generated javascript, you can add the uglify plugin, fine, but ... then what? I mean .. that's all? Yeah, I thought maybe this was the equivalent of server-side rendering but for Angular, but no, it's just webpack but for angular and oh you get to maintain two different index files! One for dev and one for prod, because the bundle has to be bootstrapped differently
|
# ? Oct 26, 2017 15:02 |
|
Bruegels Fuckbooks posted:Yeah tbh it can take me a week of doing front end js to do something that I could do in a day using WPF, and I have way more experience using front end js than WPF. Me too, but in my case it would be 90% getting the goddamn tooling configured and 10% actually writing the thing. I find HTML/CSS/JS to be pretty excellent for UIs. I never really found this to be the case until I started using React + Redux.
|
# ? Oct 26, 2017 15:12 |
|
Thermopyle posted:I find HTML/CSS/JS to be pretty excellent for UIs. I never really found this to be the case until I started using React + Redux. I agree until there's a form involved. Everything around HTML forms is hilariously bad compared to .Net's native UI toolkits.
|
# ? Oct 26, 2017 15:27 |
|
Munkeymon posted:I agree until there's a form involved. Everything around HTML forms is hilariously bad compared to .Net's native UI toolkits. Yeah, I guess that's true. I just never write a UI that's for windows only.
|
# ? Oct 26, 2017 15:27 |
|
I just wish people would stop innovating (as much) and start improving. If you develop something cool in the JS ecosystem stop and make it better, more stable, and more generic. Don't try and develop the next esoteric cool thing.
|
# ? Oct 26, 2017 15:40 |
|
NtotheTC posted:I just wish people would stop innovating (as much) and start improving. If you develop something cool in the JS ecosystem stop and make it better, more stable, and more generic. Don't try and develop the next esoteric cool thing. Not only that, but also learn the concept of backwards-compatibility. No, hiding behind "semver" when you remove poo poo does not cut it. APIs get deprecated in version 2.0 and are removed in version 15.0 not in 2.1 like a lot of libraries and frameworks do. It's loving insane. Then again, like you said, 15.0 will never happen since there'll be a new shiny thing to chase after.
|
# ? Oct 26, 2017 15:44 |
|
It also seems like the de facto package manager changse every year, and because of this, you end up having to maintain npm, bower, and tons of other package manager configs in your project, when they really could all be done by one of them.
Nova69 fucked around with this message at 16:02 on Oct 26, 2017 |
# ? Oct 26, 2017 15:49 |
|
NtotheTC posted:I just wish people would stop innovating (as much) and start improving. If you develop something cool in the JS ecosystem stop and make it better, more stable, and more generic. Don't try and develop the next esoteric cool thing. I have a friend who has that entire attitude. "This language is bad, use this one. It's that other language but better!" Would it surprise you if I said they were also really big on functional programming too? iospace fucked around with this message at 15:56 on Oct 26, 2017 |
# ? Oct 26, 2017 15:54 |
|
There is a global market for three, perhaps four programming languages.
|
# ? Oct 26, 2017 16:21 |
|
Doc Hawkins posted:There is a global market for three, perhaps four programming languages. and all four of them are derivatives of javascript
|
# ? Oct 26, 2017 16:25 |
|
Doc Hawkins posted:There is a global market for three, perhaps four programming languages. Just wondering, but how are you defining 'global market' there? Or am I missing a joke
|
# ? Oct 26, 2017 16:27 |
|
I still use jQuery. Only because it was big the last I wanted to learn anything about JavaScript. I have no idea how much of a horror this is.
|
# ? Oct 26, 2017 16:46 |
|
lifg posted:I still use jQuery. Only because it was big the last I wanted to learn anything about JavaScript. I have no idea how much of a horror this is. It's a horror on the Q&A forums for sure, where half the JavaScript questions you Google up depend on this weird library instead of on modern built-in language features that do the same thing concisely
|
# ? Oct 26, 2017 16:57 |
|
PhantomOfTheCopier posted:There are two issues there. First, a good helper shouldn't require the programmer to utilize tricky gyrations like offsets to achieve a basic effect; that results in confusing and, often, incorrect code. Second, it doesn't work. subtracting two numbers is a "tricky gyration"? did you graduate kindergarten? PhantomOfTheCopier posted:While it's true that [0,2) is the same as [0,2-1] for the integers, the coder making the request for [0,2) may not have any information a priori about the calls being made into the function she's writing. It may only be known that "my range starts at 0, the next starts at 2, and I have to operate within that range". This happens in physical simulations, GIS data analysis, and probably graphics as well, where the actual step size is controlled by some outside process that makes changes to achieve some overall threshold. What's really needed is [0,2-epsilon] for all epsilon greater than zero. someone that's good enough to understand clamping to an exclusive range with a defined step size should be more than smart enough to understand the concept of subtracting a single step size to create a new bound. maybe i'm not being imaginative enough i can't think of a place where having a *clamp* with an unspecified inclusive upper bound would be useful. "what's the highest number going to be in your data set?" "i don't know, it's slightly smaller than 2500" ???
|
# ? Oct 26, 2017 17:09 |
|
Munkeymon posted:Or am I missing a joke lifg posted:I still use jQuery. Only because it was big the last I wanted to learn anything about JavaScript. I have no idea how much of a horror this is. Modern trendy Javascript is all about bleeding edge broken poo poo with a dependency graph twenty nodes deep. That crowd tends to look down on older, stable libraries, and you can tell them to get hosed as long as you can prove you know what you're doing.
|
# ? Oct 26, 2017 17:15 |
|
lifg posted:I still use jQuery. Only because it was big the last I wanted to learn anything about JavaScript. I have no idea how much of a horror this is. Dumb Lowtax posted:It's a horror on the Q&A forums for sure, where half the JavaScript questions you Google up depend on this weird library instead of on modern built-in language features that do the same thing concisely
|
# ? Oct 26, 2017 17:24 |
|
VikingofRock posted:Holy cow, minos has some labyrinthine logic! This guy gets it. It's more for: code:
|
# ? Oct 26, 2017 17:56 |
Thermopyle posted:Me too, but in my case it would be 90% getting the goddamn tooling configured and 10% actually writing the thing. I just read up on both these things, and all it's doing is making me miss proper MVC separation. You don't realise how much it helps until you're working in a codebase that's just a hodgepodge where any and all of model/view/control might be changed wherever. E: Speaking of which, is it even possible to keep MVC separation when all your stuff is based on jQuery widgets? Joda fucked around with this message at 21:22 on Oct 26, 2017 |
|
# ? Oct 26, 2017 18:48 |
|
"Spookylang stands behind but one goal: to be the scariest programming language."
|
# ? Oct 26, 2017 20:41 |
|
pigdog posted:what are those?
|
# ? Oct 26, 2017 21:20 |
|
|
# ? Oct 26, 2017 21:53 |
Hey man, you gotta save them clock cycles. O(sqrt(n)) ain't no joke. I'm disappointed in their lack of commitment, though. I'd have expected every number from 0 to the upper limit of an unsigned 64 bit int.
|
|
# ? Oct 26, 2017 21:58 |
|
I want to see the unit test for that code.
|
# ? Oct 26, 2017 22:00 |
|
Joda posted:I just read up on both these things, and all it's doing is making me miss proper MVC separation. You don't realise how much it helps until you're working in a codebase that's just a hodgepodge where any and all of model/view/control might be changed wherever. You can have MVC/OO with JS (and OO in CSS - BEM). I don't know how to feel about needing a framework to achieve MVC in JS, but I like both Angular and React, so... The way I used to do it is have models as separate JS files - for example: Button object in "button.js". All elements that would have to be Buttons would have class "js-button", so there would only be a need for one call of $("[class*='js-']") to transform given element into widget (+ when inserting elements, but that's a separate matter). Data that would be required for specific widgets would be passed via "data-button" - for example - if button on click would have to gain class, it would have `data-button="toggleClass: 'active'"` (via pseudo-JSON). But in the end - DOM element would have a JS object associated with it, that would control its actions. This way Models,Controllers|Whatevs(JS) have separation of concerns from Views (HTML, or if you're more adventurous - JS templates). It might be a naive (and probably coding horror as well) approach though. There were also some edge cases with bindings - after clicking this button, window needs to play this music and flash: you can't pass this sort of behaviour as string, so you'd still end up with JS functions being part of Model in a View. This is commitment. canis minor fucked around with this message at 22:40 on Oct 26, 2017 |
# ? Oct 26, 2017 22:16 |
CPColin posted:I want to see the unit test for that code. Java code:
VikingofRock fucked around with this message at 22:58 on Oct 26, 2017 |
|
# ? Oct 26, 2017 22:18 |
|
quote:
|
# ? Oct 26, 2017 22:19 |
|
canis minor posted:This is commitment. yeah, commitment to being
|
# ? Oct 26, 2017 23:11 |
|
|
# ? Oct 26, 2017 23:19 |
|
Why not use a massive array of booleans if you're gonna hardcore like that.
|
# ? Oct 26, 2017 23:20 |
|
Joda posted:Hey man, you gotta save them clock cycles. O(sqrt(n)) ain't no joke. I don't know if it actually happened, but I heard a tale once of someone who tried that in Java (well, not max int64, but very large) and managed to overflow the relative jump range on the processor and break the JVM. Doc Hawkins posted:"Spookylang stands behind but one goal: to be the scariest programming language." My programming headcanon is that programs punished and executed by Vigil come back in this. Linear Zoetrope fucked around with this message at 23:26 on Oct 26, 2017 |
# ? Oct 26, 2017 23:22 |
|
|
# ? May 25, 2024 22:19 |
|
Joda posted:Hey man, you gotta save them clock cycles. O(sqrt(n)) ain't no joke. This is why you use idle time to calculate primes out to your available memory limit, then just check them by referencing that array, obviously.
|
# ? Oct 26, 2017 23:26 |