The OFFICIAL programming thread
-
-
Isnt this website run on NginX too? Maybe its North Korea knocking LOT offline all the time? How do we stop this commie menace?
-
Did WWIIOL go down at the same time?
-
@stu said in The OFFICIAL programming thread:
@tazz said in The OFFICIAL programming thread:
Ok who was it??
Tens of people were angered!
That’s enough to get whole industries that cave into tens of people.
-
Okay, I just created a variable called
toBeOrNotToBeand I’m feeling rather pleased with myself.// Validate is array / not array const expectArray = kind === PROPERTY_ARRAY; const isArray = Array.isArray(property); if (expectArray !== isArray) { const toBeOrNotToBe = expectArray ? 'to be' : 'not to be'; throw new Error(`Expected '${joined}' property ${toBeOrNotToBe} array.`); }I haven’t run the above code yet (it’s part of a bigger module) so it might be buggy.
-
Get thee to a nunnery!!!111
-
@pakoon said in The OFFICIAL programming thread:
Get thee to a nunnery!!!111
Woudn’t that be a nunarray?
-
@kilemall said in The OFFICIAL programming thread:
@stu said in The OFFICIAL programming thread:
@tazz said in The OFFICIAL programming thread:
Ok who was it??
Tens of people were angered!
That’s enough to get whole industries that cave into tens of people.
thats what twitter was created for
-
@kilemall said in The OFFICIAL programming thread:
@pakoon said in The OFFICIAL programming thread:
Get thee to a nunnery!!!111
Woudn’t that be a nunarray?
i thought it was a whorehouse.
-
This should be useful to you all…
-
@gators1 said in The OFFICIAL programming thread:
This should be useful to you all…
I’ve got one buried in a box somewhere.
I feel confident it will power up.
Have no confidence the floppy drive would though.
-

-
I’ve been playing around with Gtk 3 programming and the api is a hot mess. It’s also a moving target with so much refactoring and deprecation even in between minor version changes. But while searching for answers to problems, I kept coming back to docs and examples in the Vala programming language. I’d never heard of Vala before but apparently it is:
an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.
So C with Objects? Sound familiar? Yeah well I’ve been learning it since yesterday and whilst I’ve never liked C++, I kind of do like what I’ve seen of Vala so far. It uses reference counting garbage collection and has a lot of syntactic sugar in the language to make programming in it quite pleasant. I don’t think it’s a replacement for C++, well probably not, but as a C#-like language that doesn’t need a run time like mono or .NET it’s kind of attractive to me.
It’s been around since 2006 and hasn’t caught the world by storm so it’s probably not going to now but it might be worth playing with if you have any new Gtk projects in your future.
-
So in looking this all up, looks like you do user interface work for apps?
-
@kilemall said in The OFFICIAL programming thread:
So in looking this all up, looks like you do user interface work for apps?
Me? Yeah, but for work I do javascript / web front end work. Well, full stack (front end and back end) as often as not.
But this is just a throwaway personal project that I’m using Gtk for. And yeah, Gtk is a Ui widget library. Gommonly used in Gnome (Ubuntu’s standard desktop environment) but also in other stand alone applications.
What I’m actually building is my own task bar and application menu. I forget what the windows terminology is but it’s the bar along the bottom with the start button, the currently running apps and the notifications and clock on theright. Plus the Start menu.
-
When it’s web, you gotta attach what the website/UI presentation is doing with the underlying app and ultimately database one way or another. You could probably MAKE the website or thick client BE the app, but boy I’m not keen on exposing everything on the user device.
Someday when the product goes EOL and it doesn’t matter, I’ll have to explain how one product I was admin of worked. I think you would find it horrifying and elegant at the same time.
-

-
Not sure if this belongs here but anyway: Tigger was right! Analog > Digital.
-
You are dead to me!
-
You mean that he is <.5 or he would be >.5 and be 93 to 98% alive.


