« first day (2477 days earlier)      last day (2464 days later) » 

2:00 PM
happy weekend
 
if you're only working for the weekend you're wasting your life and lying to those around you
it's a terrible thing and you should feel bad
 
@rlemon i do
 
good
 
but how am i lying to those around me
 
they know
 
2:04 PM
@rlemon I'm basically working and living for bar fights only, which, while mostly happening on the weekends, could occur on a thursday night as well... How's that?
 
you should be happy enough with your life that you don't need to work for the weekend. if not you're failing
god dammit, where is @Loktar
I need the link
 
there's nothing i like to do..
so im doing what pays me enough
 
oh no
why static attributes ...
-_-'
 
@rlemon that's one of the smallest features yet
but god damn if they aren't nice
 
if it's non-static, then it is good ...
 
2:08 PM
so much less Foo.prototype. and stuff
@KarelG both of those things already exist and are heavily used
 
if you put an attribute as static, you're hooking it to the prototype chain ...
I rather want to see it preserved for functions
 
I like the idea, just not the syntax
 
or object literals
 
@KarelG wat
 
#prop is kinda ugly
this.#prop is even worse.
 
2:09 PM
static ones don't go through the prototype
@rlemon that part is awful
I would have preferred a keyword, like TS does
 
private fields is super neat... just.. ugh. fuck man.
 
@ssube how would you keep one variable same among all objects created of one function ?
 
you don't care about whether the field is private when you're accessing it, just when you declare it
 
@ssube yea, private foo = bar() would be so much better
 
*from one function
 
2:11 PM
@KarelG you assign to the constructor, just like you do today? That's static properties work in every language I'm aware of.
 
no it doesn't work like this in C# or Java
 
@ssube sure it does
 
Each class with a static attribute holds a same reference to one instance that holds the variable result
 
@KarelG really? You don't use Class.static?
@KarelG that's also how JS does it
 
no it doesn't o.o
 
2:12 PM
oh, you mean they have a fake instance
no, it doesn't do that, that's a stupid way of handling it
 
yet they might to do that to implement that proposal ...
 
when the class itself is mutable, you don't need a shadow instance to hack around it
 
<_<
 
@KarelG why?
This isn't adding anything
 
some ES features gets implemented by dirty but neat tricks
to make things easier.
 
2:14 PM
the "trick" here is just assigning to the function...
unless they want to make static properties work with frozen classes or something, why would they need a new method?
 
eh, about that frozen classes with Object.freeze
 
if you change the static field, is it allowed to modify too at the frozen objects ? :D
goes against the principle of frozen objects IMO
 
@rlemon huh, is that real
 
> However, in JavaScript, because we can't use this.field for private properties (which I'll get to in a second), we need a way of syntactically communicating the relationship. By using the # in both places, it's much clearer what is being referenced.
 
2:17 PM
@rlemon that's interesting reasoning.
 
never heard of it before
 
so basically, they think we're not capable of remembering which is private
 
TS did all of that without the idiocy.
 
pretty weird addition to untyped js
 
@Mosho lol, like that's gonna last. Every other proposals adds something typed.
 
2:18 PM
I changed how mineweeper.herokuapp.com ‘s bombs are seeded 😀 have fun!
 
it makes fake classes better at faking them I suppose
 
@ssube this is beyond "sugar" though
 
(clicking a bomb still does not end the game)
 
encapsulation is the only valid reason I can think of for #field.
 
the thing about real private variables, how do you test
 
2:19 PM
the rest just seem like trying to figure out more reasons for it
 
@rlemon honest question what is the point of private methods when they can be emulated with symbols
 
to test a private, you need a getter
 
@ssube Or in PHP they have a whole Reflection class thingy...
 
private is easy enough to avoid in good code, they could have omitted it
 
@William private methods with Symbol is a hack
that's why
 
2:20 PM
@ssube yeah, hate it
 
