Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 473 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 15:29 
User avatar
Paws for thought

Joined: 27th Mar, 2008
Posts: 17154
Location: Just Outside That London, England, Europe
Mr Russell wrote:
DavPaz wrote:
Weird question, but it just occurred to me: is there a standard zero for times? Like, can you calculate time as a number of seconds since... I dunno, 1/1/1900 00:00 without having to worry about minutes, hours, months and the like? Is there such a thing? Would it be of any use? I haven't done any coding for over 8 years now and I reckon it's all gone rusty :)

Well time is usually measured as the amount of time elapsed since 01/01/1970 so I guess it would be that.


It can be.

Although the area tends to be a minefield.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 15:32 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
DavPaz wrote:
Weird question, but it just occurred to me: is there a standard zero for times? Like, can you calculate time as a number of seconds since... I dunno, 1/1/1900 00:00 without having to worry about minutes, hours, months and the like? Is there such a thing? Would it be of any use? I haven't done any coding for over 8 years now and I reckon it's all gone rusty :)


Yup. Unix Epoch Time. It's generally a fucking great big integer. Right now the time is 1455805940

http://www.epochconverter.com/

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 15:34 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55716
Location: California
You're a fucking great big integer

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 15:34 
User avatar
Gogmagog

Joined: 30th Mar, 2008
Posts: 48651
Location: Cheshire
Cras wrote:
DavPaz wrote:
Weird question, but it just occurred to me: is there a standard zero for times? Like, can you calculate time as a number of seconds since... I dunno, 1/1/1900 00:00 without having to worry about minutes, hours, months and the like? Is there such a thing? Would it be of any use? I haven't done any coding for over 8 years now and I reckon it's all gone rusty :)


Yup. Unix Epoch Time. It's generally a fucking great big integer. Right now the time is 1455805940

http://www.epochconverter.com/


For some reason I feel it should be this number cubed

_________________
Mr Chris wrote:
MaliA isn't just the best thing on the internet - he's the best thing ever.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 15:55 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Cras wrote:
Yup. Unix Epoch Time. It's generally a fucking great big integer. Right now the time is 1455805940
Not any more.

Also, that's seconds. You can also do it in milli or even microseconds.

DavPaz wrote:
Weird question, but it just occurred to me: is there a standard zero for times? Like, can you calculate time as a number of seconds since... I dunno, 1/1/1900 00:00 without having to worry about minutes, hours, months and the like? Is there such a thing? Would it be of any use? I haven't done any coding for over 8 years now and I reckon it's all gone rusty :)

Computers, of course, can calculate dates back further than that. And there's all sorts of oddities you have to care about, like September 1752:

Code:
$ cal 09 1752
   September 1752     
Su Mo Tu We Th Fr Sa 
       1  2 14 15 16 
17 18 19 20 21 22 23 
24 25 26 27 28 29 30 


Mr Dave wrote:
Although the area tends to be a minefield.
There are programmers who hate date/time calculations, and there are programmers who don't hate date/time calculations... yet.

Another fun very-not-hypothetical example to think about. Why did this code, supposed to create a dummy date of birth for a three year old, make me angry in 2012? (Coders will see this right away.)

Code:
new Date().addYears(3);


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 15:59 
User avatar

Joined: 12th Apr, 2008
Posts: 17778
Location: Oxford
Doctor Glyndwr wrote:
September 1752:


One day I'll set up a historical marker somewhere saying 'on this spot on 10 September 1752 absolutely nothing happened'.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:08 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12243
Doctor Glyndwr wrote:
Another fun very-not-hypothetical example to think about. Why did this code, supposed to create a dummy date of birth for a three year old, make me angry in 2012? (Coders will see this right away.)

Code:
new Date().addYears(3);

I don't see it :(
At first I thought it was a leap year thing, but AddYears takes that into account. Then I thought it was because you hadn't split the declaration and the assignment (but I have no idea if that matters).
Then I wondered if it was because you meant -3 instead of 3 to go back in time and just made a mistake.
Then I remained confused.

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:11 
User avatar
Ticket to Ride World Champion

Joined: 18th Apr, 2008
Posts: 11843
is it because the function addYears sounds like it should add a number of years to another number of years, rather than assign a number of years to a date variable?

_________________
No, it was a giant robot castle!


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:13 
User avatar

Joined: 30th Mar, 2008
Posts: 14152
Location: Shropshire, UK
Yeah, that would give you a date three years in the future rather than three years in the past - although I am not sure why the code would make DocG angry. Unless that code does actually produce a date three years in the past, in which case whoever created that Date class needs shooting ;)


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:17 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Alright alright, my pseudocode was bad and I should feel bad. I tried to simplify and went too far, partly because I'm still annoyed about this bug. It was actually something like

