The OFFICIAL programming thread
-
@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.
-
@hog said in The OFFICIAL programming thread:
Not sure if this belongs here but anyway: Tigger was right! Analog > Digital.
In Traveller Robots, the brains have mixes of linear, parallel and/or synaptic CPUs. This was pretty good stuff given that the ruleset was written in 1986 and parallel computers were mostly in the lab.
One of the big limits of the robots in the ruleset is that synaptic processors at ‘too high’ percentage where the software and error checking occurs makes robots go crazy. You want more of them, but you don’t want the robot driving your vehicle or operating on a human to lose their marbles.
Kind of shows it’s age though, just designing a vehicle mounted robot brain to drive a car and nothing else is something like Cr30000.
-
Isn’t there a Traveller thread so we don’t have to listen to this crap in other threads?
-
@gators1 said in The OFFICIAL programming thread:
Isn’t there a Traveller thread so we don’t have to listen to this crap in other threads?
Fucking double “L” in Traveller.
I hate that almost as much as I hate the term “pregnant people” and “we’re at the mercy of the computer!”
No, tigger; just kidding. ;-)
-
@jam said in The OFFICIAL programming thread:
@gators1 said in The OFFICIAL programming thread:
Isn’t there a Traveller thread so we don’t have to listen to this crap in other threads?
Fucking double “L” in Traveller.
I hate that almost as much as I hate the term “pregnant people” and “we’re at the mercy of the computer!”
No, tigger; just kidding. ;-)
Congratulations on your pregnancy. Do you know if it’s a boy or girl yet? I posted some gender reveal ideas in the random thread.
-
-
Why Hog is a fraud…
-
@gators1 said in The OFFICIAL programming thread:
Why Hog is a fraud…
I’m fucked if work ever look at my search history. Because I switch programming languages all the time, I forget really basic shit all the time or, rather, get the syntax confused between languages.
Yesterday my IDE was showing an error against an
else ifclause so I triedelifandelseifbut it didn’t work. So I googled how to do anifstatement in JavaScript. It’s probably the first thing any programmer learns after declaring variables so my employer would be rightfully wondering why the fuck they are paying me so much if I had to google it. (Turns outelse ifwas correct and the error was from something else. ) -
I’m also fucked if work ever looks at my search history, but for other reasons. Ahem.
-
@hog said in The OFFICIAL programming thread:
@gators1 said in The OFFICIAL programming thread:
Why Hog is a fraud…
I’m fucked if work ever look at my search history. Because I switch programming languages all the time, I forget really basic shit all the time or, rather, get the syntax confused between languages.
Yesterday my IDE was showing an error against an
else ifclause so I triedelifandelseifbut it didn’t work. So I googled how to do anifstatement in JavaScript. It’s probably the first thing any programmer learns after declaring variables so my employer would be rightfully wondering why the fuck they are paying me so much if I had to google it. (Turns outelse ifwas correct and the error was from something else. )I still google shit in SQL because I forget the syntax if I don’t use it for a few months. Been doing some Python shit and that’s burning my brain and bandwidth because I have been hitting every python site and video ever made. Have not coded to any great degree in years and feel like a retard trying to learn it now. Python has some really cool data tools though and if I use those I don’t have to work with an actual retard who manages our BI application.
-
@lob12 said in The OFFICIAL programming thread:
I’m also fucked if work ever looks at my search history, but for other reasons. Ahem.
You’re welcome.

Traveller Book 8: Robots - Wikipedia