Post count fever

borg1985

  • Posts: 34
Re: Post count fever
« Reply #90, on April 5th, 2011, 09:22 PM »
Quote from texasman1979 on April 5th, 2011, 08:50 PM
Officially, how much needs to be rewritten to be a unique product outside the need to be a fork of smf?
As posted by Arantor on Noisen.com.
Quote from Arantor
Until there is a total and complete rewrite from scratch, it's considered a derivative work, and until such time as it is sufficiently different that it isn't a derivative work, we have to play by their rules. It sucks, but there you go.
Bender: Ahhh, what an awful dream. Ones and zeroes everywhere... and I thought I saw a two.
Fry: Don't worry, Bender.  There's no such thing as two.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Post count fever
« Reply #91, on April 5th, 2011, 09:33 PM »
We would have to rewrite every single line in order to no longer be a derivative, but it'll happen in time.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

DoctorMalboro

  • I like rounded borders.
  • Posts: 316
Re: Post count fever
« Reply #92, on April 5th, 2011, 10:48 PM »
Why didn't you start from 0 and avoid this mess? I think you both have a pure clean and great workspace that both could work in.

Just a thought.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Post count fever
« Reply #93, on April 5th, 2011, 10:52 PM »
We talked about it, actually.

The honest answer is that we'd spend 6 months writing really dull code that would bore the ass off us before we got to anything fun, and knowing as we did that SMF 2.0 would open the code up, it seemed like a no-brainer.

I will note that we even talked about talking to Unknown and co to see if there was any possibility of using SMF 1's code in the event that SMF 2's was a no-go, or even just to get the rights to fork it and be done with it, on the theory of 'better that than nothing at all'.

I think we actually made the right choice; SMF isn't perfect, but it's the nearest thing out there to it, in our opinion. Why reinvent the wheel when most of the wheel isn't broken?

CJ Jackson

  • I got myself a new iPad, a different world to the iPhone!
  • Posts: 241
Re: Post count fever
« Reply #94, on April 5th, 2011, 11:34 PM »
I think I got a good question, did you thought of using an existing MIT/BSD Licensed MVC design pattern and a database abstraction layer such as doctrine?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Post count fever
« Reply #95, on April 5th, 2011, 11:39 PM »
To implement either would be a major, major rewrite. SMF (and thus Wedge) is already tentatively MVC structured, but it could easily be more thoroughly concrete in that direction (only earlier today, there was a discussion about an idea that might have gone into SMF 3 that I am interested in pursuing that would help in that direction)

SMF's DB layering is primitive, it's designed to basically fudge MySQL queries into PostgreSQL and SQLite, well we removed most of that, but in order for us to viably use a real abstraction layer, the schema needs to be overhauled first, and need to get rid of so many FIND_IN_SET calls for matching :o (Yes, the list of secondary groups a user is in is stored as a comma separated list in the members table directly, just for an off-the-top-of-my-head example)

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Post count fever
« Reply #96, on April 6th, 2011, 08:23 AM »
Pete, if you're gonna rewrite the Db structure, please do it before we even go alpha ;)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Post count fever
« Reply #97, on April 6th, 2011, 10:45 AM »
Some of the DB structure changes have already begun; board access isn't stored in the boards table any more for this reason. Membergroups is the other biggie that needs to change.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Post count fever
« Reply #98, on April 6th, 2011, 12:27 PM »
Yeah, that's why I need you to finish the structure changes ;)

BTW I have this 'aeva' field in the members table... Maybe I should rename it to something like 'options'. This is to potentially have an unused field in the DB whose sole purpose is to provide the ability to store non-searchable personal settings for members. (i.e. through serialize.) However, I don't know if it has a point or not. I mean, we could just as well store anything into the proper options table... (I just kinda like serializing stuff. It's in my blood.)

texasman1979

  • Posts: 99
Re: Post count fever
« Reply #99, on April 6th, 2011, 02:40 PM »Last edited on April 7th, 2011, 04:45 AM by texasman1979
...
LOGIC is a FOUR letter word! :)


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Post count fever
« Reply #100, on April 6th, 2011, 03:11 PM »
Like I've said before, did it not occur to you that some of these things have occurred to us?

And no, if you think putting the entire thing into a single class is a good idea, you probably misunderstood the point of objects.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Post count fever
« Reply #101, on April 6th, 2011, 05:03 PM »
texasman, when I ask this kind of technical question -- I'm usually talking to Pete. If I can't ask him a question without you coming and telling me how to do it in a better way, then I'll just ask my questions in the private area -- which I avoid doing as much as I can, because I'm a firm believer in openness about the making of a project.

Pete, you haven't answered my question :lol:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Post count fever
« Reply #102, on April 6th, 2011, 05:42 PM »
Putting it in the members table (and thus yoinking some of it out of the themes table) strikes me as generally a good idea.

Performance wise the cost is not too significant; if it were the only column in the members table that was a text column (as opposed to a varchar) I'd definitely be insisting on it being a separate table (whether that's one row per member or one row per setting per member is another matter)

Don't forget, we already have the themes table doing that, and while there's a semantic issue, it's worth remembering that for a lot of it, anything stored there for the user will be loaded automatically for them on bootstrap, so unless you have a lot of settings, it might be worth just reusing that.

serialize is good, but I've recently been hearing a few concerns about performance of it (especially compared to the json_* functions), though it's incredibly convenient for storing variable schema information (e.g. log entries that may or may not require more data than is normally available)

dazed

  • OK, one more operation to go I hope.
  • Posts: 52
Re: Post count fever
« Reply #103, on April 6th, 2011, 08:00 PM »
This Texas dude is becoming a real PIA!  :niark:

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Post count fever
« Reply #104, on April 6th, 2011, 08:02 PM »
In my tests serializing/unserializing a 1.5MB array was as fast as including a file with that array, which was much faster than JSON..for some surprising reason.
The way it's meant to be