Register - Login
Views: 94320677
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
08-21-18 12:11:43 PM

Jul - General Chat - The next big change New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Xkeeper

Level: 244


Posts: 17529/23358
EXP: 227670872
For next: 2516394

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 1 day
Last activity: 8 hours

Posted on 08-29-10 12:55:45 PM (last edited by Xkeeper at 08-29-10 12:57 PM) Link | Quote
I'm not 100% familiar with my Acmlmboard history, but I believe at one point layouts were enabled for everyone, including guests.

The functionality changed when layouts were updated; the option to show them was enabled (1) by default.

...but the guest init code only initialized the minimum it had to, leaving the layout option at 0.


Needless to say, assuming this wasn't intended (and I don't think it was) this has been fixed.


ergo, we no longer look like a signatureless, flavorless board on the internet.



(As a side note, this also possibly fixes some other things, as the loguser array is now initialized to nothing insetad of just written to, though most important values were erased)
Rena

Star Mario
Fennel
Level: 128


Posts: 3553/5251
EXP: 24209495
For next: 172205

Since: 07-22-07

Pronouns: he/him/whatever
From: RSP Segment 6

Since last post: 16 days
Last activity: 16 days

Posted on 08-29-10 12:58:36 PM Link | Quote
Hm, I always thought it was intended as a bandwidth-saving measure. (Even though that makes little sense, since the images are hosted externally... )

Well, I look forward to the reactions of outsiders when I link them to threads in IRC.
Xkeeper

Level: 244


Posts: 17530/23358
EXP: 227670872
For next: 2516394

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 1 day
Last activity: 8 hours

Posted on 08-29-10 12:59:47 PM Link | Quote
In a related side-note I also updated the ad value counter for the first time in probably months.
Sanqui
1730
🦉
Level: 77


Posts: 397/1733
EXP: 4059480
For next: 131649

Since: 12-20-09

Pronouns: any
From: Czechia (NEW!)

Since last post: 15 days
Last activity: 7 days

