« first day (3336 days earlier)      last day (1595 days later) » 

user7659542
8:22 PM
@geisterfurz007Stopthischaos my PHP script is not being triggered/executed
 
user7659542
I know my javascript code is being executed, because when I log stuff there I can see it
 
user7659542
in other words the post/get to the php script doesn t work
 
8:34 PM
Is it ok to ignore promises returned by functions?
func() // returns promise
or should i put something like void
void func()
 
i mean
if it returned a promise, making it void would invalidate it
 
Asking because my IDE keeps complaining my promises are ignored.
But the promise would still run, right?
 
yes, by invalidate i mean if you typed your function as void but it returned a promise, tsc would stop at that
 
Yes. I just don't care what happens after the promise resolves.
 
i've never had a case where my ide complained that i wasn't using a returnvalue
 
8:38 PM
ah it looks like i can turn it off in the settings, guess its not an issue
thanks
 
kinda thing you might want to turn on when looking for a mistake, but otherwise yeah i'd keep it off
 
9:20 PM
Webstorm?
Yeah I'd turn that inspection off
tripped me up when I first started writing es6
 
yepo webstorm
 
@JBis actually, I thought of a way to edit other user's messages without them having to provide me their credentials
 
Hey guys
 
still a bit of trust related issue, but they would basically host a service that allows me to edit their messages
 
yeah no lol
 
9:27 PM
I would build that service (clone my editMessage service) and let the user provide their credentials to their hosted application
 
Can someone explain me how does this.photos is updated ?
photosRaw.forEach(p => {
                const photos = this.selectionDone && this.photosRaw ? this.photosRaw : this.photos;
                photos.push({id: p.id, faces: p.faces_data, url, thumb, portrait, count: 0, date: p.shoot_date, sort_keys: p.sort_keys});
            })
 
@Baldráni Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
I would simply have that endpoint to call
 
@Wietlol What you could do is simply post a quote of their image url with their handle right after them and then move their message (assuming you had RO) to trash after timeout.
 
hmm...
 
9:28 PM
@Baldráni Because its by reference:
 
that could work, but it requires room permissions
 
||> const arr1 = []; const arr2 = arr1; arr1.push("test"); arr2
 
@JBis ["test"] Logged: ``
 
room permissions are easier than getting users to host a microservice for you to use their account
probably
 
arr2 is updated even tho we updated arr1 because they reference the same object.
^ thats what happens when you are reading and typing at same time lol
 
9:30 PM
||> const arr1 = []; const arr2 = arr1; arr1[0] = 'test'; arr2
 
@forresthopkinsa ["test"] Logged: ``
 
importantly, it works by index access too
 
Is there a reason to do that that way ?
 
to use index access over array methods, or to modify objects by reference?
 
@forresthopkinsa but its easier for me :D
 
9:34 PM
hahaha questionable
 
also... "use their account" = "edit their messages"
 
'Right thanks :)
 
anyone experienced with git?
my tool that deploys my libraries stopped working yesterday (out of nowhere)
the tool basically
- creates a new temporary directory
- clone the libraries repository
- copy the new stuff in it
- commit and push the new stuff
but after the clone, it suddenly gives me this error:
> fatal: 'origin' does not appear to be a git repository
how can I debug this issue?
 
9:49 PM
git remote -v
find out what your origin remote is pointing to
 
I need to learn how to use git. I have been using JetBrains built in tools for too long.
 
what does remote -v do?
 
it lists your remotes
verbosely
 
it outputs nothing
 
are you in a git repository?
 
9:50 PM
ye
 
@JBis git is very powerful but it can be hard to pick up. It's like grokking OOP for the first time
@Wietlol paste your script
 
I dont have a script
 
paste your sequence of commands
 
uhm... not sure how I can get them
it is managed by a plugin of my build tool
 
your "tool that deploys your libraries"
oh I see
 
9:52 PM
$ history | grep git
 
need to somehow enable the commands logging
 
it isn't going to be in his shell history if he didn't run it himself
what's your build tool
give me something to work with here
 
oh gosh this is icky
 
icky?
 
9:54 PM
yeah
paste your maven manifest
 
Reasons why I can't stand java projects:
 
found the debug option
 
 
@Wietlol I'm betting the problem is in your pom.xml
@JBis agreed, it's a stupid convention
 
Im not sure
I have a ton of projects with the same pom
 
9:56 PM
just one more thing that Kotlin (rightly) drops from its parent lang
 
it worked fine until at some point yesterday, it stopped working
 
if your configuration didn't change then maybe your repo is unreachable
 
@JBis maven folder structure is best
 
where is the repository hosted? what remote URL are you providing your script
@Wietlol that directory structure is a Java thing, not a Maven thing
 
/src/main/java is maven
/ar/com/synergian is java
 
9:57 PM
then why do Gradle projects all do the same thing
 
and I like both tbh
gradle copies maven's conventions
 
Explain why you need 7 folders to get to your files
 
why does gradle load its dependencies from maven central?
@JBis SLA
 
whats sla?
 
meh. fair enough
2 mins ago, by forresthopkinsa
where is the repository hosted? what remote URL are you providing your script
 
9:59 PM
Single Level of Abstraction
git:releases://git@github.com:Wietlol/maven_repository.git
debug=true doesnt really give me more information
 
wtf is "git:releases"
that isn't a proper repo url
 
