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

user7659542
20:22
@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
20:34
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
20:38
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
21:20
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
21:27
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...
21:28
@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
21:30
||> 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
21:34
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?
21:49
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?
21:50
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
21:52
$ 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?
21:54
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
21:56
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
21:57
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
21:59
Single Level of Abstraction
git:releases://[email protected]: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
22:04
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:
22:06
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
22:31
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.
22:33
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?
All I really remember are the massive e-egos
Good to hear, maybe I'll stick around this time
22:38
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
23:00
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.
23:16
@user400654 i heard a lot of the old old regulars moved to a discord room, is that still operational?
23:32
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
23:38
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
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
23:39
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
23:40
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?
23:45
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?
23:53
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 (1836 days later) »