« first day (910 days earlier)      last day (4053 days later) » 

1:09 PM
@rlemon Yeah, it doesn't seem like it'd go too well with the mechanics you have right now, but maybe if you change them. Maybe you should just make pool?
 
I am facing a problem in javascript.
 
lol
 
var url = <?php echo LINKURL ?>+'folder/folderDelete/'+folder_id; This line gives me an error. LINKURL is a PHP constant
 
i am getting "SyntaxError: missing ; before statement" this error on the above line
 
1:11 PM
tank billiards. you are playing a game of billiards but you are a tank on a massive field. the enemy is also a tank. you must use the explosive force to move the massive boulders into the caves before the enemy moves his
 
That could be fun
 
@EdwinAlex Unless LINKURL is surrounded by quotes, making it a string, you're outputting the literal value.
 
@Zirak If it is surrounded by quotes, it gives me a syntax error in the editor itself
 
user1125394
!!> var s="#5544|5454|45454|545#33|131";s.split('#').length; //wanna spli+remove empty strs
 
@c'c "ReferenceError: assignment to undeclared variable s"
@c'c ",5544|5454|45454|545,33|131"
 
1:16 PM
@EdwinAlex And the text editor is more important to execution than the language engine.
 
@c'c 3
 
user1125394
^ 2 in this case
 
@rlemon Try DirectX in the options then?
 
user1125394
this is a virus ^
 
1:18 PM
!!> "#5544|5454|45454|545#33|131".split('#').filter(function(n) { return n != ''; })
 
@rlemon Maximum execution time exceeded
 
pft
 
user1125394
@rlemon well no worry in my case it alwasys starts with a #, can just drop the first match
 
Instead of that function, you can pass Boolean as the filtering function.
 
@Zirak i got it. Thanks man
 
1:19 PM
I would like .filter(regex) to work
 
@EdwinAlex Enjoy
 
as an alias of .filter(function(x){return regex.test(x)})
 
user1125394
@JanDvorak bet jquery has this kind of
 
@c'c and if not, there's a plugin for that
!!> ["a", "b", "cc", "ddd"].filter(/(.)$1/)
 
@JanDvorak Maximum execution time exceeded
 
1:22 PM
@AmaanCheval we should try out some team terriara today
 
@SOChatBot hint: TypeError: [object RegExp] is not a function
 
Sure, I'm up for it. When are you free?
I'm busy for about half an hour
But my internet is being absolute shit. Goes away every 15 minutes
Hopefully that will stop happening soon
 
damn it .. today i too wont have any time to go shopping
 
@AmaanCheval well ping me when you are free.
how far along are you ?
 
hell .. it will be a wonder if i get home before the pizza delivery ends accepting orders
 
user1125394
1:27 PM
o well I'm too good in js, managed to make something that freezes Chrome
 
do you need ar and shit?
@tereško call then en route
 
@BenjaminGruenbaum were that you who argued that labeled breaks are harmful and unreadable? WhatWG uses those: whatwg.org/specs/web-apps/current-work/multipage/…
 
@ThanhTrung Welcome to the JavaScript chat! Please review the room pseudo-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.
 
which would require me to leave work before 22:00 (which is likely not to happen)
 
which is also advised :P
9:30 here
and Saturday
 
1:29 PM
@rlemon not very far along. I saw some people play it because I was too lazy to read the wiki :p
 
lol
 
posted on April 13, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Have I mentioned lately that we have a store that exchanges novelty

 
you just need to read on how to get NPC's to your 'town' how to build a 'town' (houses) what basic tools and weapons are and the hotkeys
then the biomes
and basically at that point you choose what you wanna do and read the wiki towards that end
for example; I built my hellavator and now am fighting in the underworld biome
 
user1125394
!!> var f=["foo"]; for (var i=1;i<f.length;i++) {"test"}
 
@c'c Maximum execution time exceeded
@c'c "undefined"
 
1:31 PM
c'c use the sandbox or ill ban you from the bot. seriously
 
@rlemon talking about terraria ?
 
user1125394
indeed for the i< ;)
 
user1125394
yet js could correct my errors
 
user1125394
@rlemon ok..
 
looked like you were having a one way code-talk with the bot
@tereško yea
that game is a lot more in depth than I would have thought on face value.
 
1:33 PM
heh
 
every time I watch the Castle Hawkthorn episode of Community I think of it
 
