« first day (2242 days earlier)      last day (2705 days later) » 

3:00 PM
Do you have a non-sensitive config file?
 
@rlemon you should use a flux implementation
 
and mind if I change it to config.js instead of JSON? it's more useful.
 
and store user in a store
 
@Mathematics to the interwebz
 
@Loktar we're gonna get there.
 
3:01 PM
so then components can access it regardless of component hierarchy
 
well, i was gonna push him the mobx way, but..
 
@Luggage no, but It's simple. clientID, clientSecret, callbackURL, psqlConnectionString, and sessionKey
 
mobx ftw
I still do everything in stores in mobx with useStrict
 
@Neil after the execute, i put that column (aliased it to tName) into a final variable (rs = ResultSet, ps = PreparedStatement)
if (rs.next()) {
    final String tName = rs.getString("tName");
    cleanup(rs, ps);
    rs = null; ps = null;

    ps = db.prepareStatement("SELECT ... FROM `" + tName + "` ORDER BY Name;");
   // ect
}
 
requires @action to change anything being observed
 
3:01 PM
but can I escape it better ?
 
I'd just NEVER mix SQL with variables...
Even if it's causing difficulties
 
table names can't be parameterized.
 
^--
 
@KarelG what does cleanup do?
 
close() calls
 
3:05 PM
ftr, I'd just make .match(/[a-zA-Z_]/), end of story.
 
eh that's a good one
 
yes, or whitelist the values somehow
 
+ a check like tName.length < 50
@KarelG well, you're the one who went with such a solution to begin with :)
 
@Neil interwebz ?
 
I ahve to accept a column name to sort by and I just have a whitelist of column names to ensure no tom-foolery.
 
3:06 PM
Have you tried doing a join? Like (I don't know if this works with sqli) "select * from (select table_name from information_schema.tables
WHERE table_schema = ? AND table_name = ?)"
 
ah subqueries
 
That'd work in Oracle (still fugly)
 
not sure if it works in mariaDB
 
I also wonder what happens if no table is found
 
they use their knees
it isn't comfortable, but no one likes standing to eat
 
3:09 PM
heh that subquery is better
 
go commit that .gitignore. I got changes to add to it
 
I only have to alias it at the end
 
gotta make this project startable by more than rlemon
 
 
and if the supplied table name is not known, empty result is returned
 
3:10 PM
At least you don't have to perform multiple queries
 
@rlemon require('pg'); ? not node-postgres ?
 
o wait
that subquery doesn't work
 
@Luggage they're the same thing
 
ohh, right, nevermind
missing from your package.json.
but i'm fixing that.
 
my bad
 
3:18 PM
yea.. just get me that .gitignore
 
Hey everyone! Did ya miss me?
 
or i'm adding a new one
 
@Thaenor no, who are you?
 
I used to come here all the time... like... earlier this year...
 
3:22 PM
You guys know any Sublime package or something that helps auto indenting HTML tags?
Or Dust tags, if it matters.
 
Emmet?
Doesn't subl auto-indent by default?
 
@rlemon what's my callback url?
/login/github/return ?
 
yea
 
I've been meaning to get this shit out of the waty for days.. finally gonna mek this thing able to be worked on by more than one person.
 
Btw is anyone familiar with Litmus?
 
3:28 PM
almost done.
 
science is going to go too far
 
flag it as hate speech. They clearly hate being educated.
 
meh
too much hate for it imo
move on
they're good at SEO and obviously provide some usefulness if you can't handle that you're weak
 
@ssube looks like an opportunity for trolling
 
3:33 PM
@ssube i'm curious how they would track the goods
 
@Loktar I think they're actually working with some russian gang to intentionally put XSS/SQLI vulnerabilities in their examples, so the sites can be hacked later. :P
 
so i doubt that the concept works without scanners
 
I get they give simple examples, but the examples they give are still riddled with bad practise and code that I would not want to teach people. "they were bad, not bad anymore" is not quite true
 
@rlemon sessionKEy just arbitrary?
 
because they're still bad. maybe not as bad but still bad
@Luggage yes
 
3:34 PM
@KarelG magic! also probably the same tech we use now to prevent shop lifting (those little metal strips)
 
@ssube LOL
 
@rlemon examples?
 
"Why is this hemorrhoid cream in my bag!?"
 
user1596138
Lol I wouldn't go to them for SQL tutorials anyway
 
3:35 PM
people keep saying "they're bad"... are they, or just basic?
 
user1596138
@rlemon 90% of SO answers are worse lmfao
 
there were some legitimate excuses way back.. but now they aren't "bad" or spreading misinformation from what I've seen
 