> [INFO] Executing: cmd.exe /X /C "git status"
[INFO] Working directory: ...\AppData\Local\Temp\wagon-git-3a4aaec42391578f8343d1f1ca7df59bcce02052
[INFO] [git] On branch releases
[INFO] [git] nothing to commit, working tree clean
[DEBUG] RAN: git status / $? = 0
[INFO] Executing: cmd.exe /X /C "git show-ref refs/remotes/origin/releases"
[INFO] Working directory: ...\AppData\Local\Temp\wagon-git-3a4aaec42391578f8343d1f1ca7df59bcce02052
[INFO] [git] 118ca141ea646ed533514d1260a0c3dc628750ae refs/remotes/origin/releases
@forresthopkinsa that is the configuration in the pom
looks like it is fine
 
Also did you know that JetBrains has an IDE that allows you to create your own programming language? I don't really understand it but it looks insane and totally over-engineered for any project. jetbrains.com/mps
 
so that's what "git:releases" means. This is awful
@JBis yeah it's v neat
 
repository type : branch name
 
10:04 PM
That is entirely unaligned with proper Git usage
and this library should be sued
for heresy
 
I am used to AWS ARNs so I kind of get used to stuff:and:more:stuff
 
the prefix in any URL is supposed to be the protocol
 
well... I think I fixed the issue
 
:clap:
 
10:06 PM
The prefix is not the problem but it makes it impossible to apply normal git wisdom
caching? great
 
I cleared my local cache
I think I might have attempted a deploy of two libraries at the same time
 
🚽
 
10:31 PM
oh gosh it's you
 
Who me?
 
no
yesterday, by forresthopkinsa
fwiw, Kevin, Cereal, Madara, this guy^ and others still hang around
I've made a complete fool of myself
 
What happened in this room? Saw the github issue
 
Cap died
||welcome
 
Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
10:33 PM
James is the new Caprica
 
(Ive been gone for like 11 months)
 
has it been that long
well, welcome back pal
 
Thanks, is the room less toxic now?
 
oh yeah
 
All I really remember are the massive e-egos
Good to hear, maybe I'll stick around this time
 
10:38 PM
no one here to have an ego, it's much more serene now
 
Are there any new rules?
eg no offtopic?
 
Nah, as long as discussion doesn't get rowdy or in the way of on-topic discussion
 
Ah, well, speaking of serene, I've been enjoying death stranding lately.
It's a nice game as long as you're not expecting a shoot-em-up
 
I've heard it's good
 
11:00 PM
kinda surprised i'm not hearing much about outerworlds
maybe due to the way they launched it?
 
The people I talk to seem to not like the story/loot system
Eg: There are obviously "good" and "bad" choices with no exploration of grey areas.
 
11:16 PM
@user400654 i heard a lot of the old old regulars moved to a discord room, is that still operational?
 
11:32 PM
I doubt they would have advertised it
 
¯\_(ツ)_/¯
i mean, how the heck do you think i opened said dialog box that this displays on
 
Why Typescript when JavaScript is king?
 
most useless tip ever
typescript isn't a javascript replacement
 
Because you get types and better oo like interfaces and stuff
 
TypeScript > JavaScript
 
11:38 PM
it's just a linter at the end of the day
 
what
that's ridiculous
it is not a linter
linters don't compile code
 
lol
 
More long lines of code... I will remain busy whole year doing this
 
ok, so it's babel + a linter
 
even only the compilation makes TS a bless
 
11:39 PM
he is trying to trigger me
 
it allows you to use new features even in older browsers
other than that, TypeScript is one of the best languages currently available
 
ftr i use typescript in every new project
 
it allows you to use features that don't exist in modern JS
TS had classes before JS did
 
so did babel
 
TS currently has null coalescing and optional chaining
 
11:40 PM
the composable type system for one is almost the best out there
 
both conspicuously lacking in JS
I don't believe that Babel had classes prior to the ES class design
 
@muhammadtayyab keep in mind, more lines of code is not worse
or... a bad thing at all
 
If you are going for shortest lines go write some brainfuck
 
@JBis how about Jelly?
 
11:45 PM
I am behind few months before I could touch TypeScript or babel, but meanwhile let's keep JavaScript and JQuery rolling in for me
 
I use Kotlin
it is a bit behind on TS in kotlin-specific apis, but its syntax is just amazing
it also has a tool to convert TS definitions to kotlin api
but that is a bit meh
 
Kotlin is indeed The Best
and yes I've used that tool quite a bit, it gets the job done but it can be unwieldy
 
do you know dart?
 
sure, I've used it for Flutter
 
I think Kotlin, TS and Dart are currently the top 3 languages
do you know any other languages that are really interesting in their language design?
 
11:53 PM
interesting != useful, but Elm is pretty cool
 
hmm... I suppose Whitespace is also interesting :D
 
I think Dart is only useful because Flutter is excellent
It in itself is a pretty mediocre language
 
the features I mean out of those languages are stuff like these
TS: Union types and enum types
Kotlin: Lambda expressions
Dart: interfaces
 
I think when people talk about well-designed languages, you normally get stuff like Haskell, Smalltalk, Scheme
but I've never used those so I don't know
Kotlin is an excellent practical lang
so is TS
even though I think in terms of purity, TS is a nightmare
 
well... when people talk about well designed languages, they often also include the sdks
for example, C#'s LINQ, or JS' uhm... 17 "best" Date libraries
 

« first day (3336 days earlier)      last day (1595 days later) »