Programming

How do you think jquery gets around that?

https://j11y.io/jquery/#v=1.11.2&fn=jQuery.fn.on

This looks like it’s adding the event function to some kind of jQuery event object. Crazy stuff.

Thanks. I just remembered going through this before with a different button

and ended up with

$('#main').on('click', '#bar', doSomething); 

because it wasn’t in the DOM yet. I will test it tomorrow.

The moderators of this message board, otatop, L.Washington, WichitaDM, Yuv, JonnyA, RiskyFlush, and SvenO, are cowards who let abusers dox and harrass other long time posters.

Yeah that code pretty much seems like the poster child example for “don’t mutate or reassign your function arguments”. I assume it’s all some crazy performance optimization that isn’t necessary anymore.

I got a kick out of this:

if (one === 1) 
1 Like

I will never understand you javascript geeks but will be forever fascinated by it. What a strange, archaic language.

Come on bro, it’s beautiful.

1 Like

i feel you. having my boss tell me to understand 5,000+ lines of terraform and helm charts that was made by your russian teammate in a totally different timezone and can barely speak english, RIP

Or 1600 line bash scripts written by a guy who thinks he’s good at writing them but has like 17 piped commands in 1 line with awks and seds everywhere that are completely illegible

I wish I could explain to you guys the pain I have sometimes

1 Like

It’s ANSI compliant so it makes no appreciable difference - queries written in ANSI compliant SQL will run in T-SQL and PostGre (though performance optimisations outside of the standard maybe be available in both of those flavours).

I was just complaining to my business partner about how feeble my IDE is in Python vs Rust. I think it’s more than just dynamic typing though. At least in my experience, IDEs are much better about JS than they are about Python. Python has the added burden that any line of code can do virtually anything at any time, in ways that aren’t comprehensible statically:

2 Likes

Any of you ever work a lot with helm charts?

Thanks this worked!

That’s more to do with there being greater demand and consequently more work put into JS than python wrt IDEs. There’s actually less magic in python vs JS though the significant whitespace adds its own wrinkle.
Speaking of IDE power, in my experience intellij for java IDE is way ahead of most other
IDEs/languagess. Have also heard that xcode for objective c/c++ is as good if not better but have never used it myself.

Query engine architecture and performance is quite different on different RDBMS. Even if one isn’t using anything outside of the ANSI standard, there can be significant differences in performance.

You’d be surprised how much non ANSI-compliant syntax there is in today’s version of TSQL. I doubt any of the code I’ve written in the last 10-15 years would run on a different RDBMS. Doubt window functions are ANSI-compliant, for example, unless the standard has been updated fairly recently.

When I say I’ll be able to figure it out, I mean mostly figuring out what part of what I know works on a different RDBMS and what doesn’t.

I stated ANSI compliant queries.

and I said this too lol.

Is this an ANSI-compliant query? Genuine question, I have no idea.

I don’t think so, iirc. Some other T-SQL syntax also isn’t.

Right, hence my point…

? mine too

Well your statement was a bit tautological since queries written in ANSI compliant SQL will run on every RDBMS, by definition. So I thought you were responding to my original post by proxy of your response to microbet, saying that I work with TSQL but should be able to work it out.