Staredit Network > Forums > Staredit Network > Topic: DeVouReR's Updates List
DeVouReR's Updates List
This topic is locked. You can no longer write replies here.
Dec 6 2009, 6:11 pm
By: Devourer
Pages: < 1 « 13 14 15 16 1727 >
 

Jan 27 2010, 5:51 am Devourer Post #281

Hello

Quote from payne
Quote from payne
Devourer, a nice feature would be:
Whenever a member download a file, the server memorize it's ID and if ever the file gets uploaded, this member auto-receives a notice saying a file he download was updated.
O_O
Again.
May I remind you the "auto-refresh" keeper too?
Come on, I do not forget what you are saying so stop repeating it.



Please report errors in the Staredit.Network forum.

Jan 27 2010, 5:59 am payne Post #282

:payne:

Quote from Devourer
Quote from payne
Quote from payne
Devourer, a nice feature would be:
Whenever a member download a file, the server memorize it's ID and if ever the file gets uploaded, this member auto-receives a notice saying a file he download was updated.
O_O
Again.
May I remind you the "auto-refresh" keeper too?
Come on, I do not forget what you are saying so stop repeating it.
Some times, I feel like it...
You also say to me "there are more important things to do" and your next updates are things like a new purple skin... wth? XD



None.

Jan 27 2010, 6:07 am CecilSunkure Post #283



Quote from payne
Some times, I feel like it...
You also say to me "there are more important things to do" and your next updates are things like a new purple skin... wth? XD
Lmao! Loool

Hhahaha he's got a point here :P

(Just teasing :D )



None.

Jan 27 2010, 6:10 am Devourer Post #284

Hello

rockz made the skin, so all I had to do was implementing the skin. Feel free to make a code for that and I'll implement it, too.
You are talking to me as I'm not coding enough. I have done some important SCP stuff in the past days and payne, I made you a dldb manager, you should better give files description and not senseless medals like "You know what I mean".



Please report errors in the Staredit.Network forum.

Jan 27 2010, 6:13 am CecilSunkure Post #285



Oh Dev, don't get all serious on us! We all appreciate your coding of SEN! At least I hope you realize I appreciate it. Getting serious on us leads to the path.. Of the dark side! *kurrhhhhh hhuuuhhh* (Darth Vader breath)



None.

Jan 27 2010, 6:24 am Devourer Post #286

Hello

lol'd :hurr:
Seriously, payne, sorry to say but that's what I query to the end of my list.



Please report errors in the Staredit.Network forum.

Jan 27 2010, 10:25 pm Falkoner Post #287



Instead of the gross: (italic members are currently writing a reply) at the bottom of each page, do this:

Code
<a class="help" onmouseover="javascript:help('Italic members are currently writing a reply) at the bottom of each page', this)" onmouseout="javascript:unhelp()"><img alt="??" src="/skins/3/images/help.png" /></a>
it will look much better.



None.

Jan 28 2010, 1:52 am DavidJCobb Post #288



SUMMARY: DavidJCobb briefly rants on the site's JS problems before offering to fix them single-handedly.

Any way to externalize that? Generally, it's better to not have any event handlers in the HTML whatsoever -- that is, to keep the JavaScript in external files and let it attach event handlers through code.

On a related note, I'm seeing... A lack of encapsulation, a shit-ton of variables polluting the global namespace, a dated get_by_id function[1], an overabundance of limited and (IMO) annoying alert calls where styled modals would be infinitely preferable, usage of if-elses where ternary operators would be shorter and neater, an apparent ignorance of the existence of object prototypes and inheritance[2], a fragmented AJAX system with a ton of repeated code, various syntactic redundancies[3], a whole function for the simple task of changing a node's display CSS, ... I could go on.

But in Devourer's recent post, I spot a solution.
Quote
Feel free to make a code for that and I'll implement it, too.