Posted on 08-29-10 01:11:07 PM Link | Quote
That was a bug ?
(Let's ask Acmlm.)

Anyway I should probably expect my post view counters to start increasing rapidly.
alexanyways
Member
Level: 15


Posts: 12/44
EXP: 15825
For next: 559

Since: 08-03-10

From: Nunya, Buisness

Since last post: 6.0 years
Last activity: 6.0 years

Posted on 08-29-10 01:13:25 PM Link | Quote
Originally posted by Sanky
(Let's ask Acmlm.)


Didn't he disappear off the face of the Internet?
Peardian

  
Magikoopa

16/3/1: KvSG #479 is up!

Level: 149


Posts: 3726/7406
EXP: 40495205
For next: 839934

Since: 08-02-07

From: Isle Delfino

Since last post: 2 days
Last activity: 1 day

Posted on 08-29-10 01:13:43 PM Link | Quote
That's what I always thought it was, too. Unless I'm mistaken, I think it was like that since I first joined.
Sanqui
1730
🦉
Level: 77


Posts: 398/1733
EXP: 4059480
For next: 131649

Since: 12-20-09

Pronouns: any
From: Czechia (NEW!)

Since last post: 15 days
Last activity: 7 days

Posted on 08-29-10 01:14:52 PM (last edited by Sanky at 08-29-10 01:15 PM) Link | Quote
Originally posted by alexanyways
Originally posted by Sanky
(Let's ask Acmlm.)


Didn't he disappear off the face of the Internet?

No, just renamed to Milly
Anyway, from IRC:
<Acmlm> I think it was intended, but I don't remember enough to be sure
Xkeeper

Level: 244


Posts: 17533/23358
EXP: 227670872
For next: 2516394

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 1 day
Last activity: 8 hours

Posted on 08-29-10 01:16:13 PM Link | Quote
Eh, full quote:

*101023 @Acmlm> I think it was intended, but I don't remember enough to be sure
*101027 @Acmlm> although it's weird I put signsep in there
*101037 @Acmlm> why default that if layouts are disabled
*101044 @Xkeeper> I'd been meaning to change it for a while
*101055 @Xkeeper> since it's kind of odd to hide the one thing that makes Acmlmboards really neat from everybody that doesn't know about them

Taryn
Rest In Peace
1987-2014



Level: 194


Posts: 9055/14742
EXP: 102443982
For next: 1099112

Since: 09-01-09

From: Seattle

Since last post: 6.0 years
Last activity: 6.0 years

Posted on 08-29-10 02:04:18 PM Link | Quote
I thought it was intentional, too. Like maybe to reduce loading times for guests on dialup because the "Disable layouts" option isn't available when you're not logged in.

By the way, does anyone know why I2 got rid of the forum and thread titles from the page titles? Like, it would always say "Acmlm's Board" (now with " - I2 Archive").
Leroy
Member
Level: 18


Posts: 27/60
EXP: 25267
For next: 4630

Since: 07-18-10


Since last post: 7.0 years
Last activity: 7.0 years

Posted on 08-29-10 02:29:13 PM (last edited by Leroy at 08-29-10 02:29 PM) Link | Quote
I never was a fan of post layouts. Needless to say, I immediately turned them off as soon as I registered here.

I remember people completely screwing over the board layouts with broken post layouts. Epic era was epic.
Gabu

Star Mario
Placeholder Ikachan until :effort: is found
Level: 163


Posts: 3659/9851
EXP: 56152445
For next: 335199

Since: 08-10-09

Pronouns: they/them, she/her
From: Santa Cruisin' USA

Since last post: 6 days
Last activity: 2 days

Posted on 08-29-10 02:46:13 PM Link | Quote
I always thought of that as some sort of feature only members could utilize. Mainly for bandwidth reasons.
Xkeeper

Level: 244


Posts: 17535/23358
EXP: 227670872
For next: 2516394

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 1 day
Last activity: 8 hours

Posted on 08-29-10 02:46:55 PM Link | Quote
Originally posted by Terra
I thought it was intentional, too. Like maybe to reduce loading times for guests on dialup because the "Disable layouts" option isn't available when you're not logged in.

By the way, does anyone know why I2 got rid of the forum and thread titles from the page titles? Like, it would always say "Acmlm's Board" (now with " - I2 Archive").


Jesper's "grate coding" at work...


Long story short:

Before 1.Ax (which had the ax taken to it, thank god), layout.php was called after the board had loaded some generic stuff, since it creates the header when run.

Example:

require "function.php";
(get thread title, check if viewable, that jazz)
$boardtitle = "Jul - $threadtitle";
require "layout.php";
...



When Jesper took over, all of the include files were included in a main "library.lib" (or whatever the fuck it was) that included every file, at once. As you could no longer, say, call layout.php mid-file, there was no real way to update the title, so it was always the same.

This is the same reason that online.php usually reported every user as looking at numgfx.php, and it caused the view count to skyrocket.
Leroy
Member
Level: 18


Posts: 29/60
EXP: 25267
For next: 4630

Since: 07-18-10


Since last post: 7.0 years
Last activity: 7.0 years

Posted on 08-29-10 02:52:02 PM (last edited by Leroy at 08-29-10 02:55 PM) Link | Quote
I remember toying around with the global.php and layout.php files, and mainly putting stuff in them that required one of the 2 to be included before the other and visa versa, getting stuck with the order of inclusion.

That's what classes and objects are for. With a class you can just include the file in which the class is declared, and depending on your class structure and object model, you won't have to worry anymore about (the order of) the inclusion of several objects. As long as your method 'signatures' are recognised by including the file at all.
Xkeeper

Level: 244


Posts: 17536/23358
EXP: 227670872
For next: 2516394

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 1 day
Last activity: 8 hours

Posted on 08-29-10 02:56:19 PM Link | Quote
I don't like using classes for everything willy-nilly. I still use good ol' includes.php (that includes some basic files like configuration and essential functions), and use classes only where actually relevant.


Having "$program -> dostuff()" as the only real code line is aggrivating and makes shit a fucking nightmare to track down (speaking from experience in IPB2)
Leroy
Member
Level: 18


Posts: 30/60
EXP: 25267
For next: 4630

Since: 07-18-10


Since last post: 7.0 years
Last activity: 7.0 years

Posted on 08-29-10 03:03:03 PM (last edited by Leroy at 08-29-10 03:06 PM) Link | Quote
Actually, for cases like this, object models work like a charm. The major downside of doing everything with generic functions is that you'll have to be careful with the order of declaration and using stuff (vars, functions, etc.), and you pretty much make your whole application one big procedural piece of code. Plus there's the limitation when it comes to 'scoping'. The only 2 scopes you have are the ones within actual functions, and the rest of your code. Can get quite messy with a lot of variables and files.

And overusing classes is never a good thing, obviously. Though in terms of readability and scalability, having a User object with Username, Password, EmailAddress properties for example, is way more for itself speaking than a $User array with a bunch of column names as indexes. Of course, the advantages of a setup like this are only really noticeable when you use a good IDE.
Orlandu


Holy SwordsMan
Level: 130


Posts: 3050/5913
EXP: 25489582
For next: 240995

Since: 01-12-10

From: Las Vegas, NV

Since last post: 105 days
Last activity: 17 hours

Posted on 08-29-10 03:23:37 PM Link | Quote
Originally posted by Xkeeper
In a related side-note I also updated the ad value counter for the first time in probably months.

What about the ad revenue? its been 44.44 for a while.
Kas
Member
Level: 27


Posts: 112/144
EXP: 109861
For next: 6298

Since: 07-28-07

From: Sheffield, UK

Since last post: 3.0 years
Last activity: 3.0 years

Posted on 08-29-10 03:24:45 PM Link | Quote
I always try to make my code as object oriented as possible. I always end up with a bootstrapping file that is essentially including the application code, configuring the essential parts of the application and bootstrapping the application itself. I usually use Zend Framework for all jobs that don't require a content management system, so this forces the front-controller model as above, but for another reason as well; I can't stand code executing on inclusion of a file. It's absurdly bad practice because it robs you as the coder from being able to control how and when code executes - among other reasons.

When using the model-view-controller pattern I've also been criticised making my action controllers too "fat" with logic. Whereas I'm getting much better at learning techniques to abstract logic to the model, I've always liked to make my action controllers like a "script" of things that happen in each action for a coder to read. I've seen some coders put as little as two or three lines in their action controllers, and I'll counter that this can lead to action logic being spread out over several different source code files. I'd much rather fat controllers than tracing logic through three different source code files any day.

Zend Framework gives you back some of the precision you lose in pin-pointing errors from a front-controller model by including stack-tracing functionality, so you can trace the flow of control through each function and method call. PHP's standard error reporting was never built for object oriented, complex applications, and better software design, libraries and frameworks have had to step in to do it properly.

It's a shame that I learned all about this after my tenure as a developer on the board
Taryn
Rest In Peace
1987-2014



Level: 194


Posts: 9058/14742
EXP: 102443982
For next: 1099112

Since: 09-01-09

From: Seattle

Since last post: 6.0 years
Last activity: 6.0 years

Posted on 08-29-10 03:30:04 PM Link | Quote
I never liked or understood OOP much. I learned programming in Commodore 64 BASIC, complete with line numbers, at the age of 8

Procedural programming forever!
OoBurns
?
Level: 57


Posts: 713/806
EXP: 1459184
For next: 26744

Since: 07-04-07

From: USA

Since last post: 6.0 years
Last activity: 6.0 years

Posted on 08-29-10 03:44:02 PM Link | Quote
I like OOP, but I don't often use it when coding in PHP. PHP's objects feel like they were tacked on to a scripting language as an afterthought (probably because they were). I will create classes in PHP if they'll obviously make things simpler, though.

Logic programming, on the other hand, is something I still haven't gotten the hang of.
BlackNemesis13
1150
I am ***** but it's hard to pronounce, so you can call me Geno after the doll.
Level: 67


Posts: 851/1155
EXP: 2497061
For next: 95811

Since: 07-23-07

From: Columbus, Ohio

Since last post: 6.0 years
Last activity: 6.0 years

Posted on 08-29-10 03:57:08 PM Link | Quote
You know, I just tried looking at the board as a guest and I don't see any layouts
Pages: 1 2Next newer thread | Next older thread
Jul - General Chat - The next big change New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

32 database queries, 2 query cache hits.
Query execution time: 0.170854 seconds
Script execution time: 0.028952 seconds
Total render time: 0.199806 seconds
Memory used: 1048576