« first day (2707 days earlier)      last day (2243 days later) » 

11:01 AM
@rlemon @KendallFrey oh no
 
@HenriqueHBR Example?
 
const tagsJSON = JSON.parse(`{
	"panel_c": {
		"html": [
    	"<h1>panel_c</h1>\
      <p>DANK 420</p>"
    ]
	},
	"card": {
		"html": "<h1>card</h1>"
	}
}`);
this works on jsfiddle...
but dont work on localhost
it´s pure js
no jquery or any other lib
 
You sure it's the same?
 
I like pure.js
 
yes, exactly the same thing
 
11:05 AM
works on my mahcine
 
i don´t understand this
why it doesn´t support backslashes
i need to create a multiline string
 
@HenriqueHBR It's already a template string, newline will appear whereever you place them
 
Have you hand-crafted that JSON string?
 
@BenFortune yep
 
Why not use stringify?
 
11:07 AM
but, stringify will show the whole json
i need only one property
 
XY warning
 
@Neoares ?
 
@BenFortune You mean pass the output of JSON.stringify into JSON.parse? That's genius!
 
Error: Parse error on line 3:
...": {		"html": [			'
panel_c
\
---------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', ']', got 'undefined'
this is the error
 
@OliverSalzburg this probably happens more often than it should, really
 
11:13 AM
@OliverSalzburg atob(btoa("this is awesome")
 
@GNi33 The most common I've seen in this chat is passing an already parsed string to JSON.parse
 
@Neoares )
 
fuck xD
I'll let it without the ) so your coment still makes sense
@Tavo hola
 
Verification step 1 complete, now I'm waiting for a call. I hate these automated call systems, they never work right
 
@KamilSolecki wat?
 
11:15 AM
@OliverSalzburg spam 0
 
ah, okay
 
@KamilSolecki Nah, it's like "We'll call you now at: <my number>" and 5 minutes later it says "Call failed. Nobody picked up"
But the phone never rings, of course
 
The fastest way to cheat through those systems that force you to voice talk to a machine first is blabber gibberish at it
 
Then you have to reschedule a manual callback and so on
 
always works
 
11:17 AM
Now I can't use the bathroom because I have to wait for the call
 
use a mobile phone
 
I'm wearing a headset, but I don't like to "take people with me"
 
@OliverSalzburg depends on the type of the toilet visit, worst case scenario they will think it's 1944 bombings all over again! :P
 
lol nazi joke
9/11 would hail again
 
11:23 AM
18/88 - can't find nazi reference
 
Oooh my LEGO was just delivered
 
omg which set
 
me neither
google trolled me
 
get educated son
 
I don't need education
I just need to know JS
 
11:26 AM
@KamilSolecki 42055
 
@KamilSolecki this one. Its great
 
@Neoares dude you can't just cut off tabs and not let us know what kind of weird stuff you browse
 
I got a reasonable Technic collection and I'm one of those dudes who hides it all away in the basement
 
Omg it looks awesome
 
11:27 AM
@KamilSolecki It's the largest Technic set to date
 
@OliverSalzburg god dammit, this is such a german lego set
 
I've got this at home ready to build
 
@OliverSalzburg That's so cool
 
@BenFortune Stash it :D
 
@BenFortune this too
 
11:28 AM
"oh look, it iz a large technical thing, very efficient and its made by a görman company"
 
I'm investing in BTC and Lego
 
Now I want LEGO
 
@Neoares what an ugly interface
 
He won't go black
I don't understand
 
@Neoares no porn? Fake
 
11:29 AM
@rlemon yeah I wish I had a nice theme for firefox
 
uh oh
 
FireFox is second tier browser bud
 
I know Edge is tier1 but whatever
 
11:30 AM
the fact that it doesn't have the dark chat theme is enough for making it greatly inferior
 
@GNi33 for $1
yea
only the first one will have anything really useful
 
and for 15?
 
@GNi33 no idea, but when it comes to electronics it's pretty much exactly like programming when it comes to learning it
 
@GNi33 what do you buy there? PDFs?
 
but yeah, the first ones do look the most interesting
 
11:31 AM
@GNi33 the guides for the proto boards imo are not worth any money
sparkfun/et al, will have all that shit online
 
@Neoares pdf and mobi
 
the general electronics books are usually helpful if you dont' know much about electronics
 
yeah, i know next to nothing about electronics, so I guess the very first book would be the most interesting for me
 
A power source is the powerhouse of the circuit
 
The "mad scientist" bundle looks fun as well
but I wouldn't get around actually trying anything of it in the next year anyways
 
11:33 AM
electronics is fun unless you need to calculate circuits
i.e. in university
 
This energy drink I'm drinking has 51g of sugar in it
If I stop responding, someone call an ambulance
 
@KamilSolecki yeah, I forgot everything I ever learned about that
 
@KamilSolecki What do you mean calculate? Like, figure out current draw, or resonances, or parasitic capacitance, or what?
 
These books look exactly like the kind of thing I'd buy and never open
 
@KendallFrey Like calculate some elements in circuits just for the sake of doing it, without application of it as a driving force
 
11:37 AM
but what elements
 