have you found any sky islands ?
 
it's the perfect engine to make that game in
@tereško yea in every map I find one, I see there are multiples in some maps? but never found more than one
use an anti-grav pot and ride the skyline
 
@rlemon what are you talking about?
 
terraria
 
1:34 PM
@rlemon Nice. I'll read through the wiki in a bit, and then we can play
 
Oh I have that
The 2D minecraft kinda thing?
 
atm my next goal is to kill the wall of flesh and unlock hardmode
@XCritics I thought that... but it's a lore more in depth than minecraft
minecraft is all open world, this game has actual goals and purposes
 
Add me to steam friends and we'll play :D
 
handle?
 
1:36 PM
@XCritics it was very little to do with minecraft
 
I think it's Sandboxx
 
@XCritics Link your profile and you'll get a bunch of requests
 
it's actually more of a castlevania style game , with crafting
 
If you play offline or have access to the server there are also nice tools available that show you the whole map as a png file or let you search for things
 
@AmaanCheval Good thing I get to choose who I accept :P
 
1:37 PM
@ThiefMaster really? I'll have to look into that
 
yeah
 
unfortunately they stop working when you use this mod that allows you to mod the game
 
> 61.2 hrs / 118 hrs
for terriara is a lie. I leave it open a lot
 
Yeah, but you've left it running without playing so many times
ninjad
 
1:38 PM
best part about that game is the game pauses with no focus
 
Your name is Sw4G?
I sort of regret sending that request
:P
 
LOL It was a troll fest on counter-strike last time I played :P
 
Why doesn't the white space collapse?
 
1:40 PM
the whole other team were talking shit and their names were yolo and sw4g and what not,. so we copied their names and destroyed them
and i havent gotten around to changing it :P
 
@JanDvorak They use labels, but not labeled breaks
 
@BenjaminGruenbaum there's a labeled continue
admittably, they also omit curly braces
 
@JanDvorak Not only is their code bad, with bad flow control to begin with, I never argued against that use case. They're breaking/continuing one scope, that's not what I was arguing against
They added the label for semantic reasons, they could remove it and the code would still function
They also use switch cases which are bad
Also, what they really need is a generator (yielding when found, not breaking or continuing)
 
They're not continuing the innermost loop
 
In that case they're just plain wrong :)
That's like breaking their innermost loop
Which could be much nicer if they changed their looping condition, maybe convert the innermost loop to a while
Also, again, what they really need is yielding
 
1:48 PM
breaking the innermost loop would post the message
they don't yield because they want to demonstrate the use of web workers
 
I'm talking to people while typing, I'm not 100% here, they don't yield because they can't because it's ES6
We'll talk about this later :) You can agree it's bad code
 
point me to their bad switch, please
 
user1125394
grr slice, splice, spice methods that's confusing
 
i'm pretty sure the last one doesn't exist natively :p
 
user1125394
;)
 
user1125394
1:57 PM
seems I'm making a pure memory leaky stuff
 
Array.prototype.spice = function() {
  return this.concat(['Aniseed','Basil','Bay Leaves','Cyenne','Chili','Cilantro','Dill','Ginger','Marjoram','Paprika']);
};
 
@Loktar well ... the lead developer here does not know what "closure" is
5
 
@tereško I'm assuming he doesn't do JavaScript?
 
he does
 
user1125394
this[Math.round(Math.random(1,this.length))] rather
 