@Neal that's fucked
 
I really do not like the hash symbol addition... it is silly...
@ssube lol yea
 
I found a bug
 
@KendallFrey in mine weeper?
 
yeah i don't like it either
 
2:20 PM
I'll have to try to reproduce it, i fucked it up
 
I wonder who is pushing it
 
yeah
 
^I agree the hash symbol addition is the same in what language?
 
@William nothing about a symbol-named method is private
 
Also, the double-button click still doesn't work
 
2:21 PM
@KendallFrey /shrug it works for me and others who have tried it.
 
Still I second that using #foo to denote something as static is not a good proposal
 
what was the bug you found?
 
private fields can't be dynamic, so no computed property names on them or bracket notation
 
despite I dislike the addition of static fields
 
also a 'reason' for the #
 
2:21 PM
 
@KendallFrey lol yea... ive hit that one... idk how to fix.
wait
why is that bug?
is the top one empty? or a bomb?
 
It shouldn't be blank
 
ooo
yea that is a bug
 
and can you reference them like this?
 
it is empty right @KendallFrey?
 
2:22 PM
Because it's not exposing squares that cannot have bombs
 
class MyClass {#foo;}

class MyClass2 extends MyClass{
    constructor(foo) {
        this.#foo = foo;
    }
    incFoo() {
        this.#foo++;
    }
}
 
That is a bug introduced today with my new logic
 
uhm ...static attributes should be kept unmodified ...
 
@William extended classes do not have access to private methods/ vars etc of the parent
 
I've encountered plenty issues with codes that allows static fields being modified
 
2:24 PM
array (size=1)
  1 =>
    object(
 
darn... how can you create a dynamic "class name" so you have a dynamic .constructor.name value?
 
WTF PHP?
 
without using eval
 
@KarelG # denotes private fields, not static.
 
@GNi33 What's wrong?
 
2:24 PM
I just dont like the addition of the # other languages are fine and dont need an extra symbol to indicate privacy
 
@littlepootis look at the size of the array, and then at the first index
 
@Neal other languages have a better type system
 
Yeah, it's buggy.
 
@rlemon oh sorry. started read the proposal
 
@Neal source. That isn't how they work in Java
 
2:25 PM
@rlemon yes... private blah = 'foo' and then you can just use this.blah. not extra symbols
 
then you need to look up the type of the object referencing the property
 
ah, array_filter probably screws with me here
 
I get the performance problem
 
@rlemon oh no... whatever shall we do...
/shrug
 
@Neal what they did
 
2:26 PM
</sarcasm>
 
PHP arrays are just objects.
 
decorate the field so it knows where to look
 
Neal I guess I'll take your word for it.
 
I don't like it, but after reading the reasoning fully now, it makes sense I suppose
 
> Private fields may not be deleted
I just took this from the draft
 
2:28 PM
It was a copy/pasta issue @KendallFrey nice find github.com/maniator/minesweeper/commit/… Fixed now on next release (up in a few minutes)
 
It's not really buggy, just fucked up by design.
 
what about public ones :)
 
@KamilSolecki Divinity: Original Sin, Dragons Dogma, Gothic series (a bit older), Risen (Same devs as Gothic but newer) series, you've played elder scrolls games too right?
 
@Loktar tes ive played, gothic was one of my favorites, played them all without gothic 1
 
also happppppppppy Friday @KendallFrey @rlemon @FlorianMargaine
 
2:31 PM
Thanks for suggestions
 
@KamilSolecki hah yeah Gothic series was pretty cool man
yeah np, I mean there are a ton those are just some i could think of sort of related
Honestly though nothing comes close to Witcher 3 imo
 
@Loktar I think that p is a little too orange to be healthy
 
lol
 
@KamilSolecki did you play morrowind as well?
 
2:32 PM
might be interesting for you
 
I believe ive spent a big Chunk of my childhood on gothic
@GNi33 obviously :)
 
