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
DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i'm not really a programmer but unfortunately, i do a lot of programming. most of the programming i do would have been better off getting outsourced to india.

i can't really post in serious programming threads because i'll basically jsut get made fun of, which is fine, but usually i'll get made fun of and my question won't get answered. so here is a :siren:SAFE SPACE:siren: for bad programmers to hang out and try to get better at stuff.


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??

any pro tips?

Adbot
ADBOT LOVES YOU

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

horse mans posted:

kill others then yourself

umm did you not see the "SAFE SPACE" siren? I thought it made it pretty clear

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

BONGHITZ posted:

http://en.wikipedia.org/wiki/Impostor_syndrome

this is the worst wikipedia article i have ever seen

at least im not a dunning kreuger

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Moist von Lipwig posted:

op whats your workflow like

my workflow is that i am the only person who does any programming at my company, and since no one else looks at it, it doesn't matter how poorly it's programmed as long as it doesn't wipe anyones hard drive.

i've actually managed to create a fairly complicated content management system that does a bunch of media transcoding/web streaming. my company things it is the greatest thing since sliced bread. but i know when i leave this place, some poor idiot is going to have to take over and they are going to curse my name forever.

also everything is driven by time. i would really like to take the time to l earn to be good at programming and write my programs properly, but i only get a day here and there to work on something, because most of my job is not programming. so i just get it done as fast as i can because otherwise it wont get done

DONT THREAD ON ME fucked around with this message at 01:15 on May 8, 2013

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Silver Alicorn posted:

I think maybe the community has gotten better, I haven't really paid attention since I stopped following slashdot

the problem with programming education is there's so much stuff that's non-obvious and counter-intuitive and it doesn't make "sense' until you've been browbeaten with it enough that you pretend it does, and at that point you still have no idea how to explain it to anyone else

best example I can think of is pointers. what is a pointer? a variable that points to another variable. this is a circular definition but it's what's in the books.

pointers didn't make sense to me until I started playing with assembly. need to store a string of text, or other multi-word data somewhere? put it somewhere in memory and then write that memory address down somewhere. now you can look up what's at that address and change the data, or you can change the address too maybe. it's like a reference of a memory address that points... at your data. a pointer. C-like languages make this more confusing because it can be hard to tell when you need to "dereference" a pointer or just pass the pointer as-is. You can think of a pointer as a variable that stores an address but you need to have some fairly precise understanding of what variables even are to understand why pointers are useful in the first place and it's just generally not taught

i understood pointers pretty easily. my problem is more that i know they exist but i don't know the language specifics of whatever language i'm working with (espescially if the language isn't something like c which forces you to be explicit about what you're doing), so i get really confused when i start passing variables around around.

when people say a programming language is pass by reference, does that mean you can call a function using pointers as variables? wheras some languages don't allow you to use pointers? if that's the case what is the appeal of a non pass-by-reference language?

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Jim Silly-Balls posted:

I want to meet a farmer like you IRL someday. My mind can't reconcile a farmer also being a yosposter

most yosposters are real salt the earth types though???

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
^^^ that sucks and it is an example of why i really don't want to get any more serious about programming

my company has been asking me if i want to move over to development full time. it's tempting because i honestly enjoy it a lot more than my real job (editing/coloring), but then i go into cavern of cobol or stack overflow and realize how hilariously underqualified i am to do any kind of real programming work.

i think i am much more employable as "an editor who can kinda program" than i am as just a bad programmer. i may be undervaluing my skills though, i don't know. i put together a really nice content management system that streams video and does a lot of other stuff in two months without any web development experience. but the code is really, really, really bad. it works and it has never gone down unless i've taken it down, but i'm sure a hacker could exploit the poo poo out of it if they wanted to.

tbh there is a lot of niche programming to be done in small or even big companies. one thing i did here was write a script that parsed music EDLs into an excel spreadsheet so we could send them to the music license people. it was a job that took some PA a few hours a week, and now it takes seconds. that stuff is invaluable but it doesnt take a computer engineer to do it.

DONT THREAD ON ME fucked around with this message at 04:08 on May 8, 2013

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Tori CMOS posted:

who gives a poo poo if it all fits together
people who care about workflows :smug:

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
thanks i'm pretty sure i get it. that's kinda how i thought it worked i just didn't articulate it right.

sorry about your gramps.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i just want to write some code that I feel okay posting in public

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

echinopsis posted:

external libraries ruin languages

sorry, how!!!! this thread is for inexperienced programmers only, please leave

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
here's a cool tip i figured out:

you're an idiot if you make your webpage in rails/django/something else equally easy to work with. you're even more of an idiot if you try to do it in perl/php when you don't have a reason to (supporting legacy poo poo).

as long as you dont have a twitter account, you can use rails without shame.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

keygen and kel posted:

