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
Nomnom Cookie
Aug 30, 2009



no one else where i work knows or cares about unit testing or testing of any kind. the c-level execs double as qa.

~startup lyfe~

w/e i give up on explaining the problems with singletons and why SOLID is good. write some code check it in go home, if devel breaks ill look at it tomorrow

Adbot
ADBOT LOVES YOU

Nomnom Cookie
Aug 30, 2009



OBAMA BIN LinkedIn posted:

TDD is dumb until you end up turning in a project which had relatively little hiccups. then ur like hmm, that's p.good actually.

and then everyone at work is like how do i use ur code??????? well idk dumbass did u look at the wiki pages or the javadoc or the functional tests. why fuckin bother

Nomnom Cookie
Aug 30, 2009



gucci void main posted:

saying to read the specs to see how the code works is the worst argument, made only worse when non-native english speakers are writing some of your code

the wiki pages are the howto

Nomnom Cookie
Aug 30, 2009



i post on yospos and pray for death (yours)

Nomnom Cookie
Aug 30, 2009



Doc Block posted:

And what, pray tell, is the Shaggar-approved brace style?

my shaggier.xls has allman on it. if thats the one where opening braces always go on the same line then hes right

Nomnom Cookie
Aug 30, 2009



java interns constant strings. it also interns strings that you tell it to. using == to compare strings by value only works properly when both sides of the comparison are interned strings. don't do it

Nomnom Cookie
Aug 30, 2009



the + thing is kinda dumb but w/e. == is okayish and at least makes sense if you consider references as values separate from objects. then == is "compare the values of these variables". then problem is string interning, you can call an instance method to put an object in the perm gen and dedupe instances and poo poo. also the compiler will do this for you. it's terrible poo poo from 1995 when computers had 8 MB RAM and it's in the language forever

Nomnom Cookie
Aug 30, 2009



tbh overall i think the + concatenates strings feature is a good thing. if thats the biggest criticism someone has about java then you know that they don't know much about java, or theyre obsessed with trivial poo poo

Nomnom Cookie
Aug 30, 2009



chumpchous posted:

do you accept applications from terrible developers willing to relocate

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

Nomnom Cookie
Aug 30, 2009



learn one thing until you actually know it well and aren't sulk

Nomnom Cookie
Aug 30, 2009



use intellij to code java and open your eyes to the power of a real ide and the productivity of a real ecosystem

Nomnom Cookie
Aug 30, 2009



alabama is better than mississippi. the home state of bull connor is better than mississippi. think about that. the only reasonable thing for a mississippian to do is save up to move to anywhere else

Nomnom Cookie
Aug 30, 2009



Bloody posted:

i cant think of a single reason to live in any of those places but im not involved with organized crime so

cheap bath salts for your butt

Nomnom Cookie
Aug 30, 2009



AWWNAW posted:

even worse is i let them relocate me from chicago where i worked from home 5 hours a week for 85k

pwnt

poo poo you had the job craigslist scammers advertise. maybe its not a scam???

Nomnom Cookie
Aug 30, 2009



Shaggar posted:

just use jaxb to serialize the objects directly.

does jaxb do like jackson where you give it pojos w/o annotations or anything and it can figure out the right thing to do

Nomnom Cookie
Aug 30, 2009



THC posted:

