|
Soricidus posted:yeah that also works but i was having too much fun to include it mmmm I was told this would be non-spooky edition, but clearly that's not the case
|
# ? Nov 14, 2017 19:26 |
|
|
# ? Jun 9, 2024 03:03 |
|
meanwhile, in opposite worldquote:* Neutronium is a library to create .NET desktop applications using HTML, CSS and javascript. remember all those developers saying 'man, web development is such a pleasure and joy but having to write desktop application in c# is terrible, i wish i could use the vastly superior js stack'
|
# ? Nov 14, 2017 19:41 |
|
hmm, it seems android's uri builder and google's maps api disagree on what a uri looks like
|
# ? Nov 14, 2017 22:07 |
|
this was a pain to write and check, but i think it'll be much bettercode:
code:
|
# ? Nov 14, 2017 22:11 |
|
actually it's that android's uri builder is garbage
|
# ? Nov 14, 2017 22:13 |
|
is that rust?
|
# ? Nov 14, 2017 22:31 |
|
HoboMan posted:is that rust? ya. it's slightly paraphrased (hence the awkward indentation between the standalone constants and the methods on a struct), here's a better example i put together: https://play.rust-lang.org/?gist=161be2bdf39ad60c07f71441227dc0da&version=stable which I'm posting on the rust gitter because i'm getting errors i don't understand when i try to write a version for mutable pointers gonadic io fucked around with this message at 23:09 on Nov 14, 2017 |
# ? Nov 14, 2017 23:06 |
|
ctps: target: current: i think there might be an error in my math somewhere e: getting closer! gonadic io fucked around with this message at 23:46 on Nov 14, 2017 |
# ? Nov 14, 2017 23:38 |
|
gonadic io posted:ctps: Quite possibly. Doing animation stuff where I have to manage various steps of a slider and positioning so it's 3d like, and I curse the fact that I never got a particularly deep maths education because really that poo poo is basic trig, it shouldn't have taken me nearly as long as it did.
|
# ? Nov 14, 2017 23:43 |
|
Maluco Marinero posted:Quite possibly. Doing animation stuff where I have to manage various steps of a slider and positioning so it's 3d like, and I curse the fact that I never got a particularly deep maths education because really that poo poo is basic trig, it shouldn't have taken me nearly as long as it did. actual thread content: https://www.redblobgames.com/grids/hexagons/ is a loving amazing resource for giving you all the numbers about hex indexing and trig and positions and poo poo. it explains the maths too, but who cares it also gives you the coordinates of the vertices and tells you what coord system to use.
|
# ? Nov 14, 2017 23:48 |
|
gently caress yeah did it:
|
# ? Nov 14, 2017 23:51 |
|
gonadic io posted:gently caress yeah did it: All the hexagons are rotated 90°?
|
# ? Nov 15, 2017 00:07 |
|
NihilCredo posted:meanwhile, in opposite world [internal screaming]
|
# ? Nov 15, 2017 00:46 |
|
gonadic io posted:actual thread content: Noice.
|
# ? Nov 15, 2017 00:52 |
|
found a new variant of odd code formatting for HTML: all the tags sit at the end of each line,HTML code:
|
# ? Nov 15, 2017 00:52 |
|
gonadic io posted:gently caress yeah did it: I can't stand the green-red, please choose nicer colors. here take these: #6A8B84 rgb(106, 139, 132) #BD9431 rgb(189, 148, 49) those are the colors of the horses in your avatar
|
# ? Nov 15, 2017 00:58 |
|
c tp s: gently caress protobuf
|
# ? Nov 15, 2017 01:09 |
|
MrMoo posted:found a new variant of odd code formatting for HTML: all the tags sit at the end of each line, This is the kind of thing you see if it's critically important that there be no white space between one <button> and the next.
|
# ? Nov 15, 2017 01:40 |
|
Doom Mathematic posted:This is the kind of thing you see if it's critically important that there be no white space between one <button> and the next. It really is nicer for layout concerns if you can render without whitespace in between (luckily the default for React). No white-space means things you often do with floats or flexboxes often layout with inline-block real nicely.
|
# ? Nov 15, 2017 03:11 |
|
It's funny how JavaScript was seen as some slapdash language cobbled together in a week under duress as a stopgap solution. Now it's the gold standard for browsers and making its way heavy into mobile and now desktop apps. There's nothing on the horizon that can even remotely challenge it. JavaScript is strong and it will loving kill you. Good thing no one actually use prototype inheritance any more.
|
# ? Nov 15, 2017 03:57 |
|
were you looking for a grey thread friend?
|
# ? Nov 15, 2017 04:00 |
|
wide stance posted:It's funny how JavaScript was seen as some slapdash language cobbled together in a week under duress as a stopgap solution. source your quotes
|
# ? Nov 15, 2017 04:03 |
|
wide stance posted:JavaScript is real, he is strong, and he's my friend.
|
# ? Nov 15, 2017 04:04 |
|
a witch posted:were you looking for a grey thread friend?
|
# ? Nov 15, 2017 04:07 |
|
NihilCredo posted:meanwhile, in opposite world this is a common affliction among people with web “development” brain damage
|
# ? Nov 15, 2017 08:54 |
|
react looks overengineered to all gently caress. i can see the problem they're trying to solve, and i understand why react was designed that way, but holy heck
|
# ? Nov 15, 2017 09:44 |
|
redleader posted:react looks overengineered to all gently caress. i can see the problem they're trying to solve, and i understand why react was designed that way, but holy heck why does it look overengineered? it’s got a reasonably small api, a super predictable model, and uses that to deliver on performance goals through the optimum development path, rather than as a post optimisation. there’s a reason it’s top dog right now in UI rendering, it works. Angular 1.x is the definition of overengineered, overlapping concepts, all batteries included, none of it done well.
|
# ? Nov 15, 2017 12:33 |
|
Maluco Marinero posted:why does it look overengineered? it’s got a reasonably small api, a super predictable model, and uses that to deliver on performance goals through the optimum development path, rather than as a post optimisation. there’s a reason it’s top dog right now in UI rendering, it works. Lots of people using it are not doing so because they actually need the performance benefits of virtual DOM. Many design choices in React are there to support the virtual DOM. React isn't over-engineered for what it is supposed to do, it just moved many people to a way of working that would allow them to make their poo poo much more performant than >90% of them need.
|
# ? Nov 15, 2017 12:58 |
|
Maluco Marinero posted:why does it look overengineered? it’s got a reasonably small api, a super predictable model, and uses that to deliver on performance goals through the optimum development path, rather than as a post optimisation. there’s a reason it’s top dog right now in UI rendering, it works. yeah, you're right. i misspoke; i said 'overengineered' when i actually meant 'verbose and boilerplatey'
|
# ? Nov 15, 2017 13:00 |
|
reactive programming is easier for stupid people like me to write without making mistakes
|
# ? Nov 15, 2017 13:54 |
|
prisoner of waffles posted:Lots of people using it are not doing so because they actually need the performance benefits of virtual DOM. Many design choices in React are there to support the virtual DOM.
|
# ? Nov 15, 2017 15:12 |
|
fart simpson posted:reactive programming is easier for stupid people like me to write without making mistakes i loving love declarative programming e: unironically too
|
# ? Nov 15, 2017 15:35 |
|
mystes posted:have to have virtual doms. text me
|
# ? Nov 15, 2017 15:38 |
|
Symbolic Butt posted:I can't stand the green-red, please choose nicer colors. here take these: I make all of my prototypes yospos green and black
|
# ? Nov 15, 2017 15:39 |
|
Maluco Marinero posted:why does it look overengineered? its got a reasonably small api, a super predictable model, and uses that to deliver on performance goals through the optimum development path, rather than as a post optimisation. theres a reason its top dog right now in UI rendering, it works. We still use Angular 1 at work and I really want to start migrating some of our stuff to react/redux for the virtual dom stuff and better state management.
|
# ? Nov 15, 2017 15:43 |
|
redleader posted:yeah, you're right. i misspoke; i said 'overengineered' when i actually meant 'verbose and boilerplatey' not really though? you write a function from a props object to a tree of elements, and jsx gives you a decent shorthand for doing that. what would you simplify further? state management is performed asynchronously, i guess there is that, but you do need to notify react that your component state is changing somehow, otherwise you won't ever re-render. now, redux, yeah that's kinda verbose. but there's a reason why the redux guys hop up and down for an entire chapter in their introductory documentation saying "hey maybe you don't actually need this if you're doing something simple!". even then, redux is not an all-or-nothing thing; you can have small bits of localized state in your components and bigger more widely-used chunks in the redux store. like you really don't have to store the current sort order of every single table in your ui in redux and create actions, reducers, and selectors for every single one of them, stuffing that state into this.state is perfectly fine.
|
# ? Nov 15, 2017 15:55 |
|
c tps: i suggested react for our new thing and the other devs built it really fast and it's full react-redux i now have add a number to a screen i have no loving clue how to do this
|
# ? Nov 15, 2017 16:30 |
c tp mysql s:SQL code:
|
|
# ? Nov 15, 2017 16:31 |
|
YOSPOS > i actually have reasons to post here unlike half of the people with impostor syndrome lol nice. would be better with "terrible programmers:" at the front though e: now i need to work out how to draw a border. i want the line to be inside the hex, so it can't be specified using the same coords as the hex verts i think e2: also i'm pretty sure this framework doesn't support selection mode so i have to work out which hex gets clicked on directly from the mouse pos hurray. luckily the hex resource i posted about earlier tells you the math to do this gonadic io fucked around with this message at 16:48 on Nov 15, 2017 |
# ? Nov 15, 2017 16:45 |
|
|
# ? Jun 9, 2024 03:03 |
gonadic io posted:YOSPOS > i actually have reasons to post here unlike half of the people with impostor syndrome
|
|
# ? Nov 15, 2017 16:53 |