@Jhawins "A is worse, so B is okay" doesn't hold true imo
 
it's just a big old circlejerk now
 
user1596138
@rlemon No one implied that. But bash both
 
3:35 PM
they are still pretty bad, they definitely avoid any good practices
 
@rlemon explain every election ever
 
@Loktar pick a page. most if not all examples show practises we actively advocate against.
 
user1596138
If you have to google for copy/pasta snippets... It doesn't matter where you get them from.
 
user3119231
The only place in www where you can find good answers on your question is room 17. Agree?
2
 
3:36 PM
w3schools is about the level of those $15/hr offshore developers, intentionally
 
flexbox, doesn't look bad just a shitty format for the info
I never use w3schools, but the circlejerk of hate just gets old after x years.
 
@Maurize damn better than room 16, boy let me tell ya...
 
@ssube Hey, I think I'm better than w3schools, thanks
 
after that many years, you'd think they would fix the site
 
@Loktar hrm, and so you pick a topic I don't know enough about to even have an opinion 😛 I opened the page, clicked on a couple of the JS topics (as I do every time this comes up) and the ones I click I'm seeing correct information, mixed with bad practises and overly simple code.
 
user1596138
3:37 PM
@ssube Tell that to Reddit and Hackernews
 
at least now people have plugins to block it
 
user1596138
If you mean the way the info is presented anyway haha
 
w3schools.com/js/js_date_formats.asp is a great example of how wtf their examples are
 
lol
I was like surely comments docs can't be bad
but they do use innerHTML so yeah whatever ;P
 
innerHTML
those docs should have no code in them, I don't know how you botch that
 
user1596138
3:39 PM
@Loktar lmgdao yeah shit they win w3schools.com/jsref/prop_html_innerhtml.asp
 
user1596138
document.getElementById("demo").innerHTML = "Paragraph changed!";
 
user1596138
Lmao
 
@rlemon PR ready. bascially, jsut ut your config.json in the project root as secrets.json
 
the only problem I think most people have is their fucking amazing SEO skills
 
I can justify my changes, if need be
 
3:40 PM
but to use a plugin to block a site is just silly imo
 
why? It makes it easier
I don't have to type "+ mdn"
 
neither do I anymore :p
mdn ranks quite high
on almost everything js related
 
for some topics w3schools still crops up to the top for me (without the extension)
 
same, pretty regularly even though I had it blocked for years
 
I mean I can't tell people how to use their browser or customize their viewing experience, but I've always found the heated hate response towards w3schools odd
especially since that sham of a site w3fools
which couldn't even bother to keep their own issues up to date
plot twist I own w3schools
lol I always feel that way when I argue for them
like I must somehow have a stake, but in reality Idgaf lol I just like to argue :P
 
3:43 PM
@rlemon give me the output of (assuming db name: robogist): pg_dump -c -O --schema-only -n public robogist
 
but if you owned it, then you would make it not bad
so if you wanna go ahead and buy them out, go for it
 
@ssube yeah and I would have some nice ad money
 
is the schema not in the repo?
 
I envy their seo skills seriously
 
ohh, didn't look.
 
3:44 PM
you would, it's almost certainly a good investment
 
nope
I'll add it
 
@Loktar ignoring the actual W3C's requests to stop using their name helped a lot with that
 
I doubt I could buy them out I bet they make over a million each year
 
their older branding was much more "we are the w3c" than the current site
 
yea
maybe it's because of the audience/group of people I talk to on the internet. I mean we just all know better
so when I see people hating on it I'm like why? We already don't go to it anyway, just leave the poor site alone lol
 
