Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
GameCube
Nov 21, 2006

chumpchous posted:

i'll start this off with a question about preventing code from getting executed asynchronously. when does code get executed asynchronously? i always kinda figured that most code gets executed in a line, but it seems like when i call other functions, or espescially when i call some shell command, it won't actually block the thread and i'll end up with things happening at the same time when they really shouldn't be. i think they call this a race condition??

you're gonna need to be way more specific

Adbot
ADBOT LOVES YOU

GameCube
Nov 21, 2006

obama bin linkedin, yospos gatekeeper

i'm ok with this

GameCube
Nov 21, 2006

gucci void main posted:

nothing you learn in college involving c++ is actually of use hth

ayup

school doesn't teach you how to write c++, it uses c++ to teach you data structures or algorithms or whatever. still undoing all that damage of profs writing C in C++

GameCube
Nov 21, 2006

oh yeah the above wasn't meant to be an endorsement of teaching c++ oh god no

GameCube
Nov 21, 2006


idgi :saddowns:

GameCube
Nov 21, 2006

MononcQc posted:

http://www.dangermouse.net/esoteric/piet.html

uses images as a programming language.

:stare:

someday i'll do a project euler or something in this

or die

probably die

GameCube
Nov 21, 2006

FamDav posted:

c++ is the lisp of imperative programming languages, and that makes it awesome

elaborate, please

GameCube
Nov 21, 2006


:newlol:

GameCube
Nov 21, 2006

OBAMA BIN LinkedIn posted:

the correct brace style, the brace style handed down to us by The Lord Your God, is:

C++ code:

if (...){
  ...
}

while (...){
  ...
}

for (...){
  ...
}

int func (...)
{
  ...
}

class myClass 
{
};

mmm actually this is backwards

GameCube
Nov 21, 2006

why pay for an editor when vim 7.4 is right around the corner

GameCube
Nov 21, 2006

gucci void main posted:

they just said that multiple user editing was a most requested feature, if they can get that built into it then there will never be a singular reason to not be able to work from home and pair program if you need to

there's some ok options out there but that poo poo should be built into something by now, it's 2013

just use a shared tmux session problem solved

GameCube
Nov 21, 2006

OBAMA BIN LinkedIn posted:

use vim if ur serious about your text editing

GameCube
Nov 21, 2006

sublime

GameCube
Nov 21, 2006

sublime

GameCube
Nov 21, 2006

OBAMA BIN LinkedIn posted:

just use gvim idiots

GameCube
Nov 21, 2006

visual studio + viemu supremacy

GameCube
Nov 21, 2006

FamDav posted:

oh then lol.

i was put in charge of the default vimrc for work and it amounts to

the syntax highlighting/indenting/stuff on
tabs to spaces so you dont gently caress up our bespoke codebase
comma leader
double-j for exiting insert mode
semicolon to colon
unmap arrows :getin:

and if people get bored and want help then i show them how to set up vundle and go hog wild.

post ur vimrc

in fact somebody make a vim thread already

GameCube
Nov 21, 2006

FamDav posted:

tabstop=3

:stare:

GameCube
Nov 21, 2006

hey idiots just install the vim plugin for ur ide and ur set

GameCube
Nov 21, 2006

um what's so hard about HANDLE WINAPI CreateThread(
_In_opt_ LPSECURITY_ATTRIBUTES lpThreadAttributes,
_In_ SIZE_T dwStackSize,
_In_ LPTHREAD_START_ROUTINE lpStartAddress,
_In_opt_ LPVOID lpParameter,
_In_ DWORD dwCreationFlags,
_Out_opt_ LPDWORD lpThreadId
); ???

GameCube
Nov 21, 2006

if it's truly embarrassingly parallel use openmp

GameCube
Nov 21, 2006

is it worth learning actual uml ever or am i good just drawing boxes and lines on a piece of paper and losing it before the day's over

GameCube
Nov 21, 2006

Shaggar posted:

If someone asks me how to sort a list my answer would be
Java code:
Collections.sort(list);

what if that's the answer they're actually looking for :o

GameCube
Nov 21, 2006

lol ok where's that from

GameCube
Nov 21, 2006

if u can't see why regexing to pull some urls out of an html doc is ok then lol upon ye

GameCube
Nov 21, 2006

yo check it there's a sales on computer books about computers http://www.amazon.com/s/ref=amb_lin...rd_i=7299114011

can someone who knows about this poo poo tell me if there's a referral in that link cuz someone sent it out to the whole engineering dept and now i wonder if he's making mad bucks off of us

GameCube
Nov 21, 2006

bobbilljim posted:

y do u bother with getter and setter methods if there's no logic in them u could just use the public field directly

this is a No Trolling Zone.

GameCube
Nov 21, 2006

protected is for when something needs to be accessible by subclasses, u dork

GameCube
Nov 21, 2006

hey what's the easiest way to make a dumb little gui for a python script

GameCube
Nov 21, 2006

thank you all i will report back with my results in a week

GameCube
Nov 21, 2006

are sublime's vi mappings good enough that i could try it out without hating it yet

GameCube
Nov 21, 2006

digging the black-on-dark grey. so readable

GameCube
Nov 21, 2006

damaging to what, ur lcd or ur eyes

GameCube
Nov 21, 2006

sounds like a pretty cool idea to me

GameCube
Nov 21, 2006

Malcolm XML posted:

ghetto raii just use cpp

srsly

i was gonna say just use an object but then i remembered there are people who actually program in c still

GameCube
Nov 21, 2006

lol i'm trying to fix the javascript of some long-gone shitbird and that is exactly the line i'm encountering. looks like this guy was just following the jquery tutorial too

GameCube
Nov 21, 2006

he works for apple now

GameCube
Nov 21, 2006

anyway, somebody teach me javascript, please.

GameCube
Nov 21, 2006

so i'm trying to fix this javascript and i've never javascripted before

using the firefox debugger and it keeps breaking and offering no obvious reasoning as to why it broke. i have no breakpoints set so i assume it's an unhandled exception but i don't see any information about exceptions and i don't even know if javascript has exceptions

help

Adbot
ADBOT LOVES YOU

GameCube
Nov 21, 2006

i mean "break" as in the debugger broke u dork. why is the debugger breaking.

  • Locked thread