don't get me wrong i kind of like my life most of the time, and having done some really hard and horrible manual labour jobs i'd take my job any day, but if i could go back in time i would have studied harder and become a cult leader or something.

i dunno when i was doing manual labor i was so tired all the time the only thing i could stress about was my job. now i have tons of surpluss energy but no surplus motivation and my job isn't that stressful so instead i stress about how generally unhappy + unhealthy + terrible my life is.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
sublime text 2 is awesome and worth 70 dollars, not that i paid for it

vi is probably better but i tried learning it once and it's too much work

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
I am finding javascript/jquery really difficult to understand. Is there a decent resource for learning js or should I just kill myself

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
Jquery is p easy it's the functions nested within functions nested within functions from js that I don't really get

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Sniep posted:

btw this is not because apple gives 1/2 of a gently caress about that $99 but it sets a (low) bar to entry so that not every idiot who downloads xcode shits up the market with garbage fart apps 24/7

not that it stops it, just filters out a ton of it from ever even appearing.

if you got actual dev skills and an idea for an app, 99 bucks is gonna be nothing to you.


it also ensures that if you want to create malicious software, you have to give apple your credit card and info about who ayou are

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

gucci void main posted:

it's not really that weird after about an hour. just read stephen kochan's programming in objective c book, as it's basically the bible for the language. it's not too hard to learn, the real difficulty is in getting used to using the cocoa framework as objc itself is completely useless without it.


whatever you do, dont use search in apples documentation, it will get you nowhere.

and don't bother with NSTask

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Martytoof posted:

i don't really care if objc is verbose. I'd rather see a half sentence long method name with args interspersed than something like doAThing(a, e, i, o, u, y);

the verbosity is fine for methods and etc but it would be nice if they had some easier syntax for doing things like allocating/initializing arrays/dictionaries/etc. it seriously takes 2 lines to make an empty goddamn mutable array

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
ur going to have some pretty stiff competition from me

just signed my first app today :chord:

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
what is a checked exception and why do you idiots care

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
code:
{  * } { *  } 


     
 
    {()}

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
lol is that a windows thing?

can't be worse than NSTask

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

quote:

any protips for a fledgling cowboy programmer who needs to make tools other people may have to maintain and use. im still way ahead of most college grads in that i Give A gently caress and dont care what tool it takes to get the job done right, i dunno, yospos help?

learn to make your code as portable as possible (buy a macbook air)

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
That's really an easy mistake to make. If you showed it to him he'd probably see the error immediately.

I mean if he really doesn't understand why it's wrong, then he's a bad program. Looks like he's just human tho


Woops I thought I was replying to a post that was just made. It's back a page. Can you guess which one?

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Ronald Raiden posted:

you are talking about this right. Anyway idk what language or whatnot that is but my guess as to why DoNeedful wasn't executed would be that datagridrow[hardcodednumber].value does not == datagridrow[anotherhardcodednumber].value

that seems pretty straightforward. I'm not sure if im missing some typo or secret or something.

finally some terrible programmers in this thread

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

prefect posted:

in my (limited) experience, the perl community is pretty sensible :shrug:

if you love regular expressions, have i got a language for you

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
wizard magic, yes, that's my problem with regular expressions

(tbqh i don't really know a better way to parse lots of text, i guess my solution to regular expressions is to get a job that doesn't involve parsing a lot of text).

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
the reason regex are so popular in perl is because regex syntax is actually much better than perl syntax

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i feel like regex only exist out of a mistaken attempt to impress girls

'yeah that's a pretty scary lookin regex, just gonna leave it up on my screen here, that'll impress her'

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
clearly you open up a shell for some reason or another "just gotta check some computer stuff" while you're installing her printer

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
Seems reasonable

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
do you accept applications from terrible developers willing to relocate

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
babies first development ecosystem

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Nomnom Cookie posted:

Why would you want to hire someone looking to move to the south. Might as well hang up a RACIST poo poo EMPLOYEES WANTED sign

ummm there are way more black people in the south, it's like being the opposite of a racist

in the north it's like "oh we're not racist, we love the 2 black people we allow to live in our gated communities"

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
heh

just as good as engineering humor, if you ask me

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i just made a thing that exports excel spreadsheets by creating an excel template where I put !!H1!! !!H2!!...etc in every cell and then doing a sed in sharedStrings.xml for those keywords.

way easier than figuring out the xlsx formatting poo poo

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
every time i get probated (a lot), i secretly feel kinda bad about it (once or twice ifelt really bad because i definitely deserved it). if anyone ever commented on or cared about it i think it would suck a lot more than i'd ever admit

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

CamH posted:

why is that even a setting (no didnt)

lol'd irl at this exchange

Adbot
ADBOT LOVES YOU

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
use iOS maps idiot

  • Locked thread