If necessary, I will happily recode all of the JS on this site into a coherent, manageable set of unobtrusive, standards-compliant files. (And unlike with that skin code thing I said I'd do a while back, this time I can set up various automations to nag me into doing this whenever I forget.) 'Course, I'm not gonna start without a green light from Devourer -- I'd hate to write a ton of code if there isn't even a snowball's chance in hell of it getting used. :P

On a positive note, this site's JS is bad because it hasn't been updated. Compare to more popular (and supposedly more professional) websites like Bungie.net, whose new and modern code is the worst JavaScript I have ever seen in my entire life, bar absolutely none.

[1] Looks like it was made to account for pre-DOM browsers... Honestly, I think we've reached the point where anyone surfing with a pre-DOM browser deserves to have the entire web break for them.

[2] To have an object X inherit from Y, simply do X.prototype = new Y() where X, of course, is the constructor.

[3] Things like using the Array constructor when httpreqs = [] will do. A minor issue, yes, but the more bytes you can shave off your code, the faster the page will load.



None.

Jan 28 2010, 3:08 am payne Post #289

:payne:

Quote from Devourer
rockz made the skin, so all I had to do was implementing the skin. Feel free to make a code for that and I'll implement it, too.
You are talking to me as I'm not coding enough. I have done some important SCP stuff in the past days and payne, I made you a dldb manager, you should better give files description and not senseless medals like "You know what I mean".
Dev getting mad D:
I was just joking around, as Cecil mentioned :O
Anyways, I still love you ^.^ :wub:



None.

Jan 28 2010, 5:07 am Falkoner Post #290



Quote
Any way to externalize that? Generally, it's better to not have any event handlers in the HTML whatsoever -- that is, to keep the JavaScript in external files and let it attach event handlers through code.

That function is already in the external javascript page, it's this:
Code
function help(msg, obj)
{
    help_text = msg.replace("#39;", "'"); //can this be done better?
    var obj_help = get_by_id("help");
    obj_help.innerHTML = help_text;
    arr = get_offsets(obj);
    obj_help.style.left = arr['left'] + "px";
    obj_help.style.top = (arr['top'] + 20) + "px";
    show(obj_help);
}


I guess since only those specific images are used for the mouseover help, you may be right in that it'd be smarter to include the entire coding, including the image and link, inside the javascript file, so it's only loaded once, instead of with each page at the bottom. I think that's what you mean, unless I misunderstood what you mean by externalize.



None.

Jan 28 2010, 6:11 am Devourer Post #291

Hello

david, thanks for the offer but no. I in fact like the system.



Please report errors in the Staredit.Network forum.

Jan 28 2010, 5:30 pm CecilSunkure Post #292



Quote from Devourer
david, thanks for the offer but no. I in fact like the system.
If he can improve the site, and is willing to, you shouldn't discourage that.



None.

Jan 28 2010, 5:43 pm Doodle77 Post #293



Quote from DavidJCobb
usage of if-elses where ternary operators would be shorter and neater,
if-elses are more readable, except when the condition is short.
Quote
an apparent ignorance of the existence of object prototypes and inheritance[2]

None of the javascript on the site is complex enough to need objects or inheritance. Singletons are idiocy.
Quote
, a fragmented AJAX system with a ton of repeated code, various syntactic redundancies[3]
this is the one I can agree with.
Quote
, a whole function for the simple task of changing a node's display CSS
toggle(id) is considerably faster to type and easier to read than (document.getElementById(id).style.display == "none") ? document.getElementById(id).style.display = "" : document.getElementById(id).style.display = "none";
Quote
[1] Looks like it was made to account for pre-DOM browsers... Honestly, I think we've reached the point where anyone surfing with a pre-DOM browser deserves to have the entire web break for them.
It was mostly made because get_by_id is shorter to write than document.getElementById, but the compatibility with old shit is a nice bonus.



None.

Jan 28 2010, 6:09 pm Devourer Post #294

Hello

#1: if-else is good.
#2: doodle.
#3: Got finally used to it and dude why do you mind how that is structured as long as it is working?
#4: There is a showhide function.
#5: get_by_id is shorter.

Sorry but no.



Please report errors in the Staredit.Network forum.

Jan 28 2010, 6:14 pm NudeRaider Post #295

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

DeVouReR got competition, but he's not giving up easily! :hurr:




Jan 28 2010, 7:38 pm Draven Post #296



Quote from Devourer
#1: if-else is good.
#2: doodle.
#3: Got finally used to it and dude why do you mind how that is structured as long as it is working?
#4: There is a showhide function.
#5: get_by_id is shorter.

Sorry but no.

Just because something is shorter to write though, doesn't make it better practice... :unsure:



None.

Jan 28 2010, 7:45 pm ClansAreForGays Post #297



Quote from payne
Quote from payne
Devourer, a nice feature would be:
Whenever a member download a file, the server memorize it's ID and if ever the file gets uploaded, this member auto-receives a notice saying a file he download was updated.
O_O
Again.
May I remind you the "auto-refresh" keeper too?
Wouldn't thsi strain the server if every1 enabled it?




Jan 28 2010, 8:52 pm Jack Post #298

>be faceless void >mfw I have no face

Quote from ClansAreForGays
Quote from payne
Quote from payne
Devourer, a nice feature would be:
Whenever a member download a file, the server memorize it's ID and if ever the file gets uploaded, this member auto-receives a notice saying a file he download was updated.
O_O
Again.
May I remind you the "auto-refresh" keeper too?
Wouldn't thsi strain the server if every1 enabled it?
Nope.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 28 2010, 10:07 pm Devourer Post #299

Hello

Parsing links for profile pages are working now. Example:
http://www.staredit.net/?member=1
http://www.staredit.net/?member=12
http://www.staredit.net/?member=123
http://www.staredit.net/?member=1851



Please report errors in the Staredit.Network forum.

Jan 29 2010, 6:08 pm Devourer Post #300

Hello

When replacing a zip with a zip or replacing a file with a zip in general will re-generate the file contents.



Please report errors in the Staredit.Network forum.

Options
Pages: < 1 « 13 14 15 16 1727 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
Please log in to shout.


Members Online: Roy, Oh_Man