2:02 PM
:(
 
a week ago he spent an hour telling me how you cannot do non-locking requests in "real web application"
 
:(
How does something like that even happen in the first place?
 
.. by holding open session while performing 30s+ long requests
 
:/
Anyone who has at least some love for what he is doing at his job should at least get the basic language concepts right...
Lemme guess, he loves jQuery?
 
of course , because of him our "web application" is running two versions of jquery (it's partially my fault, because i showed him how to do it)
 
2:05 PM
Haha
 
@tereško In order for an application to be successful it has to include both jQuery and jQuery.min
 
6 month ago i would have found it funny
 
@BenjaminGruenbaum are you being serious Lol
 
Sounds like you should find a better job
 
2:13 PM
oh , yeah , that i do .. hell , i am still at work and will be till something like 22:00
 
They better be paying you really well.
 
lol
 
There is nothing more frustrating than running into wtf code in the workplace. I had someone who wrote asp.net mvc like a 10 year old php tutorial tells you how to write php.
 
~ 7$ / hour
 
2:14 PM
wtf
 
.. and then people wonder , why i am constantly pissed of at stupid people
 
You should definitely find another job then :/
 
i will be working on it when this project is complete
 
In particular, one that doesn't make you work with idiots all the time. If I had to work under someone who is that unqualified, I'd probably rage all day
 
i'm gonna collect my bonus (which wont be anything spectacular) and start looking
 
2:18 PM
I mean, closures are the bread and butter of JavaScript, you can't not know them. That's how modules work, and it's what lets you keep context in asynchronous requests. Doing sync IO in JavaScript is the equivalent of using a text file as a database in php.
 
Teresko if you want to work in france send me your resume at florian@margaine.com, my company could hire you (php/cms job)
 
i'm gonna be looking for something that offers remote
 
It'd be paid according to french salary rates ofc
It's just sad to see good dev in your situation
 
I'd can get you a nice paying job in Israel if you're interested (~$6k month). If you're not willing to migrate I get that.
 
If you're not relocating then i cant help yeah
@Ben really?
 
2:20 PM
@BenjaminGruenbaum I'm up for it :P
 
The world is filled with crappy devs running other crappy devs doing stupid shit, working for money with no passion for what they're doing, thinking their college degree is enough and they don't have to keep reading and learning. It's very saddening to see someone who actually likes coding and is competent work under a crappy developer.
 
Israel seems way too volatile place to relocate to
 
I'd like it
 
need help in GD PHP in PHP people are not helping me :'(
 
@tereško Maybe you should stop working so much with your normal job and use that time to do some freelance work?
 
2:21 PM
@FlorianMargaine That's pretty average for a senior developer here, it's before taxes but it comes with other bonuses like solid health insurance, travel fare, and other stuff.
@FlorianMargaine ones with a few years experience can easily climb to $7k or $8k, you usually get a car and a cellphone but that's negligible.
 
A car isn't negligible
 
I don't even have 1 year of experience, i'm far away from senior dev :)
 
@FlorianMargaine You're aiming to get into Project Management, though, aren't you?
 
@FlorianMargaine You're 2 years away, maybe 3. A junior dev is ~$4k
 
user1125394
my webpage is scaringly gradually lagging over time
 
2:26 PM
@tereško You seem competent though, way more competent than some people I worked with who make that type of money (and even more). ~7$ an hour seems like an insult to what you're capable of. I'm confident you can find a job that pays (considerably) more.
 
i guess he'd have to move to a different country for that
 
@BenjaminGruenbaum You've got to consider living costs and the like where he is, but you're right. He's working crazy hours, and isn't being paid well
 
eastern europe.. I think the salaries there are generally much lower than in "old europe"
 
Everyone check out my plugin :) code.google.com/p/jautochecklist
 
2:28 PM
which is why i'm gonna be looking for options to work remotely
 
speaking of that.. why the fuck do people put ALL web scripting languages in the tags on careers.SE?!
 
and then write "we use [xyz] - so you better know that or [some] [other] [scripting] [language]"
 
Oh, because you can learn a language fast if you know one of the others
I wouldn't mind hiring a RoR dev for an asp.net mvc position
 
sure, but i wouldn't apply for a perl or php position for example
so when searching for [python] i don't need those results in the list
 
2:34 PM
@BenjaminGruenbaum That's still more though than they pay in parts of germany, where Devs might end up with 1.400 Euros per month (before taxes...)
 
@IvoWetzel 1.4 Euros an hour?
Seriously?
 
@AmaanCheval Yes, and that's in Hamburg...
Speaking of salaries, the current issue of the GDC magazin had the results of their annual salary survey
 
No not 1.4eur/hr
 
Yeah, 1,400/month
 
about 12 Euro /hr
(given a 40 hour work week)
 
2:38 PM
I'm working for that much right now as well
 
Well I'm very well paid either, but it's classic for a junior in non-paris france
Not very well*
 
with 1400 you'll have about 1k left to live from
now get a flat in Hamburg, unless you want to live on 5m² you're easily paying more than half of your monthly income for that already
 
well .. here i can pay mortgage on apartment + utilities with ~600$ per month
 
@tereško How many square meters? I'm currently paying 620€ for ~50m² were I live
 
user1125394
oufff, my app is not completly shit, that's just that datatables plugin can't handle reasonably two many rows, certainly jquery based
 
2:42 PM
@IvoWetzel not sure .. more then 30, less then 40
 
user1125394
@IvoWetzel man where I'm paying 600€ for 18m² !
 
user1125394
being ruined with that
 
@c'c You can pay the same amount in Germany too, depending on where you live. Although I guess in Munich you'd pay even more than that
 
it's 30min from city center
 
user1125394
@IvoWetzel yep sadly, I really want an exotic job
 
2:43 PM
@tereško About 20 (either with public transport or per bike) for me, but Mainz isn't the biggest City after all
 
well .. I'm in Riga
 
I see then
Seems to be comparable in size to Frankfurt, where I lived before. I payed ~480 for a 16m² room in a shared flat back there.... and it wasn't really a nice place to begin with
 
user1125394
smaller is better, easier to clean
 
takes me about 2 hours to clean my 50m²... but I like to clean... so.. yeah
 
If you need your IDE's code generation tool, then your language is too verbose
 
2:56 PM
golfscript FTW
jQuery FTW
 
user1125394
I love sublimetext
 
what's that?
 
editor ... then again , a jquery user should not be expected to know about it
 
free?
 
no, but AFAIK the trial is fully-functional and without an enforced time-limit
 
2:58 PM
better stick with your dreamweaver
 
I'm not using DW
 
user1125394
v2 is free
 
A function that can't fit my screen can't not be bugged
 
@SOChatBot $(function(){...}) is a function too
 
who gives a fuck about jquery
 
3:05 PM
!!/choose Vim Emacs
 
@IvoWetzel Emacs
 
!!/choose vanilla jquery
 
@SOChatBot I'm sorry, but now we can no longer be friends.
 
@JanDvorak vanilla
 
damnit
 
user1125394
3:06 PM
!!/choose 1 eval(1+1)
 
I'm all for having the Chat Bot make any important future design / architecture decisions. It's such a reasonable mind!
 
@c'c eval(1+1)
 
!!/choose document.write innerHtml appendChild
 
@JanDvorak None of the above
 
!!Should I use jQuery?
 
3:08 PM
@IvoWetzel Probably
 
!!/choose document.write innerHtml appendChild $().html $().append $().appendTo
 
@JanDvorak $().append
 
@SOChatBot good guy :-)
 
