Re: Best code comments
Posted: Tue Sep 12, 2017 6:26 pm
Bottom post of the previous page:
https://github.com/tgstation/tgstation/ ... dmin.dm#L8Bottom post of the previous page:
https://github.com/tgstation/tgstation/ ... dmin.dm#L8Code: Select all
var/fuck_you_dir = get_dir(src, user) // Because fuck you...
if(!fuck_you_dir)
fuck_you_dir = pick(GLOB.cardinals)
Code: Select all
//Shit fucking piece of crap that doesn't work god fuckin damn it
function linkify(text) {
var rex = /((?:<a|<iframe|<img)(?:.*?(?:src="|href=").*?))?(?:(?:https?:\/\/)|(?:www\.))+(?:[^ ]*?\.[^ ]*?)+[-A-Za-z0-9+&@#\/%?=~_|$!:,.;]+/ig;
return text.replace(rex, function ($0, $1) {
if(/^https?:\/\/.+/i.test($0)) {
return $1 ? $0: '<a href="'+$0+'">'+$0+'</a>';
Code: Select all
//SPACE BEARS! SQUEEEEEEEE~ OW! FUCK! IT BIT MY HAND OFF!!
/mob/living/simple_animal/hostile/bear/Hudson
Code: Select all
////////////// I don't know who made this header before I refactored alcohols but I'm going to fucking strangle them because it was so ugly, holy Christ
// ALCOHOLS //
//////////////
Code: Select all
var/list/all_circuits = SScircuit.all_circuits // It's free. Performance. We're giving you cpu time. It's free. We're giving you time. It's performance, free. It's free cpu time for you jim!
What can I say, I'm perfect.duncathan wrote:fuck_you_dir is an age old classic. remie's naming conventions are certainly easy to distinguish
Code: Select all
/datum/reagent/toxin/acid/fluacid/on_mob_life(mob/living/M)
M.adjustFireLoss(current_cycle/10, 0) // I rode a tank, held a general's rank
. = 1 // When the blitzkrieg raged and the bodies stank
..() // Pleased to meet you, hope you guess my name
Code: Select all
new/obj/item/reagent_containers/food/snacks/pastatomato(get_turf(H)) //now that's what I call spaghetti code
signal_redirect.dm wrote:Code: Select all
// This should only be used by non components trying to listen to a signal // If you use this inside a component I will replace your eyes with lemons ~ninjanomnom
I'd rather have my ears replaced tbh but that aside I'm all for itCreationPro wrote:signal_redirect.dm wrote:Code: Select all
// This should only be used by non components trying to listen to a signal // If you use this inside a component I will replace your eyes with lemons ~ninjanomnom
lib_machines.dm, line 159 wrote:Code: Select all
/* * Library Computer * After 860 days, it's finally a buildable computer. */ // TODO: Make this an actual /obj/machinery/computer that can be crafted from circuit boards and such // It is August 22nd, 2012... This TODO has already been here for months.. I wonder how long it'll last before someone does something about it. // It's December 25th, 2014, and this is STILL here, and it's STILL relevant. Kill me
Code: Select all
description = "<span class='warning'>I feel a lot better, but wow that was disgusting.</span>\n" //when you read the latest felinid removal PR and realize you're really not that much of a degenerate
Code: Select all
stack_trace("Ok, Look, /tg/, I need you to find whatever fucker decided to call qdel on a fucking lighting corner, then tell him very nicely and politely that he is 100% retarded and needs his head checked. Thanks. Send them my regards by the way.")
Code: Select all
//I will need to recode parts of this but I am way too tired atm //I don't know who left this comment but they never did come back
Code: Select all
//Aiming for 1.5 hours to max R&D
//[88nodes * 5000points/node] / [1.5hr * 90min/hr * 60s/min]
Code: Select all
eatverb = pick("devour","nibble","gnaw","gobble","chomp") //who the fuck gnaws and devours on a salad
Code: Select all
if(!is_operational()) //you cant use broken machine you chumbis
Code: Select all
/obj/item/melee/touch_attack/fleshtostone/afterattack(atom/target, mob/living/carbon/user, proximity)
if(!proximity || target == user || !isliving(target) || !iscarbon(user)) //getting hard after touching yourself would also be bad
return