« first day (3628 days earlier)      last day (1313 days later) » 
00:00 - 15:0015:00 - 00:00

3:01 PM
Code doesn't get easier or harder btw, it's just getting faster to write stuff...
 
Are you saying that there is really no concept of hard code? Anything is possible, just takes a lot longer? It's really encouraging
 
Well I live by that there only two type of problems
Those which can be split, and those which are trivial.
 
It is interesting. For me, as a beginner, it is encouraging (I get stuck many times, and despair)
 
3:19 PM
morning js
hows it going?
 
hence why i think it's far more useful to look at not working code and fix it. it teaches you to split problems up into their simplest bits and look at documentation.
 
Wow. I did not think about it.
 
there are no real "complex" problems in javascript, only lack of information makes things hard.
like if you can't get a non-minified version of code that is throwing an error, that makes it harder to understand why it is failing
but it's not because it's complex, it's because you lack information
 
@Chanif I'd learn JS and feel pretty comfortable with it before starting other libraries.
There are a lot more prerequisites for React than jQuery. However React is much for powerful than jQuery.
 
You mean JQUERY? Or REACT? Or both?
Because someone told me that JQUERY can help me with learning.
 
3:28 PM
much more*
 
i learned with jquery, but, IMO jquery is... a bit too dated now to be as useful as it was for learning in the past
 
@Chanif No sure what your question is. jQuery and React are both libraries for JavaScript. I don't think you should learn any library for learning vanilla JavaScript.
 
The source code isn't necessarily a good source of good, modern code to learn from, but, i can't think of another library's source that i'd suggest looking at for educational reasons
 
@KevinB you are suggesting looking at jquery's source code?
 
it helped me, so, yes... in a sense... it'd be better to look at something similar but more modern
 
3:32 PM
I asked if I should not learn both react and Jquery yet, because Jquery is easy and simple, and I heard that it can help me when I study. Or still, just learn JS until I know it well?
 
i've never looked at react's source, so no idea if it'd be something to look at
jQuery's source is simple and well organized
it just doesn't always use current techniques
for example, it still interacts with .prototype rather than class
 
Imo the only thing looking at source code maybe good for is to learn organization and conventions. I don't think it helps to learn the language.
And considering jquery still uses prototype as kevin says, it's probably not great for that either.
but still, most of these projects aren't similar to what you are building. You aren't going to be building a library so the organization will likely be different.
Maybe more useful if you wanted to learn React, to look at popular react projects. Instead of react itself.
 
 
3 hours later…
6:32 PM
I think that looking at how people do things is essential when learning a language
Especially if it means participating in a well-kept project
But yeah it's worth carefully considering where your time is best spent
The perfect learning project is one that needs help but can still afford to thoroughly review contributions, one that's relevant to the area you're working in but will still push you to learn new things
 
In an angular project, I've to add an html element using JavaScript in ngAfterViewInit. Is there any way to set an angular property *ngIf using setAttribute method?
 
@CarlGentleman you still got that bicycle
 
scott bike?
 
good bike
 