Code:
Date today = new Date();
Date birth = new Date(today.getYears() + 3, today.getMonth(), today.getDay());


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:46 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12243
Doctor Glyndwr wrote:
Alright alright, my pseudocode was bad and I should feel bad. I tried to simplify and went too far, partly because I'm still annoyed about this bug. It was actually something like

Code:
Date today = new Date();
Date birth = new Date(today.getYears() + 3, today.getMonth(), today.getDay());

OK, Well I don't know what getYears does, but I imagine it counts from 1900 or 1970, so her date of birth was the year 45 or something.

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:52 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Jesus Christ, I meant getYears()-3. I am so bad at this.

Anyway look, the point was, it tried to build a date in the past by taking today's date and subtracting 3 from the year. So 2012-01-01 became 2009-01-01. Which is fine. But 2012-02-29 became 2009-02-29 which is very much not fine because it doesn't bloody exist.

That took one of our booking systems offline for most of the day. It made me sad.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:54 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12243
Dates are shitty.

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:55 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12243
I have literally tested a new web page today which looks all golden and passes all my tests.

Deploy to server.

Forget* that server is in American format and today's date is now 2/18/2016.


*Like, literally every time forget. I should write it down sometime.

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 16:57 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55716
Location: California
Mr Russell wrote:
I have literally tested a new web page today which looks all golden and passes all my tests.

Deploy to server.

Forget* that server is in American format and today's date is now 2/18/2016.


*Like, literally every time forget. I should write it down sometime.

Change the date format on the server. What could possibly go wrong?

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:00 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
Lonewolves wrote:
Mr Russell wrote:
I have literally tested a new web page today which looks all golden and passes all my tests.

Deploy to server.

Forget* that server is in American format and today's date is now 2/18/2016.


*Like, literally every time forget. I should write it down sometime.

Change the date format on the server. What could possibly go wrong?

Without question, you should change it on your dev box.

Dates are hateful, but not as hateful as character sets.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:01 
Awesome
User avatar
Yes

Joined: 6th Apr, 2008
Posts: 12243
Lonewolves wrote:
Mr Russell wrote:
I have literally tested a new web page today which looks all golden and passes all my tests.

Deploy to server.

Forget* that server is in American format and today's date is now 2/18/2016.


*Like, literally every time forget. I should write it down sometime.

Change the date format on the server. What could possibly go wrong?


It's an Azure hosted cloud service. I don't think I can change it. But if I can, I can't be arsed reading the documentation on how to get to the bit I need.

_________________
Always proof read carefully in case you any words out


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:04 
User avatar
Paws for thought

Joined: 27th Mar, 2008
Posts: 17154
Location: Just Outside That London, England, Europe
Grim... wrote:
Lonewolves wrote:
Mr Russell wrote:
I have literally tested a new web page today which looks all golden and passes all my tests.

Deploy to server.

Forget* that server is in American format and today's date is now 2/18/2016.


*Like, literally every time forget. I should write it down sometime.

Change the date format on the server. What could possibly go wrong?

Without question, you should change it on your dev box.

Dates are hateful, but not as hateful as character sets.


I have had to become something of an expert.

Everytime I have to go near either, it makes me a sad turkey.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:08 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Doctor Glyndwr wrote:
Jesus Christ, I meant getYears()-3. I am so bad at this.

Anyway look, the point was, it tried to build a date in the past by taking today's date and subtracting 3 from the year. So 2012-01-01 became 2009-01-01. Which is fine. But 2012-02-29 became 2009-02-29 which is very much not fine because it doesn't bloody exist.

That took one of our booking systems offline for most of the day. It made me sad.


You did bad and you should feel bad! This is why date subtract functions exist, so people don't try and use integer subtraction

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:08 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55716
Location: California
Cras wrote:
Doctor Glyndwr wrote:
Jesus Christ, I meant getYears()-3. I am so bad at this.

Anyway look, the point was, it tried to build a date in the past by taking today's date and subtracting 3 from the year. So 2012-01-01 became 2009-01-01. Which is fine. But 2012-02-29 became 2009-02-29 which is very much not fine because it doesn't bloody exist.

That took one of our booking systems offline for most of the day. It made me sad.


You did bad and you should feel bad! This is why date subtract functions exist, so people don't try and use integer subtraction

Just use the Windows 10 calculator

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:09 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
Only certain people have the right version of the calculator, though.

[edit]DAMNIT MYP

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:09 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Or, taking the whole thing full circle, convert to epoch time, subtract three years' worth of seconds, then convert back :D

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:10 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Cras wrote:
Or, taking the whole thing full circle, convert to epoch time, subtract three years' worth of seconds, then convert back :D