@Zirak Your bot is biased towards jQuery. Make it stop!
 
in past few month i have written al llot of javascript
and not even once i needed jquery
not even for simplicity
 
user1125394
3:14 PM
you have to adapt to coworkers also
 
@tereško Working on anything interesting?
 
@tereško not even for animations?
 
@JanDvorak from all of big JS libraries, jquery is the worst at animation
and no , not even for animation
 
@tereško recommend
 
user1125394
do you talk about performances?
 
3:16 PM
i am talking about the quality/smoothness of the animation
 
user1125394
then ok
 
jQuery tries to run at 60 fps
 
and fails
 
@IvoWetzel talking about vim, did you try vundle?
 
3:18 PM
average laptop cannot achieve such rate of animation .. resulting in complete crap
and IE cannot achieve it even on a good gaming pc
 
jQuery adapts to CPU speed
 
lolwut
 
user1125394
jQuery automatically adapts to its developer
 
IE is a terrible browser
@c'c well, shouldn't it?
 
3:20 PM
IE is the reason why we have XHR
 
adaptive.jquery.js - I mean, I thought everyone knew about this one.
it know my intent, even when I do not and produces the most awesome results.
$('cool shit with that one thing moving over to the other when the user hits it');
 
!!/google adaptive.jquery.js
 
@tereško I'm aware it was not meant as a real plugin
 
3:28 PM
// awesome.js
// the most awesome js library you will ever need
// minified for best performance
(function() { console.log('JS is awesome!') }())  /* no semi-colons saved like 2 chars right there ... off fuck... comments */
 
user1125394
you need to define the $
 
I never liked the $ alias
my code doesn't need bling
 
var $ = ($ && $($)) || 'ok';
 
var $ = function some_money_converting_method() { /* ok this would be ok */ };
 
+$(300, "CZK") => 10
 
3:32 PM
@Darkyen , have you read "sword of truth" series ?
.. saw your (nick)name and it reminded me about it .. it's a quite awesome fantasy series
 
$(10).to("CZK") => 300
$(1e9, "JPY").to("CZK") => 10
 
isup.me/codepen.io that's a shame
 
!!/tell JanDvorak help convert
 