3:46 PM
@Luggage see commit
@Loktar but when someone askes on the internet "what is wrong with w3schools" the answer of "nothing" I think deserves a little attention (if you're into having that discussion at that time)
 
@rlemon I say it's a good resource for beginners still
even w3fools does
if you care at all about programming you'll grow out of it really fast
 
and I'd disagree. but that isn't really important 😛
 
I've never found a subject where some specific tutorial wasn't better then w3schools
just looking up the topic itself leads to much better resources (until you hit high end language lawyer type shit)
 
@ssube lol
true
 
> For many beginners, W3Schools has structured tutorials and playgrounds that offer a decent learning experience. However, it would be a mistake to continue your education without learning from more reputable sources, so when you're ready to level up, move on.
pretty much my exact thoughts
 
3:48 PM
how about tutorialspoint?
 
I think having people start on w3schools is like having them start with jQuery. It works, but they'll have to unlearn most of it right away.
 
I just think given the choice, it wouldn't be advantageous to start there.
there are better resources out there with the same entry level (subjective)
 
@rlemon I mean sure there are always better resources
but I wont smack someone for using a resource
 
When I need to look up something simple, Google many time drops me off at w3schools. Nothing wrong with the simple stuff there. They just don't supply in depth information about certain API's. Sites like MDN might be a better alternative then...
 
I'm not, I'm smacking them for advocating it to newbies
 
3:50 PM
idk I've gotten over my elitism in programming if people learn that's all I care about, learning to program can be daunting so whatever works is a +1 in my book
 
@rlemon got it working, but your schemas files had a bad comment and missing a comma
also, it made a DB but never switched to it.
 
@SvenvandeScheur That doesn't mean Google is endorsing W3S, it means W3S is good at SEO
 
w3schools is useful if you're trying to tarpit a vamp
 
@ssube I think SO can be much worse honestly
 
@SvenvandeScheur the whole point is that most of their examples are wrong
 
3:51 PM
I mean it can be much better too.. but it just depends
 
@Loktar so it's streaky vs consistently bad
 
@KendallFrey yes, but I'm with @Loktar on this one. Whatever works for the job...
 
we've experienced that even at my current job... dude just copies the best answer...
and the selected answer was actually old and shitty
 
SO at least lets you rate the answers, so highly voted ones are usually ok
 
@ssube *poor.
 
3:51 PM
this has happened a few times, it's not SO's fault.. but his fault
 
user1596138
@Loktar sorry boss
 
@Loktar and then you fire them
 
And w3school simply just doesn't answer every question, but when it does it's fine. If it doesn't try the next site...
 
for not researching
@Jhawins lmao you know who it is
 
if I found somebody copying code, they would be gone so fast
 
user1596138
3:52 PM
I'm a copy/pasta machine
 
@ssube then you only hire the top like 10% teir (which is great if true)
 
I review/rewrite/reindent/whatever code that i copy, but yes, i copy
 
because 90% of devs who interview are copy pasta tweakers.
 
@SvenvandeScheur as long as you're aware that w3schools is probably wasting your time, go for it.
 
I recently have been discovering the power of shitty code. I can write shitty code much faster than I can write clean code, and it's easier to refactor working code than code that doesn't exist.
 
3:53 PM
Just make sure you know that if you learn from their examples, you'll have to relearn a bunch of that later.
 
@Luggage yea, because I'm a bad programmer 😃 I run those by hand
 
my real problem with them is just that you are directly wasting time by sending people there
 
yeah I never would directly send someone there, but I wouldnt throw docs at someone either
 
@ssube I don't use w3s for learning, google brings me there for the simple stuff i forgot. For actually learning new stuff i'd avoid it.
 
it's the opposite but same problem as when we get caught up in how moment and babel work together with es9 modules when somebody just wanted to get tomorrow's date
 
3:53 PM
giving someone a book of definitions generally doesn't help when first starting out
but there is a whole sea of tutorials from all different years, ect.
so many outdated shitty ones
 
aw man, 5 minutes until I explain to my team how to keep the builds building
this Friday being my last day is still weird and not real
 
@Luggage what is the point of not loading the .json directly?
 
@ssube "don't fuck up"
 
const secrets = require('config.json')
seems like the same
 
1. complicated the gulp config for no gain.
2. In real world, my config.js has some logic in it (NODE_ENV production vs development
 
3:57 PM
We can all feel good about only learning from RFC spec's 'n stuff but something can just be easily explained on basic other sites. Event the simplest well designed reference site may overshoot the need for the simplest w3s example, which, yes, may be outdated.

Many things on the web may be outdated, I rely on my own experience to rate the quality of info.

No I would not recommend w3s as a starting point but if something brings you there as a reference, I would not complain.

I also wouldn't rant on those who are using it. If it helps them get the job done thats a beautiful thing.
 
@Shmiddty they aren't the ones who fuck up, so that should be easy.
 
3. moved the json to the root. no need to 'compile' it at all.
though, that could happen without the other changes.
 
I'm writing a parser library in JS, so I need to write some pretty high-performance string-processing code. Is anyone familiar with a source for guidelines/etc for doing this? For example, I suspect that using charCodeAt is a lot better than charAt but I don't really want to do benchmarks to verify that claim. And maybe there are other tricks I can use.
 
user1596138
@ssube Friday is my last day too
 
@SvenvandeScheur +1 I agree
 
user1596138
3:59 PM
Until next year :D
 
lol we've had this argument in here a ton though it usually ends/starts this way haha
@Jhawins lucky
my last day is next Tue
so not too much longer
 

« first day (2242 days earlier)      last day (2705 days later) »