k should be up and fixed about now @KendallFrey or maybe 30 more seconds?
 
haha glad I recommended it then, a lot of people have never played it in the US kind of crazy (Gothic series)
 
it's the reason I'm not touching Skyrim
 
2:33 PM
Gothic was a german game right?
Or was it from Poland as well?
 
@Neal still broken for me
 
Yeah well German devs, but it had English releases
 
Now it's not loading
 
I loved Morrowind one of my fav games, but I still really enjoyed Skyrim too
 
@KendallFrey cache ftw... I gotta get rid of this local cache thing that create-react-app gives me... it is great for websites, not so great for every changing games lol
 
2:34 PM
yeah, I'm scared of Skyrim
 
Going back to Morrowind you remember what was annoying about it, like everything being stat based so missing your swings 20 times in a row lol
 
@Loktar Isn't a Morrowind remake on the way?
 
but man the spell system was amazing
 
I can't afford to sink in as many hours as I did with Morrowind. If it's as good, that might happen though
 
@Trasiva not that I'm aware of
 
2:34 PM
Also, that alert is damned annoying
 
i played a lot of Morrowind
 
Oh, it got added to ESO
Nevermind
 
@Trasiva they're building some MMO around the morrowind continent as far as i'm aware
 
windows application to run on web application and have to store windows application audio file in web folder



is it possible?
 
@KendallFrey https://mineweeper.herokuapp.com/static/js/main.c089d60c.js is the latest
 
2:35 PM
ESO added Morrowind as an expansion
 
Yea
 
ah, okay, didn't get what ESO was at first
 
I was misremembering
 
yep, that
 
which is balls, because ESO+ promises "all new content and DLC" but they tagged it as an expansion so you had to pay $80
 
2:36 PM
@Trasiva how
 
@MohanSrinivas Don't ping random people.
 
@Trasiva he thought you were responding to his question
wasn't really random.
just misinformed.
 
nice opening first click
it is yoshi!
 
Guys, whatsup with opera mini. it supports nothing
2
should I just stop worrying about opera mini
 
yes
 
2:38 PM
^
 
@Nick Did people ever worry about Opera/Opera Mini?
 
good, because I never supported opera mini
I don't think so neal
 
3rd world countries use it I have heard
 
I feel bad for people that use Opera mini
I should check if the user uses an opera mini, and direct them to a stupid site
 
that browser is rarely used (mobile phone)
They could simply fork from the main project (Opera) and reconfigure it for mobile phones but they didn't
 
2:40 PM
@Nick that's racist!
 
Last used it on my java-enabled phone from 2004 or 2005.
 
nuh uh, using Opera is a choice
 
it's a separate project, with their own programs
 
@KarelG well, it did serve a completely different purpose
 
hmm not cost effective if you ask me
 
2:41 PM
Opera Mini weighed under a mega byte iirc.
 
I should get opera mini browser, and then send angry mails to web developers that their site is broken
 
it's a rather efficient browser for static pages
 
Hmm, how does this work? jsfiddle.net/649spdff Seems when I assign a ref to a element it returns the toString() of the element instead of the element
 
and that was its purpose.
it's not really meant to execute a lot of js
 