@JanDvorak convert: Converts several units, case sensitive. /convert <num><unit> [to|in <unit>] Pass in list for supported units /convert list
 
@Zirak meh. That requires the bot.
!!/convert 1000000000jpy to czk
 
3:35 PM
@JanDvorak Confuse converter with jpy, get error message
 
!!/convert list
 
@JanDvorak Could not process input. Error: cb is not a function on line 5629
 
@Zirak huh?
 
...damn it I knew I forgot something
 
LOL
 
3:37 PM
@rlemon if u find a job around that helps me to immigrate tell me pls
even if they pay me least i will migrate
i just dont wanna live in here anymore
 
What happened?
 
@AmaanCheval call me
it's better i can talk it out ... too much to type too much shit to spit.
 
I'm with family right now. Can't really talk. WhatsApp?
Ah
 
i can atleast use siri to type it down for me
works fine :D
 
> Siri, where is the nearest bridge?
> Okay glass, where does Siri live?
 
3:44 PM
@JanDvorak siri understands me quite perfectly
 
For fun, try this one:
> Siri, call me "ok glass"
 
lol
 
Haha, nice
 
> Ok glass, call me "siri"
 
she calls me
"doc"
 
3:49 PM
@woel Welcome to the JavaScript chat! Please review the room pseudo-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.
 
Hi all, can someone point me to a javascript service which can be used as plugin?
 
define "service"
define "can"
 
Ruby is for smelly hipsters
 
service = web service or a complete end-user site; can = i'm looking into reusability which something that required modification but not something I would write from scratch.
 
you really should tell us what you want...
there you just told us "is there a car that would suit me?"
we don't know you, we don't know who you are, etc.
 
4:07 PM
it's better i can talk it out ... too much to type too much shit to spit.
 
hi, i'm creating my first javascript for my website. The code should be displaying animation. I'm looking at third-party website that provides that kind of service, minimum code from my side to begin from scratch. there were some in google search, but i'm more interested in serious third-party or a web service, and hear from expert programmers before i begin. what is your advice?
 
for animations, grab a library rather than a service
 
what
?
@JanDvorak grabbing css would be much better
 
what?
 
user1125394
/me hopes parseFloat(c[3].replace(',','.')); will not reduce perf too much (done at small intervals)
 
4:10 PM
s/parseFloat(.*)/+$1/
 
^this
@c'c no, it won't
DOM operations are a million times slower
 
user1125394
@JanDvorak I don't understand, and thx Florian
 
@FlorianMargaine that depends on whether you are doing a million more computation than DOM operations
 
user1125394
the $1
 
@c'c look up unary plus
$1 means "the first capturing group" in Regex
 
user1125394
4:12 PM
ah ok, gfor no global replace
 
I'm thinking of breaking /converts functionality into two. Money and unit conversions are too dissimilar it's making the code stink.
 
An Irishman, a homosexual and a Jew walk into a bar. What a fine example of an integrated community
 
@Zirak You could treat monetary units as just units. Converting meters to dollars makes no less sense than converting meters to seconds (ignoring the speed of light, of course)
(except the conversion coefficients change throughout time for money)
 
4:27 PM
It does make less sense because I'm hardcoding the unit conversions and using an API to get the exchange rates.
 
cash extends dynamicUnit dynamicUnit extends unit
 
So to know when to use that API, I basically keep a giant hash of possible currencies.
 
staticUnit extends unit
 
Which gets further complicates because of aliases ($ => USD, feet => f, ...)
hurr durr
 
alias<U extends unit> extends U
 
4:31 PM
wonderful coworkers .. "i will just completely change the data format in SOAP response and leave"
 
 
You should comment all your code
 
i++ // increment i
 
4:54 PM
i++; // add one to the iteration variable for the outermost loop
 
!!/karma i
 
@Darkyen i has -2 karma
 
!!/karma C
 
@Darkyen C has 4 karma
 
@Darkyen Where do you want to move to?
 
4:56 PM
C++
@AmaanCheval France / Canada / USA / UK .. anywhere but india
india is only fine if bangalore.
 
And you're in Bangalore. So what's the problem?
Anyway, I'll ask the guy I've been making games for
 
its fine ... am not happy still
 
He pays a little more than minimum wage anyway :P
Ask him if he may want to help you move
 
thank you so much :->
 

« first day (910 days earlier)      last day (4053 days later) »