|
HoboMan posted:gently caress, I got this button that pops up a dialog that stops working if i change something unrelated in the html. what the hell? lol ur a web developer now
|
# ? Apr 4, 2016 21:41 |
|
|
# ? May 25, 2024 11:45 |
|
clearly not. real web devs find this perfectly normal
|
# ? Apr 4, 2016 21:43 |
|
CRIP EATIN BREAD posted:i never did anything with verilog, just VHDL, and that was p. cool. vhdl is verilog that you type out 3 times for no discernible reason
|
# ? Apr 4, 2016 21:43 |
|
AWWNAW posted:lol ur a web developer now oh no you're right. when my boss asked if i know any javascript last week i should have just said "no" instead of "very little". how is all of this so poo poo to work with? like IDEs exist because coders hated dealing with all the poo poo it handles for you, but no one ever thought to do this with web poo poo? is there a way i can break on a button getting clicked despite not knowing what it does when you do? because this button does a thing despite it not referencing any functions.
|
# ? Apr 4, 2016 21:56 |
|
HoboMan posted:oh no you're right. when my boss asked if i know any javascript last week i should have just said "no" instead of "very little". What might be useful is pulling this up in Chrome, inspecting element, and in the view where it shows the CSS for that element, there is an event listeners tab, and you can go right to any jarvascript that is bound to that element. Also, it's possible that there is a jquery snippet that is firing off a selector, and when you messed with the html, it made it invalid for that particular selector. Have fun!
|
# ? Apr 4, 2016 22:00 |
|
HoboMan posted:oh no you're right. when my boss asked if i know any javascript last week i should have just said "no" instead of "very little". Use chrome dev tools to see what has a click handler on the button, unless it's something that does it globally (I think jquery does it that way to cut down on the number of handlers?) If it's not referencing anything in the HTML, something is referencing the selector for the HTML , check the ID and class for the button and see if anything is selecting and adding a handler off of those You can use webstorm as an ide but I don't know how much it could help in this case
|
# ? Apr 4, 2016 22:08 |
|
thanks guys, my mistake was trying to use ie for my debugger, I can already tell chrome's is way better i will justify my use of ie by saying that's what the page is going to been seen in, 100% guaranteed e: is this a mistake or some double assignment wizardry? JavaScript code:
e3: annnnnd now ie has no problem with it either HoboMan fucked around with this message at 22:58 on Apr 4, 2016 |
# ? Apr 4, 2016 22:19 |
|
JawnV6 posted:vhdl is verilog that you type out 3 times for no discernible reason yeah i dont remember much about it other than i synthesized a vga controller, ram controller, NES controller adaptor (just a bit shifter) and made some silly tank game in pure hardware.
|
# ? Apr 4, 2016 22:50 |
|
HoboMan posted:thanks guys, my mistake was trying to use ie for my debugger, I can already tell chrome's is way better I could be wrong here but I think doing an assignment also returns the value that was assigned, so the local 'search' variable is set to document.BLAHBLAH.value which is set to "Search" you may also want to set up some livereload thing and have ie and chrome side by side so they both refresh automatically when you make changes and you don't have to hope the ie version worked at the end
|
# ? Apr 4, 2016 23:16 |
|
HoboMan posted:So if you put just a function name or variable name in an if statement in javascript dont do this, just do if(buttFunc === undefined)
|
# ? Apr 4, 2016 23:53 |
|
HappyHippo posted:dont do this, just do if(buttFunc === undefined) won't work if it was deliberately set to null for a valid reason, doing == would work in that case but any linter would complain it's perfectly fine to do if (fartFunction) {} if you know fartFunction will only ever be an object, function, or array
|
# ? Apr 4, 2016 23:56 |
|
piratepilates posted:won't work if it was deliberately set to null for a valid reason, doing == would work in that case but any linter would complain i would consider being set to null as existing but thats just me i guess
|
# ? Apr 5, 2016 00:22 |
|
this looks interesting: http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb can anyone recommend/condemn?
|
# ? Apr 5, 2016 01:31 |
|
HoboMan posted:this looks interesting: http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb for a long time, this was like The Javascript Book. I'd think it's severely out of date these days, although that may be useful if you're working with a severely out of date code base
|
# ? Apr 5, 2016 01:33 |
|
HoboMan posted:this looks interesting: http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb 176 blank pages
|
# ? Apr 5, 2016 01:34 |
|
HoboMan posted:this looks interesting: http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb man thats a lot of money for a book with no pages
|
# ? Apr 5, 2016 01:42 |
|
oh god, if you forget the var in your variable declaration javascript not only doesn't complain but assumes you want a global variable? who would ever think that's a good idea?
|
# ? Apr 5, 2016 01:46 |
|
HoboMan posted:this looks interesting: http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb it's not a bad book but you can just watch this to get an idea. https://www.youtube.com/watch?v=hQVTIJBZook and yeah, you'll want to look into some of the newer features of the language afterwards. also don't use jslint bc not all of douglas crockford's opinions are that great. jshint and eslint are much better. akadajet fucked around with this message at 01:59 on Apr 5, 2016 |
# ? Apr 5, 2016 01:53 |
|
CRIP EATIN BREAD posted:has any multi value return function returned an error on the left side? The reason Left is errors/exceptions is because the Functor and Monad instances of Either a b operate on b, because it's the last variable in the type. code:
|
# ? Apr 5, 2016 02:02 |
|
HoboMan posted:oh god, if you forget the var in your variable declaration javascript not only doesn't complain but assumes you want a global variable? use strict e: "use strict";
|
# ? Apr 5, 2016 02:11 |
|
Jabor posted:use strict yeah, and a linter will let you know real quick if you gently caress that up
|
# ? Apr 5, 2016 02:17 |
|
HoboMan posted:oh god, if you forget the var in your variable declaration javascript not only doesn't complain but assumes you want a global variable? you're talking about javascript. nobody put any thought into this.
|
# ? Apr 5, 2016 03:02 |
|
HoboMan posted:oh god, if you forget the var in your variable declaration javascript not only doesn't complain but assumes you want a global variable? javascript was made in the span of something like two weeks to be rushed out to market anyway that should be gone with strict mode, also use a linter, use eslint
|
# ? Apr 5, 2016 03:36 |
|
HoboMan posted:this looks interesting: http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb how the hell did you find that link? obidos is like two rendering platforms ago.
|
# ? Apr 5, 2016 04:53 |
|
FamDav posted:how the hell did you find that link? obidos is like two rendering platforms ago. looks like it's from douglas crockford's website: http://javascript.crockford.com/ (it's the link on the picture) i think it's also an affiliate link
|
# ? Apr 5, 2016 05:12 |
|
crockford is not that good of a resource
|
# ? Apr 5, 2016 05:52 |
|
HoboMan posted:oh god, if you forget the var in your variable declaration javascript not only doesn't complain but assumes you want a global variable? "use strict";
|
# ? Apr 5, 2016 06:04 |
|
HappyHippo posted:dont do this, just do if(buttFunc === undefined) only do this if you have to check that buttFunc is specifically undefined. you can't call it anyway if it's null, false, 0 (edit: or NaN), so you are probably not interested in it being undefined, but "falsy" Wheany fucked around with this message at 06:08 on Apr 5, 2016 |
# ? Apr 5, 2016 06:06 |
|
I don't know if javascript: the good parts has had newer editions, but if it hasn't, remember that it describes the situation like 5 years ago. a lot has happened since then.
|
# ? Apr 5, 2016 06:11 |
|
Though to be fair, you also can't call it if it's like, 2.
|
# ? Apr 5, 2016 06:12 |
|
Jabor posted:Though to be fair, you also can't call it if it's like, 2. true. but if(something) is idiomatic.
|
# ? Apr 5, 2016 06:20 |
|
project manager said he knows enough SQL "to be dangerous" and i'm so excited for the future
|
# ? Apr 5, 2016 06:22 |
|
Power Ambient posted:project manager said he knows enough SQL "to be dangerous" and i'm so excited for the future in my experience that means he knows how to do it but doesn't want to at all. its good
|
# ? Apr 5, 2016 06:29 |
|
Wheany posted:"use strict"; Wheany posted:true. but if(something) is idiomatic.
|
# ? Apr 5, 2016 08:12 |
|
JawnV6 posted:amazing use of sarcastic quotes I don't know if you're being sarcastic but it's a string so it's backwards compatible with js engines that don't support strict mode.
|
# ? Apr 5, 2016 10:16 |
|
JawnV6 posted:of all the goofy corners of C to copy well it's not like c where everything is actually an int, it's just that everything coerces into any other type automatically (not really)
|
# ? Apr 5, 2016 10:59 |
|
backwards compatibility is like 90% of the reason why webdev is such a shitshow i mean, sure, there's no realistic alternative in the real world, but it's still true
|
# ? Apr 5, 2016 11:03 |
|
hi how do i start learning vhdl verilog c:lambda:ash when I don't know poo poo about hardware ee stuff? are there simulators for babbys? I'm thinking about making a simple (LOL) network switch.
|
# ? Apr 5, 2016 12:02 |
|
Shinku ABOOKEN posted:hi how do i start learning vhdl verilog c:lambda:ash when I don't know poo poo about hardware ee stuff? are there simulators for babbys? step one drink until house have cirrhosis of the liver
|
# ? Apr 5, 2016 12:26 |
|
|
# ? May 25, 2024 11:45 |
|
Basically everything in hardware land is a proprietary hellhole. for idiot spare time fuckery one of the cheap zedboards or similar zynq boards and the terrifying nightmare hellscape that is xilinx vivado is probably the way to go? I guess? you could also use like icarus verilog if you strictly wanna gently caress with the languages
|
# ? Apr 5, 2016 12:29 |