This video was a boost to my self confidence. I was working with the Wikipedia API for the first time and thought I must be doing something wrong because it was so many steps. Then I found this video and thought, "Hey, it's not me, it's Wikipedia."
@akshatjain21576 жыл бұрын
You sir are a gift to humanity.
@edazpotato49084 жыл бұрын
1:28 : *...* - most big brain moment in the history of web development
@ShadowDev69694 жыл бұрын
could have been avoided if he used visual studio 2019
@zackydev4 жыл бұрын
@@ShadowDev6969 oooooof
@KangJangkrik4 жыл бұрын
@@ShadowDev6969 Visual Studio Code to be precise
@ShadowDev69694 жыл бұрын
@@KangJangkrik vs code is bloat.
@KangJangkrik4 жыл бұрын
(surprised pikachu face)
@NicolaiWeitkemper6 жыл бұрын
Using all those "shortcuts" but writing counter = counter + 1
@ilijaradosavljevic71666 жыл бұрын
Nicolai Weitkemper loool
@kaio37k6 жыл бұрын
What would you use instead? I assume "counter+=;" ?
@ilijaradosavljevic71666 жыл бұрын
Anernermus contuer+=1;
@kaio37k6 жыл бұрын
Thanks!
@pulloutking6 жыл бұрын
counter++?
@devjimmy7 жыл бұрын
9 times... (counter = 0, counter = counter + 1, counter < 10). I like you're doing little mistakes, feels more natural ot rehearsed.
@steffenderfreak14 жыл бұрын
There are no bug, just happy little accidents
@xzero015017 жыл бұрын
userimput gave me a headache.
@_keano7 жыл бұрын
same
@okay-bro17 жыл бұрын
same
@beyondcatastrophe_7 жыл бұрын
So unnerving...
@requiitas6 жыл бұрын
too ... :D
@courtneyhackshaw34206 жыл бұрын
I really don't know what to make of that loool
@koetter_boater7 жыл бұрын
Hey Dan, would you ever consider doing separate videos where you go into depth explaining topics that you briefly touch on in the coding challenges? For instance, jsonp, or something similar. I think it would be very beneficial to have a separate video for those that want to go in and learn the details about what you are talking about.
@TheCodingTrain7 жыл бұрын
Yes! In this case, however, I would check out my playlist about data in JS, it goes through lots of pieces of how things work in this video in more detail.
@yuliaberezina17524 жыл бұрын
Thank you so much! I like your way of telling the code and allowing to have a mess in your thoughts, it helps to focus and see that Programmers don't have to be perfectly focused people!!!
@CCcrafted7 жыл бұрын
Dear god man, you have no idea how much that probably just helped me with my a level computer science coursework! Thankyou!
@slick85097 жыл бұрын
Coding challenge : pacman
@PianoCat-Music7 жыл бұрын
hey Daniel, as always great Video! could you do an episode on the KZbin API? I think that would be fun - and also maybe go deeper into how to secure the API-Key? I really struggle a lot with this security stuff.
@PianoCat-Music7 жыл бұрын
Thanks for the explanation. I figured I can request the API data with cURL in php - and I passed the json object in a variable to a javascript and can call this javascript via AJAX. I think this is secure, right? But what can I do if I want to change the php request after it loaded to make a new request?
@riguidixrodriguez10905 жыл бұрын
I actually like and enjoy to see your coding challenges, the way that you explaind, the way that a programmer thinks it's a cool things. Nice job in every single video. Keep it good, and stay good as always, seeing this far from a computer to start coding, lol
@QW3RTYUU7 жыл бұрын
Guys! Set the playback speed at 0.5 And seek to 22:06 and enjoy the trainwreck! :) 22:06 to 22:20, I'm crying this is way too funny
@zen20815 жыл бұрын
QW3RTYUU Looool
@MrMeszaros4 жыл бұрын
Totally sounds like drunk
@archie64987 жыл бұрын
12:54 that's why I don't have a beard
@slevig4156 жыл бұрын
Don't lie, you can't even grow one lol
@geekyprogrammer48315 жыл бұрын
I feel beard is a form of blessing. Otherwise, we wont be able to differentiate girls and guys!
@ggcadc7 жыл бұрын
thank you for doing these, reminding me when im stressed that coding is fun! and im proud to say I finally know enough vanilla js that I could write this, and follow what the p5 lib is doing for you, slick stuff, useful indeed.
@RicoGalassi6 жыл бұрын
Man I wish i had coding skills like this. I LOVE designing interfaces, but this just seems so much cooler with the right knowledge and skill
@Typhoon8602 жыл бұрын
Okay it's been 3 years. Have you learned the skills yet?
@RicoGalassi2 жыл бұрын
@@Typhoon860 😂 not nearly as much as Dan knows, but I am a developer working full time!!
@saadrahman5626 Жыл бұрын
one of the best tutorials! keep it up!!!
@flashgames12736 жыл бұрын
you inspired me to start learning javascript and p5 !! thanks :D
@RandoSpear7 жыл бұрын
I love your videos! Keep it up!
@buffetglider4 жыл бұрын
Amazing effect of presenting with the screen behind you. Well done.
@paddym276 жыл бұрын
first time i have watched one of these videos, but i can totally relate to this processes as he goes through the problem. It's almost like exactly how i'd approach it. Love it - subscribed.
@aryamankejriwal59597 жыл бұрын
Moral of the story: Wikipedia programmers must watch tom Scott’s programming videos...
@critstixdarkspear53755 жыл бұрын
Saint Codius of KZbin. ❤️
@kevnar7 жыл бұрын
It goes from "Unicorn" to "Violence in the Quran" in only 3 steps. Wow.
@incernpakistan6 жыл бұрын
plz read translation of Quran in your native language bro. i hope you will change your mind
@incernpakistan6 жыл бұрын
dont go with explanations of scholars. quran is in v.easy language and common man can understand easily
@faizkhairi31656 жыл бұрын
More like from "school" to "shooting range"
@kaio37k6 жыл бұрын
I read it, but all I see is page after page of violence, oppression of women, murder of gays and non-believers and other messed up things. Are you sure you're not reading a story book?
@shakos41056 жыл бұрын
Anernermus I don't know if you've bothered to even look at the Bible or Torah before but all of these holy scriptures talk about violence, blood, death etc. They all have stories behind them , simply looking at it without knowing and understanding it's context, does not make you knowledgeable enough to judge the Quran.
@toastyPredicament2 жыл бұрын
The bell makes me euphoric
@forgoroe7 жыл бұрын
Back when I tried using the wikipedia API, I sorta hated it. So convoluted for no reason.
@TheCalax7 жыл бұрын
Forgoroe things tend to get complicated when you're that big of a website/webservice and have hundreds of people work on open source software
@jhuluan-jyun25946 жыл бұрын
for those who cant get result from loadJSON() function with 'jsonp' parameter, change your p5.js cdn to version 0.6.0 or eariler. In ver0.6.1 p5 will throw an error if you try to load a json file with jsonp format. It should work then :D
@ignacioalamo43036 жыл бұрын
Thanks! I was stuck with that
@gregfletcher23605 жыл бұрын
Any reason why the new version of p5.js hasn't fixed this issue?
@OmarOviedo5 жыл бұрын
Thanks you help a lot with that!
@ianprado14886 жыл бұрын
Your end product was surprisingly very awesome
@FMpundit7 жыл бұрын
Love that first random word is just an average word.
@rainaw09246 жыл бұрын
It’s so funny to watch you coding
@willemschipper77365 жыл бұрын
The fact that this is a challenge does not make the Wikipedia API seem very user-friendly
@ColaBeGaming7 жыл бұрын
This was a great Coding Challenge! I loved it! You still seem to mix up var and let a bit, I guess old habits are hard to break :D
@ColaBeGaming7 жыл бұрын
BurgerBob Check out the Coding Train video on this exact topic! 😊
@JordanMSeverns2 жыл бұрын
Sometimes i wonder how this guy codes anything without chat pointing out his typos lol
@orduan30206 жыл бұрын
Adding "&formatversion=2" to the query string will solve the insane json format :)
@TheCodingTrain6 жыл бұрын
Thank you!
@joshuavillenadiaz4026 жыл бұрын
You make me happy. Nice video
@grainfrizz7 жыл бұрын
Hey Dan. It turned out to be so great!
@Rolo-Tony6 жыл бұрын
@franzjosephliszt15557 жыл бұрын
I thought it said "Return of Satan" at first
@igotapochahontas6 жыл бұрын
Wheres the jsonp video? I'd like to check that one out next. I've been doing a lot of node and api stuff because of these inspiring videos. Keep up the good work, bro.
@charliedinerman79414 жыл бұрын
Yoooo just found this video congrats on 1m
@Karl93rus6 жыл бұрын
The most hard part of this all was to get through the most complicated api description EVER! )) You should make a video about how to understand what the hell should a person do to make a query to wikipedia )) by the way, did u sell ur soul for this knowledge? ))
@akashsapiens81575 жыл бұрын
Soo cute... You're really a cool developer 😊 I just wanna work with such guyz like you... Continue your service here its really inspiring us💕
@ThommyKane4 жыл бұрын
where the fuck has this channel been my whole life?
@amey70646 жыл бұрын
Hey Daniel, next coding challenge : GitHub Bot It can pick random repositories, but also choose them based upon stars.
@mii39396 жыл бұрын
open h1 and close h2... Logic? :'D Nice vid man!
@rezabavarikor80604 жыл бұрын
Hey, How u doing? That's a good approach for using Wikipedia API.Happy Coding!
@steffenderfreak14 жыл бұрын
This is how I use Wikipedia. I search for something about IT stuff and 2 hours later, I end on a page about "8-Oxo-2'-deoxyguanosine"
@denisschulz38147 жыл бұрын
Your Videos are awesome! Ever thought about making a video about the Amazon Echo / Alexa API? I think it's in JavaScript too, and it would be great!
@TheCodingTrain7 жыл бұрын
Yes it's on my list!
@denisschulz38147 жыл бұрын
Wow! I did not expect you would respond to this at all, let alone this fast! Well, this makes you even more awesome! Thank You for all the great Videos :) I am really looking forward to see you dealing with the Alexa API, since I am going to study Software Engineering starting next year and I eventually want to found a company in this whole smart-connected-home field, so I think your video will help me to better understand how cutting-edge technology like Amazon's API is scripted and scripted with. Again, thank you for your quick Answer! Have a nice day
@ledues33362 жыл бұрын
@@denisschulz3814 what are you up to these days?
@charbelsarkis35676 жыл бұрын
Ohh these videos without the es6 arrow function are nostalgic
@sandywyper6 жыл бұрын
But how do you parse the ruddy wikiText?!? Was waiting for ages for that. I eventually gave in and just used the link from the JSON to the desired article.
@subzeronitro46865 жыл бұрын
I was screaming at my screen when I saw instead of
@TheCalax7 жыл бұрын
Damn, you're pretty fun and awesome at presenting this stuff! I'd kinda love to do something with you some time :p
@jasperreichardt4 жыл бұрын
"Your Bank account is -5000$, you cannot buy food right now" .... hmm let me just do 'jsonp' there and .............MAGIC! trolololo
@pythonSefer3 жыл бұрын
Yes, there is a Wikipedia article for "P": en.wikipedia.org/wiki/P
@mikefigueiredo43123 жыл бұрын
The best!
@aniekanumoren60887 жыл бұрын
+The Coding Train I don't mean to spam, and I know you've done a box2d tutorial but I can't seem to find any good examples on how to use *raycasting* in Box2DProcessing. I was hoping that you could make tutorial for it. Thank you for your consideration. Nice video!
@nirmalmattmusic39934 жыл бұрын
For first time in the history of programming, Daniel Shiffman wrote noCanvas()
@TheRealKitWalker4 жыл бұрын
This was fun! I was sceptical of this video but it turned out really really fun 🤓 Thanks
@O1zo5 жыл бұрын
Your input tag is wrong . . Do not need a closing tag for input
@AncientPixel_AP7 жыл бұрын
let it stop when finding "Kevon_Bacon" ^^
@TheCoolSquare7 жыл бұрын
I just tried changing the source to do this and it went for a while before just crashing
@rje6136 жыл бұрын
Stresses me out how hard he hits enter
@surekhalate42076 жыл бұрын
Keep it up sir
@eugen1897639876893795 жыл бұрын
I was wondering if it impacts performance if I use a „global“ variable instead of passing it as argument to a function. In your case you made the method goWiki() read from the input field instead of passing the content of the input field to the method. So, is this (in JS world) different performance wise or is it semantically equal?
@RogelioIturra Жыл бұрын
Thanks master! :D
@mohsinjaved61406 жыл бұрын
1:25 😂😂
@CuongNguyen-le5ic6 жыл бұрын
You see that /, it’s a ledge to next level, lol.
@gritkit6 жыл бұрын
Thanks so much for all your great tutorials! I wanted to experiment with the API of xeno-canto.org, a site that collects birds sounds: xeno-canto.org/article/153 However I am getting stuck trying to request the data. Using the search examples given there I get the "No 'Access-Control-Allow-Origin' header..." error. Adding 'jsonp' as a paramter in loadJSON doesn't help, but gives me yet another error: "Uncaught SyntaxError: Unexpected token :". Adding 'json' instead doesn't help either. Could you give me a hint how to solve this? Thanks again and kind regards.
@RedHair651 Жыл бұрын
Did you find a solution in the end?
@gritkit Жыл бұрын
@@RedHair651 Unfortunately not. After trying this or that I gave up on it.
@geraldbustos7 жыл бұрын
Something With Google Maps???
@juicepops78194 жыл бұрын
7:27 Tony Stark gets a anxiety attack
@etemkaandelibas36497 жыл бұрын
Great video
@breeneehuson51593 жыл бұрын
I watch many of your video, and you manner to present videos attrack me to continue, although, that I am looking for how to handle data from a json file using javascript. Here I try to use datatable but, I have a problem of iterate over the json file which is a compelxed (contain an object of array and object with repetitive keys in different level). It seems easy :))
@wilkins74077 жыл бұрын
Why do you use `let` so much when you're not reassigning? you should use `const`
@wilkins74077 жыл бұрын
you also make a page variable which is `data.query.pages` but you don't replace that call in `Object.keys(data.query.pages)` to be `Object.keys(page)` :'(
@LeeWalton_19995 жыл бұрын
Maybe a game where you have to try to pick a word that calls back the highest number of other terms before it encounters an error and ends, would have to test on average how many times it would though haha.
@abdalhfeez43506 жыл бұрын
I love code challenge ❤🇸🇩
@l2ubio9 ай бұрын
21:30 lol of all the 2000 words ofc you got the word "average" from a random() function
@PhilippeRigovanov7 жыл бұрын
Awesome!
@betillgalvan10946 жыл бұрын
Amazing!
@sweetberries46115 жыл бұрын
Why did you close tag?
@amirmekk96497 жыл бұрын
I hate CORS so much that I stopped learning to code because of it for a while , anyway awesome workman
@DimGG7 жыл бұрын
cors.now.sh
@amirmekk96497 жыл бұрын
Dim this seems awesome I am gonna use it thanks
@not2day6466 жыл бұрын
@@DimGG wait dim? How good to see you here. I know you'd from discord.js discord server xD
@HdRFan76 жыл бұрын
11:38 No you couldn't because this would only replace the first whitepace.
@krishgarg28062 жыл бұрын
Fun Fact: You can pretty easily do this without p5js and with just browser apis like fetch and document.querySelector
@hermannbarbato7 жыл бұрын
I think my brain crashed somewhere between the callbacks and the regular expressions.
@twistedsim7 жыл бұрын
Nice video, you should try using only the embedded Wikipédia links instead of random word in the page.
@poonamdevi29013 жыл бұрын
where do you get this app from please tell i should also do it
@edwinhighdefinition4 жыл бұрын
why i don't get any description in index 1 off the json array, that's empty
@kirtanmagan30234 жыл бұрын
same
@edwinhighdefinition4 жыл бұрын
@@kirtanmagan3023 and nope... I solve my problem, if you want to get too, you can get it in my api luckedwin.herokuapp.com/wikipedia/en?q=unicorn
@ytsks4 жыл бұрын
I like how this dude looks like he is on speed, even tho I am sure he isn't.
@rujor5 жыл бұрын
Linter please. Would save us all some minutes here and there. ☺️
@walterclementsjr.59473 жыл бұрын
wikipedia has an option to accept CORS requests by adding '&origin=*' to the url.
@sebastiansosa30726 жыл бұрын
I get this error after implementing loadJSON(..):TypeError: res.text is not a function at p5.js:60536? anyone know what is happening.
@ignacioalamo43036 жыл бұрын
Same here!
@sebastiansosa30726 жыл бұрын
It was that he has p5 library installed or linked to the html so instead i just used the jquery version: getJSON(..).
@Codejoy5 жыл бұрын
@@sebastiansosa3072 Where? instead of loadJSON? I did that and same error...
@ali-ahmed.7 жыл бұрын
There should be a KZbin bot that likes every video you upload.
@abdalhfeez43506 жыл бұрын
You're awesome sir I need the steps to be full software engineer in JavaScript Please give me the steps ❤
@chris56a6 жыл бұрын
i cant really code but i understand what your doing, I dont really think in numbers i see more in images, i understood your "snake" video more than this one
@kunjchoksi6 жыл бұрын
Great Video sir. Is it possible to fetch data using vanilla JS and solving error "No 'Access-Control-Allow-Origin'" . cause i'm stuck in this error. I do not want to use p5.js.
How would you make a "wait for data function" (maybe with a loading bar) if your internet connection is really slow?
@TheAbsoluteProduction5 жыл бұрын
progress ?
@carljorgensen84897 жыл бұрын
I have serious problems downloading p5 on my pc. Or not exactly the download but how to set it up
@Sejiko7 жыл бұрын
hi go to this site:p5js.org/download/ hit the full package extract the zip and link the html with that p5.js just like javascript files .... now you have to link your own script.js and write this 2 functions setup and draw then u are ready
@vcothur76 жыл бұрын
There's an Unicorn cricket team 😂
@rivarelven41296 жыл бұрын
make google maps api challenge
@xiaoqi2002681466 жыл бұрын
is there a way to overwrite and result instead of appending to the end of the last result on html page?
@alonattar38367 жыл бұрын
Great work Dan ! :) Can you please next time program in CSS :D Thanks alon :)
@TheCalax7 жыл бұрын
You don't really "program" in CSS
@raghavgupta11577 жыл бұрын
are you doing webscrapping?
@IgorMarty7 жыл бұрын
I love your challenge but this HTML is so wong !
@TheCodingTrain7 жыл бұрын
Say more! Or better yet post an issue with explanation at the Rainbow-Code github!
@condor07uk7 жыл бұрын
Igor Marty for starters you have declared an h1 and closed an h2 tag input tags dont need to be closed