Edit - DAMMIT MYP

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:11 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
That's not an edit, idiot

No, you're an idiot, now we must fight

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:16 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
Cras wrote:
Or, taking the whole thing full circle, convert to epoch time, subtract three years' worth of seconds, then convert back :D

That wouldn't work, doofus.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:18 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Grim... wrote:
Cras wrote:
Or, taking the whole thing full circle, convert to epoch time, subtract three years' worth of seconds, then convert back :D

That wouldn't work, doofus.


Yes it would. Of course, three years' worth of seconds in this instance is three years worth of seconds for a three year period that spans a leap year, but that was deliberately assumed.

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:25 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
Cras wrote:
Grim... wrote:
Cras wrote:
Or, taking the whole thing full circle, convert to epoch time, subtract three years' worth of seconds, then convert back :D

That wouldn't work, doofus.

Yes it would. Of course, three years' worth of seconds in this instance is three years worth of seconds for a three year period that spans a leap year, but that was deliberately assumed.

But you'd have to calculate the amount of seconds in the previous three years, so it's fairly pointless.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:26 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Grim... wrote:
Cras wrote:
Grim... wrote:
Cras wrote:
Or, taking the whole thing full circle, convert to epoch time, subtract three years' worth of seconds, then convert back :D

That wouldn't work, doofus.

Yes it would. Of course, three years' worth of seconds in this instance is three years worth of seconds for a three year period that spans a leap year, but that was deliberately assumed.

But you'd have to calculate the amount of seconds in the previous three years, so it's fairly pointless.


Entirely pointless - it was a joke.

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:28 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
/kills everyone

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:31 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55716
Location: California
Do it in months. The number of months over a three-year period always stays the same.

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:33 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Lonewolves wrote:
Do it in months. The number of months over a three-year period always stays the same.


You bellend. The number of years over a three year period always stays the same, too.

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:35 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55716
Location: California
Cras wrote:
Lonewolves wrote:
Do it in months. The number of months over a three-year period always stays the same.


You bellend. The number of years over a three year period always stays the same, too.

:DD :DD :DD

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 17:51 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Cras wrote:
You did bad and you should feel bad! This is why date subtract functions exist, so people don't try and use integer subtraction

I didn't write that code! I use JodaTime like a winner.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 18:22 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49232
Doctor Glyndwr wrote:
Cras wrote:
You did bad and you should feel bad! This is why date subtract functions exist, so people don't try and use integer subtraction

I didn't write that code! I use JodaTime like a winner.


Dammit. I was hoping that would be the one and only time I could look down on you scornfully for code quality.

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 18:36 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
He used an unbraced `if` statement the other day.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 18:43 
Filthy Junkie Bitch

Joined: 17th Dec, 2008
Posts: 8293
Grim... wrote:
He used an unbraced `if` statement the other day.

Did he become a man, my son?


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 18:50 
User avatar

Joined: 23rd Nov, 2008
Posts: 9521
Location: The Golden Country
I was always a GOTO man myself; sod nice, nested, structured procedure-based code; spaghetti was how we did it in the 80s. :D
Strangely enough, I changed career.

_________________
Beware of gavia articulata oculos...

Dr Lave wrote:
Of course, he's normally wrong but interestingly wrong :p


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 18:53 
User avatar
UltraMod

Joined: 27th Mar, 2008
Posts: 55716
Location: California
Cavey wrote:
I was always a GOTO man myself; sod nice, nested, structured procedure-based code; spaghetti was how we did it in the 80s. :D
Strangely enough, I changed career.

I heard you were the GOTO guy when it came to BASIC.

_________________
I am currently under construction.
Thank you for your patience.


Image


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 19:07 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Cavey wrote:
I was always a GOTO man myself
I should have bloody known.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 19:07 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Grim... wrote:
He used an unbraced `if` statement the other day.

I actually like unbraced ifs (but then Python is my second language), but they are verboten by our (extremely strict) linter.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 19:13 
User avatar

Joined: 23rd Nov, 2008
Posts: 9521
Location: The Golden Country
Doctor Glyndwr wrote:
Cavey wrote:
I was always a GOTO man myself
I should have bloody known.


Hah! I just *knew* you'd bite. :DD