@KendallFrey I don't mean those calculations that you do normally when building/designing circuits. I mean stuff like: figure out the current at point x
 
that sounds fun to me idk
 
I love math, but not those :P
 
Hello all, I am a Javascript developer and teaches the same on Sundays to people of different age groups. Now a days we are learning React JS. Can anyone of you suggest any good roadmap to teach/study react JS
 
@Taha Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
11:39 AM
I can do Laplacian Transformations all day, but using it in circuit calculations takes my fun away, I don't know why
 
does anyone consider ethical working at a company where most profit comes from gambling and bets ?
 
I do
 
I wouldn't mind
 
As long as you don't do anything that promotes addiction
 
It's not like you scam people without them knowing
 
11:41 AM
@KendallFrey porn sites do
 
Unless you do
 
they all do
 
@KamilSolecki Well...
 
well what
 
@KendallFrey they know, they just lie to themselves
 
11:42 AM
they do it :D
 
I don't think gambling is unethical, so I doubt I'd have a problem working with it
I'm the retard that likes lootboxes, too
 
right
 
random is fun
 
@SterlingArcher did you get your first golfing loot box yet?
 
Any of these any good?
 
11:44 AM
I was more concerned about gambling because that is mostly a scam
 
@O.Rares as long as people know what they are getting into, I.e. rules are clear and don't do any 'secret quirks'
 
The fuck, didn't know there was a difference
 
@Neoares random is addicting
 
@KamilSolecki To be fair, you can program something to become a scam, and if there's no laws disclosing % chances, then no one will ever know
 
11:46 AM
@O.Rares It's only a scam if the games are rigged
I'm perfectly happy to go into a casino and expect to lose money
 
@Cereal gambling companies have audits. VERY detailed audits.
 
@KendallFrey are there companies that don't make online gambling rigged ?
 
Almost certainly
 
@KamilSolecki I figured there must be
 
@O.Rares the idea of gambling is that the casino has an edge. it doesn't mean it's rigged, it's common knowledge
 
11:48 AM
then what is considered unethical in programming ?
 
@BenFortune lol we're developing the same thing
 
user9107868
Anyone a collaborator on Zirak's repo?
 
besides the sites with the ladies
 
I've cloned it and looked at it for a few minutes, does that make me a collaborator
 
@O.Rares Unless you mean involuntary sex trade, I dont see anything wrong with online prostitution offers.
 
user9107868
11:49 AM
'Cause I need help making the bot listen for a certain user tag.
 
user9107868
@Cereal no that does not.
 
Pretty sure anything unethical would come down to a case by case basis
Like you could be working for a healthcare company, and your manager tells you to get it "good enough" for some software that could kill someone
 
@Neoares They just open sourced it, that'll make your job easier
 
Abiding by that would be unethical
 
11:50 AM
@Cereal yeah that is a good example by faking the output
 
@BenFortune yeah, but I can't find the sauce
 
googles gh?
 
@Neoares I'll give you the sauce
 
I'd argue that not hashing+salting passwords is borderline unethical
 
11:51 AM
thanks
 
@KendallFrey lmao I kinda agree
 
oh wait it also labels? xD lol
 
It's sort of misleading.
 
a guy from google came at us at mobile world congress and sent photos to their coworkers
:/
 
@KendallFrey We just write everything into a text file before it's hashed
 
11:52 AM
@Cereal I'm going to buy those
 
@GNi33 Can you read them all in 11 days and get back to me
 
sure
 
Thanks bae
 
@TheOneWhoMade Fairly easy, just add a plugin for it
 
I remember someone here saying that util modules are the death of codebases
I think it was @rlemon
can you explain that concept slightly more?
I've been trying to avoid them ever since you said it, but now someone asked me to make a util function and he out-argued me
 
11:55 AM
Is there some sort of filterMap in js? Like, mapping an array but discarding falsey values
 
there's .filter
 
@towc A global util class is just global methods
 
for arrays
 
@towc Doesn't map
 
user9107868
@BenFortune That is what my plugin is. It's failing.
 
user9107868
11:56 AM
@Cereal .filter then .map
 
@Cereal .filter(...).map(...) or .reduce, but I don't think there's anything else
what if you want the output to be false?
 
@towc Then I would be asking a different question
 
no as in, someone might want that
how does the language with filterMap fix it?
 
Then they can ask the different question
 
or literally .map(...).filter(Boolean)
 
11:57 AM
I'm doing a find in the map, so doing a filter(...).map(...) would mean I'd have to do the find twice is all
Oh that's a good one
 
@BenFortune the difference is that we do it with video :D
 
That worked, thanks @towc
 
user9107868
I have it working to get the response.... He just doesn't reply when I wrap it in the bot.
 
every day I'm realizing how hacky my code is
codepen was a bad influence :P
 
user9107868
11:58 AM
towc my code is worse.
 
helped me a lot, but taught me a coding style that disincentivizes libraries and modules
 
user9107868
@Caprica you will have a brother this weekend.
 
@Cereal but you know where they come from and will give the expressions a name
which can make the code a lot more readable
 

« first day (2707 days earlier)      last day (2243 days later) »