6:46 PM
If I have hidden items in a sharepoint list (columns that aren't being used), do I still need to pass those aswell in the url for the request? I didn't need to for a GET request so I would assume the answer is no. But I am unsure as this could be why I am getting the (An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.) error.
 
posted on September 21, 2020 by Srinivas Sista

 The stable channel has been updated to 85.0.4183.121 for Windows, Mac, and Linux, which will roll out over the coming days/weeks. A list of all changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about commo

 
7:12 PM
This is driving me insane
 
lol
 
I look up the error. It gives me a solution. Then I fix my code. It should work right? No. It gives me another error, I then look up that error and get the solution. It gives me the previous error I had.
 
you did find this at some point in the past week, right? sharepoint.stackexchange.com/questions/179337/…
 
Ya I have referenced off that post multiple times.
 
fix it
 
7:15 PM
I did.
And instead of that error, it then gives me "The parameter _metadata does not exist in method GetByTitle"
 
Good!
 
And I fix that, it takes me back to the first error
 
a different error is progress
what does GetByTitle have to do with the first request?
 
Retrieves Item ID from the Sharepoint List
 
Are these two separate requests?
 
7:17 PM
@bigchungus pick the better error and stick with it
 
to me it sounds like you have two requests, and they have different requirements
updating the data to fit one, is breaking the other.
easy solution to that would be not updating the data for everything
 
Q: What do you call it when one error leads to another error, and the second leads back to the first one, ad infinitum, so you finally give up and go to an online forum for help
A: Stack overflow
 
instead creating a copy and updating the copy.
 
I have a request earlier in my script as a GET to populate my datatable. then I have a post that sends my HTML form data to the corresponding sharepoint list to then update back to my datatable
 
Which one is failing with which error
 
7:19 PM
the POST is the only one failing with
n entry without a type name was found, but no expected type was specified.
To allow entries without type information, the expected type must also be specified when the model is specified.
or
 
what about the other error?
also from this mystical post request?
 
Yes
The parameter _metadata does not exist in method GetByTitle
 
right
so that one is easy to fix
you already know how
Here's a post related to your second error: sharepoint.stackexchange.com/questions/150437/…
 
thx
 
And another one, with a similar solution social.msdn.microsoft.com/Forums/office/en-US/…
 
7:29 PM
Ya I already have that MSDN one open.
 
@NikolaMitic Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@NikolaMitic 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.
1 message moved to Trash can
 
Post your text separate from code
it's a chat, not the ask a question page
 
Undestand
where can I ask such question? They are not really for stackoverflow.
 
You can ask here. Just put text and code separate and format code.
 
let increment = new Increment()
let increment2 = Increment()


console.log(increment == +increment2) // true
console.log(`val: ${increment}`)      // val: 1
console.log(`val: ${increment}`)      // val: 2
console.log(`val: ${increment}`)
 
7:36 PM
@NikolaMitic format, ctrl + k
 
what's the character to let a command continu next line in bash?
(Just for stack overflow answers btw :P)
 
@paul23 \
or a quote if you are doing a string
 
I had to implement Increment contractor function so that those logs will be evaluated as in the comments
 
its a terrible question
 
each time increment is called returned value should be (prev value + 1)
It took me 30 min to undestand that I need to implement Increment
 
7:39 PM
pretty sure the interviewer got the question from @KevinB 's answer
3348
A: Can (a== 1 && a ==2 && a==3) ever evaluate to true?

Kevin BIf you take advantage of how == works, you could simply create an object with a custom toString (or valueOf) function that changes what it returns each time it is used such that it satisfies all three conditions. const a = { i: 1, toString: function () { return a.i++; } } i...

thats such a difficult question that would never be relevant i think its unfair
 
^
 
God I hate people who ask questions based on the worst features of a language. Features any sane modern person would try to evade more than covid19.
 
I see, I get that one and thanks btw
but what about this part
 
i mean, i'm curious if there's another way to solve it
than relying on loose equals shenanigans
 
console.log(`val: ${increment}`)      // val: 1
console.log(`val: ${increment}`)      // val: 2
console.log(`val: ${increment}`) //val: 3
 
7:42 PM
yeah, that's the same logic really
 
that's implicitly calling toString on increment
 
when it is converted to a string, increment then return.
 
It's also annoying that you cannot overload operators, yet the implicit -cast- operator can be overloaded.
I get why that happens, but it makes for a strange tripping point.
 
i'm think you would accomplish it by implementing toString and valueOf
 
IE I wouldn't in c++ be surprised with a==1 && a==2 equaling true. I'd call the code stupid and question the morality of the writer: but no surprise there.
In javascript you don't expect strange behaviour when using the default operators... So when it happens it's always a tripping point.
 
7:45 PM
or you could cheat a bit
 
you generally wouldn't expect observing the value of a variable to cause the value to change
 
and by "generally" he means in every situation ever to exist other than interview questions
 
there are three things in javascript that can cause that: getters, proxies, and coercion
 
@KevinB Math.random()? Logging?
 
how much faster is reactjs with canvas elements on Android compared to HTML5
 
7:46 PM
math.random isn't a variable, it's a function
 
wow... I am happy that I got this now... Thanks guys! but how much is this relevant?
And does this says something about how good (of bad) frontend dev am I? (genuinely asking)
 
i mean like console.log(+a); console.log(+a); console.log(+a); giving you 3 values.
 
it's says more about the interviewer than it does about you @NikolaMitic
 
Those are two valid places the value might change when you observe. Logging might change (say) linecount, and random will change the internal state whenever you analyze the current state.
someplace.log(myLogger); someplace.log(myLogger) might write two times different data, second time it might display a different timestamp, or an incremental "n-times-logged".
Though I do think in javascript I might indeed prefer a more explicit version "myLogger.showLogs()" Just because it otherwise will confuse people.
 
yeah, that's not observing a value though... at least not in the way i meant
that's reading a value that is expected to change, like reading the property of an object that over time gains or loses things. in this case it's just a variable that increments on it's own synchronously with seeminly no interaction that should be causing an increment, because it's hidden behind techniques you'd never use outside of "clever" interview questions
getting the value of a property or variable shouldn't cause that value to change
 
7:51 PM
function Increment(){
   let num = 1;
   const obj = {
      toString() {
        return num++;
      },
      valueOf(){
        return 5;
      }
   }
   return obj;
}
 
and there's only a few mechanisms that allow it
 
thats my solution @NikolaMitic
but i def wouldn't know that without seeing kevin's answer before
 
i don't know how i came to that answer
lol
even seeing the interview question above, i didn't immediately jump to that path
not till you mentioned it
 
@KevinB mumbles in quantum computing
 
Hey
 
7:57 PM
btw I think the other answer was the more "correct" (with strange unicode spaces) for that question on SO. Both are equally silly to me though.
 
I'm trying to get my head around how react project use typescript npm modules. I noticed the module I published worked fine in an Angular Typescript project.
 
function Increment() {
    return {
        value,
        toString: function() {
            return this.value++
        }
    }
}
 
But when I imported that Typescript npm module into a React JS project..I got all kinds of unknown syntax errors..because of the typescript types in the npm package
 
@JBis this is mine, and yes would never be able to solve this without his answer...
 
Is the solution here, pretty much to enable typescript transpiling in the react project via webpack? Or should you ideally publisb a JS and TS npm package?
 
7:59 PM
You can enable typescript when you use create-react-app. Ideally you publish just the JS package with typescript definitions and maybe mapping to a source tree.
 
@NikolaMitic value: 0, right? otherwise value is undefined
but yea that fulfills it. it bothers me that the code they gave you is completely devoid of semi-colons and uses let in a place where const would work.
 
@paul23 now that clicks..I had created a package using rollup, so I had js files with typescript definitions..But then I added some extra utils written with ts extension
so I guess I just need to run 'tsc' against those extra util files I added to to the package dist
?
 
though... that could just be part of the test, seeing if you'd follow the coding... practice of the provided code.
 
you could, though be careful where files and up.
 
@KevinB yes forgot that one
 
8:02 PM
might wish to think about the tsconfig file.
 
you could also prob overwrite object prototype but same difference
 
yeah I guess include those extra utils as part of the rollup build in tsconfig
 
I think things like this are cool to know... but not being able to pass to the next stage because of this... idk
 
@NikolaMitic was this a very large company?
 
200+ people only tech part
and they operate all over the Europe
 
8:05 PM
some employers are just popular enough to be able to be very picky
even at the detriment of missing out on some good devs
 
But even so, that question is nearly impossible
maybe they expected you to fail but wanted to see what you would try?
 
next stage would be more JS question and algorithms plus data structures then I presenting some personal project of mine, then React js challenge
 
To be honest: if you're that picky I really would be more picky about "general knowledge" than javascript intracities.
 
@paul23 Yes agree
@JBis No I do not believe so
 
Like math, engineering principles or even CS fundamentals.
 
8:08 PM
I think they would ask such question in the next round
 
this solution is from someone on a different form
similar code but very different idea
function Increment() {
   let accum = 0
   this.toString = () => accum++
   return accum
 }
 
this was small challenge to solve after the first HR meeting
 
I personally put more preference on the candidate's past experience. Where they worked, for how long, whether or not they use SO, and if all of those are nil... then they can prove themselves at a much lower introductory wage, or go somewhere else. I don't have the time to test/challenge someone's coding ability to see if they're a fit unfortunately... not to mention their coding ability isn't necessarily the most important part of the job
 
I would never ever think of changing the "toString" method
 
@KevinB "whether they use SO"?
 
8:13 PM
not using SO isn't a fail, but if they have no past experience other than SO, SO is a place one can look for seeing their ability
or if they run a blog, do open source, etc
 
I'm not sure if I'd be happy to show my SO.
I'm not afraid to ask, but it means i have a lot of questions and it seems I do not know anything ;P
 
@KevinB I wouldn't say my SO profile is representative of my abilities.
 
agreed
maybe i should instead say online presense? some proof of ability? it's whatever they provide for that.
if they want to link they're SO profile, then that's a window i can look into
 
does github count?
 
yep
 
8:16 PM
ok i think that is more fair
 
I personally don't do any public coding outside of SO, so that's not a particular area that comes to mind first for me
 
oh on the topic of github - I really wish they'd stop telling me there are "major vulnerabilities in my projects".
Sure they are there: but those are projects I made as example to post bugs!
 
my so profile is a double edged sword
like, might look great that i answered a bunch of questions, but, you can also dig into it and see when i was active on so, what days of the week, during what hours...
 
The only project I am really proud of on my github is bitlink
 
@KevinB wednesday on 4:20 ?
pfft
 
8:20 PM
After redoing the architecture three times, I think the design is really good. Best I've ever done.
 
I think my best project is BitBlock (data serialization)
I should throw it on github...
 
second thing i am most proud of is probably github.com/jbis9051/csrf-login-token
 
but I should also write documentation for it... otherwise it would be really difficult for anyone to use it
 
all of my work has been on proprietary internal stuff that will never see the light of day
 
it super simple and 95% of the code isn't mine (on purpose) but the idea behind it takes a good amount of understanding to come up with
 
8:22 PM
although, if I write the documentation, perhaps one of you could write the JS library for it
:p
 
@KevinB why dont you do any personal projects?
 
i did make a jquery plugin or two, but, well, jquery, lol
 
years ago im guessing tho
 
because programming as a hobby stopped a few years after it became my source of income
 
well thats sad
:(
 
8:24 PM
I just find more enjoyment in other things
literally rather sit outside and do nothing, or walk, than write code at home
 
@KevinB Isn't that for all?
 
not necessarily
some people seem to be able to keep doing it on the side for fun
 
@forresthopkinsa thoughts?
 
granted, i can't quanity whether or not they still consider it fun, :p
 
@paul23 i mean theres plenty of people who create side projects and im sure they are employed
 
8:27 PM
you can also code on the side, and it not be a "hobby"
more, a future source of income, or secondary source of income
 
What are we talking about
 
or building your portfolio for a future job
 
@forresthopkinsa you program for a living, do you still code on the side for fun?
 
Oh
Yeah but I've only been programming professionally for about four years
 
i still had a personal blog at 4 years
though that was around the time i backed off from off hours programming
:p
i've been doing for 12 now
 
8:29 PM
I haven't even gotten to the Personal Blog achievement yet
 
+2 college
 
Meh for me it really destroyed all fun when I had to start thinking about "ok I have to actually plan things ahead and work on as tihgt as possible timetables"... And now whenever I'm free I actually wish to go outside and do some sports, or help children etc.
 
@forresthopkinsa Too late, you'd have to start with an instagram profile now
 
Instagram would probably be the most challenging platform to document code adventures on lol
 
i've always thought of javascript as my "hobby" language
a secondary language i rarely get to use professionally, but find fun to use
 
8:30 PM
For the past couple weeks I've been programming for Minecraft stuff which is always fun
 
Mein Kraft
 
Starting a modpack server soon so I've been developing a bunch of plugins and stuff for it
 
if wow xpac wasn't launching in 5 weeks i'd consider asking to join it
 
Haha you're good, it'll be mostly family anyway
I just go over the top with these things
 
right now i have a stationeers server, and am playing the new poe league
stationeers has a little bit of coding
 
8:32 PM
But yeah I think some kinds of programming are more fun than others, e.g. I really enjoy web dev but video game modding is like junk food
I haven't played Stationeers
 
idk what everyone finds so fun in minecraft
i played when i was much younger for a couple years, built some big things. Seems repetitive to me.
 
For those of us who played it in 2010 there's a big nostalgia factor
 
But maybe thats because I only played creative.
 
Survival is the way
 
i love minecraft
it's just so relaxing
iunno
it's hard to explain
there's 0 point in it most of the time other than simply building things or collecting things
 
8:34 PM
On the occasions when I actually start a long-term playthrough it's always modded SMP
 
@forresthopkinsa i'm pretty sure i played around that time lol
it was the first game i cracked, i was so excited i posted a youtube video
 
Yeah? You would have to have been playing survival then
Creative came later
 
I thought the first version of minecraft only had building stuff, and mobs came later
 
i started minecraft with mods
 
Yeah the early Alphas only had creative
 
8:35 PM
didn't go to just vanilla till much later
 
maybe it was 2011...I'm trying to remember
 
That's funny
 
first time i booted up it was like someone from D3 opening up PoE for the first time
 
I played Vanilla for a good while before I started playing Technic
 
i was just overwhelmed with the number of items in the game, and just shut it down
came back a few months later and was addicted
 
8:36 PM
I never played minecraft, but when I first heard about it the lego vibes made sense (never liked the voxel thing). And then suddenly everyone was fighting monsters. I had no idea why anyone would want to do that :P
 
i was too scared to install mods
thought it would mess up my computer
 
Modding in the early days was super sketchy
Manually replacing classes in the game jar
Loved it
 
now i enjoy vanilla more than modded
 
There are some mods that are really unintrusive
Like Quark
 
the restrictions it has on how you can do things leads to critical thinking
 
8:39 PM
do they have an offical mod api now?
 
They have "data packs"
Which I don't really know anything about
But I think you can add things like new mobs and blocks with just json files
Forge API is still where it's at though
Even though the primary maintainer, LexManos, has only become even more of a jerk over the years
Seriously the Forge contributor community is super toxic
They're bad news
But on the bright side, it's because they're so nasty that all the newer projects, like Fabric and Sponge, are really big on Common Decency
 
Speaking of projects and stuff. I've been bored without a project for too long.
Need something else. Problem is I don't like building just to build. Need a purpose.
 
You should go to medium-sized Java projects and introduce Kotlin into their codebases
I always want to do that
Enlighten the world
 
lol
 
9:19 PM
Is vanilla.JS a JS framework?
 
> Vanilla JS is a fast, lightweight, cross-platform framework
for building incredible, powerful JavaScript applications.
I suppose so
 
I'm beginner..
 
I'm hater
I refuse to write JS :D
 
i'd suggest chocolate js, dark mode always better
 
9:46 PM
chocolate rain 🎵
 
10:08 PM
posted on September 21, 2020 by Ben Mason

 Hi, everyone! We've just released Chrome 85 (85.0.4183.120) for Android: it'll become available on Google Play over the next few weeks. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 
10:23 PM
ibb.co/NSrsYFJ scott bike, near spain
we could put tanks on top of the mountains to be fulfilled by rain, then an automatic mechanical irrigation system, and drones to pick the fruits, to get the most from our ecosystem, without human effort, but they would use that to make people poor. and drones could be programmed with js
 
you say some weird things, guy
 
10:40 PM
some plants need more water as parameter than others, it is their function input, wirh tanks and gravity, we solve that, but the production of the automated work would be for one anyways, and others to the street fired
 
no offense but are you having a stroke
 
reread, please, i know you can understand it
it does not matter the wealth you produce, the way we distribute wealth makes people work the same amount of time, it does not matter how much they produce
 
so youre thinking that JS is literally the end solution to achieve a post-scarcity society in agreement with marxist philosophy and its derivatives
interesting take
 
@CarlGentleman Stop
 
HAMMERTIME!
 
10:52 PM
well summarized, but dont relate me to commy, i just want to expose and impartial point of view of the consequences of js in the economy
 
we should keep more schizos around for entertainment in the chat room, like how old medieval courts had jesters
well btw @CarlGentleman i never said you were a commie, but a lot of modern political philosophy derives from marxist thought, even if they are opposed to communism
i mean the points you make are valid but why JS specifically
 
@hydro I'm not at my computer but if I was I would move all these message to trash
stop encouraging him
 
rip
@CarlGentleman u should probably stop this convo here but if ur interested to keep on talking heres my discord : hydro#3651
 
hahahah cool, js bc of the web, of course, it is 52 years of internet, and still, the free online university, its original purpose, is not around yet...
remember aaron swartz, the handlebars creator, he was not schizo
 
The Web's original purpose was not the "free online university"
Its original purpose was military
 
11:06 PM
to share academical knowledge between universities, that was the original purpose
well, idk, but a free online university could be some pdfs and mp3s/4s
 
No, that was its secondary purpose, and even that had nothing to do with free education
 
they want you to produce, but not to know... nice :)
 
Who are "they"?
There are plenty of websites that provide free education these days
And I think that paid education is an egregious source of class boundaries, I just disagree that the internet was invented for "free university"
 
homologated education to expand your mind officially in any topic would cost the same: to upload some files
 
sounds like youtube qualifies then
 
11:11 PM
being a whole course in silence would qualify
 
so why do you insist that "free online education" does not exist or has been suppressed?
 
What does @namespace intampermonkey?
 
official homologation, that is the difference, the law, the line of agreement
 
@forresthopkinsa well you can't learn to program without a computer so should computers be free?
 
11:17 PM
there r children extracting the mineral for cpus, so yes, we all deserve a computer to learn the logic we lack in our daily
 
11:51 PM
@JBis They already are, to kids in schools
Government-funded education helps everybody
Except I guess the legions of salespeople and marketers that make up such a huge chunk of university budgets
 
00:00 - 15:0015:00 - 00:00

« first day (3628 days earlier)      last day (1313 days later) »