Ronni, dude. Script tags in the HTML in JSFiddle? :(
 
2:43 PM
I think there was even a hard limit on execution time, but I'm not sure
 
Well I think it has something to do with frames, cause i cant replicate it in the script area
 
Wait for DOMContentLoaded.
 
^--
 
okay thanks
 
how the hell did you manage to get an HTMLParagraphElement object
I never got that one
 
2:45 PM
the first selector call is returning the paragraph, but the text isn't "there" yet
 
replicated in the script area
@Nick I'm wondering that myself.
I wonder if jsfiddle spoofs their own console object
console.log(obj) shouldn't be calling .toString on it
 
@rlemon I can reproduce it locally
but I guess it must be the dom content loaded
just havent run into it before
 
I'm going to assume Window.status is a thing and is forced to be a string.
just like you shouldn't really have a variable called name
because that's the only way this makes any sense
 
@rlemon It seems to be a thing.
 
https://jsfiddle.net/649spdff/4/

is queryselector the only way to get an HTMLParagraphElement?
 
2:47 PM
no
pretty sure the issue is the variable naming
 
@rlemon I am wrttting a POC for XSHM and doing a bit nasty stuff
 
lol nice
 
its not really for a code example
 
rename the variable from 'status'
 
2:47 PM
oh wait, it's the .toString() that changes it so HTMLParagraphElement
 
dark ad hoc innards of the browser
nice find
 
@Nick yes, implicit .toString
 
@rlemon yea renaming away form status works
 
til: classname with status automatically does .toString() when you use queryselector...
 
it isn't the classname
 
2:49 PM
I wonder if a co-worker ever gets that error, then I can be the hero of the day
 
its the variable name
 
var status makes a window.status which is already reserved for the windows status bar text
 
ah ofc
thanks @rlemon
 
and is a string only. so the getter probably calls .toString implicitly.
 
my bad, meant variable name*
 
2:50 PM
same with var name = {a:1}
which i recalled from a previous SO issue, so this is pretty much the same shit
 
(=
well that was fun, thanks, I was really not understanding it for a moment
 
that is a very legitimate thing to trip over
 
quick question;
when you delete and add an element dynamically, it won't automatically get the onClick listeners

is there a way in JS to copy the element, including its listeners?
 
though playing with global scope isn't so legitimate
 
@Nick inline listeners
<div onClick="str"></div> <- when you clone the element the attrs are cloned and therefore the listeners as well
 
2:53 PM
lesson learned
 
is that the only way?
 
the only automatic way I know of
 
might be able to just move the element
 
You can attach an event listener to its parent and delegate.
 
^ is probably the best option
 
2:54 PM
yeah that is what I currently have
was still wondering though
$("*container*").on("click", "*item that gets added*", function ()
 
does .cloneNode() not copy over the event listeners ?
 
no
not tmk
because that's not part of the node, it's a listener you've attached in JS
 
so, there's a plugin for VSCode called "prettier", actually works super well for formatting code
 
> Cloning a node copies all of its attributes and their values, including intrinsic (in–line) listeners. It does not copy event listeners added using addEventListener() or those assigned to element properties
bah
 
the link between elements and listeners is a problem for both sides
the DOM doesn't copy the listeners, JS won't clean things up if they're listening, etc
this is why we need to kill off the DOM API
 
2:57 PM
web should be all xslt
2
much saner
 
user1596138
@rlemon Yis
 
user1596138
JSXSLT
 
@rlemon it sort of is, sadly
 
dat question
0
Q: What SQL join do i need?

vkrI have 2 tables. Table1: Name Date Project Hrs VKR 0727 X 8 VKR 0728 A 4 VKR 0728 B 4 VKR 0729 C 8 Table2: Name Date Project Hrs VKR 0728 123 8 VKR 0729 234 8 VKR 0730 345 8 I need to join these tables on Name and Date and the output I ...

 
@nick have code that generates the element you need with the event listeners instead of using stuff like cloneNode
like any view library
 
2:58 PM
what a well laid out question. Look at those examples, both of inputs and outputs.
shame it's about oracle-sql
 
isn't that hard on the browser?
 
@rlemon gtfo with that shit
 
Have to do it >100 times
 
omg, 100 times?
 
@Nick that's not a lot
 
2:59 PM
browser will surely crash
might have to reinstall OS
 
loading 10,000 table rows takes like half a second.
 
ie5 can only do 40 elements, ie6 can do up to 80, ie7+ can handle 100
 
I think 100 event listeners will be fine
 

« first day (2477 days earlier)      last day (2464 days later) »