(To be fair I was the absolute opposite; awfully anal,purist and stuffy about it all. Despite the devices I was programming then largely using BASIC (or in the case of the Psion Organiser, OPL - a sort of quasi PASCAL/BASIC hybrid if memory serves, though it's been an awfully long time), I'd have rather died than use so much as a single unstructured procedure call/direction, line numbers or any of that shit. If the core code took more than a single screen (with upteen horizontal procedures, themselves often nested 3, 4, 5 deep), it was wrong)

Ah, them's were the days - 64KB was considered an absolute luxury, and writing to EEPROMs was the way forward. :D :nerd:

_________________
Beware of gavia articulata oculos...

Dr Lave wrote:
Of course, he's normally wrong but interestingly wrong :p


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Thu Feb 18, 2016 19:33 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Cavey wrote:
Despite the devices I was programming then largely using BASIC (or in the case of the Psion Organiser, OPL - a sort of quasi PASCAL/BASIC hybrid if memory serves, though it's been an awfully long time)
That's a fair description. I've written some OPL in the distant past, although not much.

Quote:
Ah, them's were the days - 64KB was considered an absolute luxury, and writing to EEPROMs was the way forward. :D :nerd:

The project I'm working on now has required us to write a service broker server to sit between our team's product and another team's product; as of right now the shim layer is 5,255 functional lines of code (ie. every line that isn't blank), plus 4,287 lines of tests. The source directories alone are 449 Kb and 229 Kb!


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:09 
User avatar

Joined: 23rd Nov, 2008
Posts: 9521
Location: The Golden Country
That's just amazing Doc, boggles the mind. Fair play to you. :)

_________________
Beware of gavia articulata oculos...

Dr Lave wrote:
Of course, he's normally wrong but interestingly wrong :p


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:14 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
Very soon (if not already) the average size of a single web page will be bigger than the install image for Doom.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:16 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
Beex, perhaps not so surprisingly, is incredibly small in the grand scheme of things - < 200KB for most pages.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:17 
User avatar
Gogmagog

Joined: 30th Mar, 2008
Posts: 48651
Location: Cheshire
Grim... wrote:
Very soon (if not already) the average size of a single web page will be bigger than the install image for Doom.


Why does this happen? Are coders just less efficient?

_________________
Mr Chris wrote:
MaliA isn't just the best thing on the internet - he's the best thing ever.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:17 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69509
Location: Your Mum
MaliA wrote:
Grim... wrote:
Very soon (if not already) the average size of a single web page will be bigger than the install image for Doom.

Why does this happen? Are coders just less efficient?

No*, websites do more stuff, and no-one cares about dial-up users any more.

* Although you could argue it's a factor. I'm looking at you, Bootstrap.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:27 
User avatar

Joined: 30th Mar, 2008
Posts: 32619
Modern coders are also efficient along different axes to the ones we used to care about. Games programmers of all eras are like mainframe programmers in the '60s: they have to optimise for speed, so at least some parts of the code base are to-the-metal. That results in clunky, awful, unmaintainable code. The rest of us put more effort into writing code that's robust against errors and maintainable in the long term, which includes "I can add all the features in v2 without it collapsing into a complete mess." This code is less efficient in speed and space, but CPUs and SSDs are usually cheap compared to engineer-hours (unless you operate at unusual scale.)


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:29 
User avatar
Excellent Member

Joined: 25th Jul, 2010
Posts: 11128
Grim... wrote:
Very soon (if not already) the average size of a single web page will be bigger than the install image for Doom.


And you can totally feel it, in my experience. Somewhere between 30-50% of the time I open a link in a new tab my entire browser freezes up for anything up to five seconds while (what I'm guessing is) shittons of fucking JavaScript in the new tab loads up. To give a couple of recent examples, Imgur does it pretty often and something like Google Play is fucking terrible for it. This is on Firefox at home and in the office so presumably it's not down to my specific setup as we're talking two difference versions of Windows and of Firefox itself. My suspicion is that people don't think they need to be efficient with code any more and just pile pages up with fucktons of terribly written crap coming from loads of difference sources all over the place.


Top
 Profile  
 
 Post subject: Re: Beex stats: posts and active posters per day
PostPosted: Fri Feb 19, 2016 11:33 
User avatar
Gogmagog

Joined: 30th Mar, 2008
Posts: 48651
Location: Cheshire
Doctor Glyndwr wrote:
Modern coders are also efficient along different axes to the ones we used to care about. Games programmers of all eras are like mainframe programmers in the '60s: they have to optimise for speed, so at least some parts of the code base are to-the-metal. That results in clunky, awful, unmaintainable code. The rest of us put more effort into writing code that's robust against errors and maintainable in the long term, which includes "I can add all the features in v2 without it collapsing into a complete mess." This code is less efficient in speed and space, but CPUs and SSDs are usually cheap compared to engineer-hours (unless you operate at unusual scale.)


Ah. Thank you. I can appreciate now why it took GazChap 6 years to get a functioning calendar here.

_________________
Mr Chris wrote:
MaliA isn't just the best thing on the internet - he's the best thing ever.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 473 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: The Greys and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.