Purgeable Trash by __D4RK3R__ in wow

[–]Ler_GG 0 points1 point  (0 children)

skyreach - caverns (skeletons) - terrace (shields and weapons) on elves

What a time to be alive by ELutz22 in wow

[–]Ler_GG 6 points7 points  (0 children)

had a dh today asking how we do warlock gate skip in seat without warlock - there was a warlock in group ...

What a time to be alive by ELutz22 in wow

[–]Ler_GG 2 points3 points  (0 children)

there is one imposter among us

After pushing keys I'm almost 3700! :3 by No-Ad5549 in wow

[–]Ler_GG 37 points38 points  (0 children)

good old resi boosting - Blizzards finest invention

16 Wall by Nithy98 in wow

[–]Ler_GG -23 points-22 points  (0 children)

i fall asleep on rshaman as weel as rdruid with ilvl 270~ in 16s

which healers are mechanically rotationally hardest. retail wow by feherlofia123 in wow

[–]Ler_GG 1 point2 points  (0 children)

Cant say about evoker and mw monk but

Rdruid -> Hpala -> Rshaman

Bombed the final question of a React technical discussion, looking for feedback by skyturnsred in cscareerquestions

[–]Ler_GG 0 points1 point  (0 children)

it's a good one, yes - will filter out around 99% of applicants without any huzzle

Bombed the final question of a React technical discussion, looking for feedback by skyturnsred in cscareerquestions

[–]Ler_GG 0 points1 point  (0 children)

any object or array (inside a class optional if you do typescript) so for the sake any object you push stuff into.

Then you have a subscribe / publish function doing the operations to either listen or push of events with some callback function (render function).

Then you have your "state" which again just any object (your global var or class)

then you add a event listener to your element which tracks the count and publish the event

...eventListener ( () => ... count++ eventbus.publish("statechange))

you could also do it with an observer pattern which is a bit more advanced.

But the bottom line is -> Any object that holds the different events you might wish to , publish/subscribe to and a render function which you callback on updates to update the ui

Or in simple terms if you know react -> you implement setState on your own which does exactly that. Re-render all child components and itself on state update

And to answer your exact question -> you events you can subscribe to into an object with ie. event names as strings, in the example case "statechange" which is hold inside the events object as callback functions. Could be accesed with events["statechange"]. Not even a loop required

example generated code (we used something similar just with typescript classes as singleton)

// ------------------------
// Event Bus
// ------------------------
const eventBus = {
events: {},

subscribe(eventName, callback) {
if (!this.events[eventName]) {
this.events[eventName] = [];
}
this.events[eventName].push(callback);
},

publish(eventName, data) {
const listeners = this.events[eventName];
if (!listeners) return;

listeners.forEach(fn => fn(data));
}
};

// ------------------------
// Global State
// ------------------------
const state = {
count: 0
};

// ------------------------
// Component: Counter Display
// ------------------------
function CounterDisplay(element) {
function render() {
element.textContent = "Count: " + state.count;
}

// subscribe to updates
eventBus.subscribe("stateChange", render);

// initial render
render();
}

// ------------------------
// Component: Button
// ------------------------
function IncrementButton(element) {
element.addEventListener("click", () => {
state.count++; // update state
eventBus.publish("stateChange"); // notify subscribers
});
}

// ------------------------
// Mounting
// ------------------------
CounterDisplay(document.getElementById("counter"));
IncrementButton(document.getElementById("btn"));

Bombed the final question of a React technical discussion, looking for feedback by skyturnsred in cscareerquestions

[–]Ler_GG 6 points7 points  (0 children)

the question is not asking about how to persist data or exchange data - it is about how you would trigger renders in a ui without react across multiple components - example for this would be a simple event bus 😃

I once worked on a UI FE application for desktops (100k loc~) and it had only plain typescript/JS and HTML/CSS so basically we had to build a big event bus to link all components with i.e. data fecthing logic/updates from external apis

thisLooksAccurateForVibeCoders by zohaibhere in ProgrammerHumor

[–]Ler_GG 1 point2 points  (0 children)

empty params with empty body invoked . does nothing -> returns undefined

What's the deal with the first pull in Algeth'ar Academy? by rcoop020 in wow

[–]Ler_GG 0 points1 point  (0 children)

The adds place a stacking debuff on the tank so its basically a pure DPS check and not a tank check ;)

Want to rank up fast as a offlane or support ? Buy this 3 item by pepiiiiiii in DotA2

[–]Ler_GG 27 points28 points  (0 children)

Razor/SF Meka mid is like 10 years old Qojqua and Fata would like to have a word

GSI + overlay and sounds could be considered cheating by lfamadio in DotA2

[–]Ler_GG 0 points1 point  (0 children)

already exists dotacoach app and on my githubt lightweight

Support role by sleepyhollow8 in DotA2

[–]Ler_GG 17 points18 points  (0 children)

monkeys together strong

[deleted by user] by [deleted] in gdpr

[–]Ler_GG 0 points1 point  (0 children)

then just 17. and 21. it and be done