Im inclined to think the entire message passing concept is apple being different for the sake of being different. (NB: I realize this is not the actual reason why obj-c has messaging but to someone raised on c/++ c# and java it is just so very peculiar.) they just get turned into function calls at compile time anyway so wtf

its basically function calls except they get resolved at runtime instead of compile time. objc is weird its like half c half p-lang

Nomnom Cookie
Aug 30, 2009



keygen and kel posted:

i think i want to start a project to access data in this horrible industry specific XML format from a horrible Web Service and dump it into a sql db. I'm back and forth between java and c# but i'm think c# because who am i kidding everyone uses windows, i'd like to make it not terrible what's a good starting point for learning c#. (i've done development before but it was a long time ago.)

idk does your company do c# normally? bc otherwise java is better. users shouldn't be allowed to run code anyway

manning books are p good imo but if you still remember a programming then u can probably get by on the msdn reference

Nomnom Cookie
Aug 30, 2009



Java is the quintessential language for solving real problems. That's why it's hardly used in academia

Nomnom Cookie
Aug 30, 2009



CamH posted:

my school uses a lot of java and it is a dumb language

Undergraduates should be seen and not heard

Nomnom Cookie
Aug 30, 2009



i use big data instead of sql so its not a problem for me

Nomnom Cookie
Aug 30, 2009



CamH posted:

the point that i was trying to make about java not being very good is better understood by acknowledging that c# exists (and it is a much better java than java)

youre missing the two biggest factors in selecting a language. syntax and semantics is like, #5.

1. what your coworkers are using
2. what libraries are available

neither of those apply to homework assignments, thus undergraduates should be seen and not heard

Nomnom Cookie
Aug 30, 2009



mods namechange posted:

surely the whole environment thingamajig would be up there too though

like the .NET framework is p. silly but at least it doesn't poo poo up your computer with endless documented but unpatched security vulnerabilities and toolbars and poo poo

your argument is that java is a bad language because browser toolbar

Nomnom Cookie
Aug 30, 2009



qntm posted:

hooray, everybody has abandoned timezones

oh wait, the past still exists and there are loads of dates and times there

oh wait, every country moved to UTC on a different day, and some refuse to move at all

loving people loving up our computer programs

JawnV6 posted:

webpack on linux gives you the option of never touching their tools except for chucking your verilog at them and getting a .bit. so you know, you can use all those quality third party verilog dev tools.

modelsim is a crime against humanity

use vim it has syntax highlighting

Nomnom Cookie
Aug 30, 2009



why can't we have an api to turn (date, time, locale) into UTC and back again. thats all i want

Nomnom Cookie
Aug 30, 2009



idgaf if the user has a hindi moon calendar and 15 or 30 minute TZ offsets on alternating days of the week. i give utc, you give crazy brown people time

Nomnom Cookie
Aug 30, 2009



tef posted:

*stores local time as utc* *dst changes by law* *all appointments an hour off*

most of the time this is acceptable

just like 99% of java code only supports unicode BMP and no one notices or cares

Nomnom Cookie
Aug 30, 2009



tef posted:

do you work on the android team :3:

nope. but i do think that ui is an annoyance and im basically only aware of it as something that provides an excuse for the interesting stuff so i can see how you might get that impression

Nomnom Cookie
Aug 30, 2009



if u got a programming problem u cant fix with a hex dump and a slide rule then the problem is u

Nomnom Cookie
Aug 30, 2009



colorforth is the answer

Nomnom Cookie
Aug 30, 2009



dont like the syntax highlighting, just rewrite your os and editor. its only 500 bytes anyway

Nomnom Cookie
Aug 30, 2009



qntm posted:

i believe syntax highlighting perl is turing-complete

certainly it's irritatingly difficult because a regex can be delimited with almost any character you want and the escaping rules inside it are different depending on the delimiter

perl can parse differently depending on BEGIN blocks. the one proof i've seen relied on conditionally defining a sub in a begin block. thats not so bad compared to c++. c++ is undecidable except that the standard requires compilers to limit template expansion depth. you have to either be ok with using ambiguous parses for syntax highlighting or you have to instrument the compiler

i think tef said a toy language is one where the most complex software written in the language is its compiler. c++ is a toy language

Nomnom Cookie
Aug 30, 2009



PleasingFungus posted:

good thing tef didn't actually say it!

mines better

Nomnom Cookie
Aug 30, 2009



FamDav posted:

template expansion has nothing to do with syntax highlighting. that just makes c++ compilation undecidable.

while c++ has some wonky context sensitive issues (object instantiation vs function declaration), there's really nothing worse about highlighting it than python or haskell.

idk if post about something that isnt java or linux its probably wrong

quote:

also, what more do people want out of syntax highlighting?

intellij highlights bad code, its not perfect but it catches a depressing %age of my employer's codebase

Nomnom Cookie
Aug 30, 2009



OBAMA BIN LinkedIn posted:

can we not sperg too much about why c++ is or isnt a bad language as i think we all agree that c++ isn't well designed but nonetheless its still p.much the most important and practical language that currently exists

i can agree that p much every opinion you have is wrong

Nomnom Cookie
Aug 30, 2009



Papes posted:

So I'm a terrible programmer whose only done academia stuff so I have little knowledge about how "real" programs work.

I'm trying to put together a very simple shipment notification app for the iPhone. I've dug through the APIs of the major parcel carriers and I believe I just need to make a XML parser class (I'd use a library one obviously) and then receive and send messages to their respective websites through the XML parser?

Is this basically the gist of what I should do, or is there a way thats 10x easier that I don't know about.

1. receive messages
2. send messages
3. parse XML

separation of concerns. read up on SOLID

then implement something with terrible design. if u can tell that ur doing something bad thats good enough for a babby dev. u get better with practice but u DONT get better from reading a text on UML and making diagrams for a month

Nomnom Cookie
Aug 30, 2009



Cocoa Crispies posted:

-/ isn't a bad style of comment

wat

Nomnom Cookie
Aug 30, 2009



Cocoa Crispies posted:

lol i just tried this in a c file and sublime used // which isn't actually valid c

c99

Nomnom Cookie
Aug 30, 2009



Socracheese posted:

in my short career i have thrown a django thing at basically every problem and it has worked. but in the past when I encountered a bug I would be like "$feature sucks because the web is a lovely platform" and now I realize that it just seems that way because of what a scrub i am

i guess i should look into ruby i just have this huge feeling of ughhhhhhh about it for some reason. i think its the japanese spergitude

dont learn ruby, learn c

Nomnom Cookie
Aug 30, 2009



chef uses ruby and chef is p good

the bang method thing is really stupid though. sometimes it means mutation, other times it means throwing exceptions, and still other times it means commit?? sounds like what it really means is "im a dumbass terrible p-langer who cant design an api to save my life so i'll just put in every method i can think of and add ! to some of them"

Adbot
ADBOT LOVES YOU

Nomnom Cookie
Aug 30, 2009



prefect posted:

i'm not sure exactly why this weirds me out, but it does

numbers arent objects thats why

  • Locked thread