Do you have test data? You could refactor it and just teat to make sure you get the same output. While your code may not handle every edge case since you don't know the business requirements that it addresses, you should be able to get the gist of it.
My guess is it's poorly written, no single class should be incomprehensibly large. So this is someone throwing their entire business in main()
Also, you could try walking through it and just comment the shit out of it. Start with what it's actually doing since you don't know why. If you're using an editor that allows you to collapse sections, comment then collapse leaving the comment visible, this will leave you with the flow. Your comments will suck without the why, but it might be enough to figure it out.
My first concern is the heat used to seal the bag and its impact on the durability of the condoms if they happen to be next to the sealed edge when it's closed.
They are pretty close with the current versions. In the Old days, it was PostgreSQL for ACID compliance and MySQL for Speed, but these days both are totally compliant when configured correctly and both can be fast when configured for it. Basically, it doesn't matter. I personally prefer postgresql just because I find it easier to manage things like permissions on. But it's really up to you.
I just use windows for an IDE, I have a test server (Ubuntu) that the IDE pushes to when I check stuff in. I didn't feel like running this script there because I'm lazy and it was faster to throw it in the local directory. I also have a Windows Server with a Xeon in it sitting next to me that I was too lazy to setup WAMP on, because I'd have to figure out how to kill IIS. haha.
Just keep coding man. I look at code I wrote a year ago and wonder what the hell I was thinking. It happens to all Programmers. The trick is establishing some "best practices" that you do and always meet those and if some of your queries aren't optimized or something it doesn't matter. Just make sure you do the things that are on your best practices list (Hash Passwords, Don't pass sensitive data in plain text, etc. etc)
Just for the sake of testing, try sending something that doesn't have a domain at the end and see if that works. If it does, try changing your encoding to replace the "." with a "|" or something not normally in URL's and change it back in your controller. Apache might be seeing the .com at the end and getting screwed up.
It seems to have calmed down now, after having it open for a long time, it's possible it was still syncing. It's clearly much larger than other text-editors I've used in the past, but I've never really played with a proper IDE, so I don't know what's typical.
Right, I get that. I was trying to figure out what features people we're so in love with as to necessitate the fact that it's a brutal ram hog and slows everything down. I'm not familiar with it, so I'm sure I'm missing something awesome that makes it worth the cost. Clue me in.
This thing is a brutal resource hog. Even of successive openings when it shouldn't really be indexing anything. Does it ever calm down? It seems like some cool features, catching unused variables and such, but it's nothing I haven't seen with add-ons in notepad++, is it?
Well, first, depending on where you operate the business, it may have to be licensed in the US. So be aware of that. Some Cities require business licenses.
And Even if an LLC isn't needed, it may not be a bad thing if you're making decent money, It's just a little bit of protection in the event something goes way wrong.
Well, an LLC isn't a bad idea, as they can act as flow through tax entities as well. but formal, corporations, called C-corps, or an LLC electing to be taxed as a C-corp are taxable entities themselves, non-electing LLC's are not taxed. Just make sure you do your LLC paperwork correctly, as you can elect to be taxed if you wanted to. but LLC's default to partnership tax treatments, so untaxed.
Basically the biggest perk of a corporation is it can declare bankruptcy without damaging your credit or exposing your personal assets (House, car, etc) to the liability you incurred. If you do something deemed to be grossly negligent (knowingly sell lead tainted children's toys) or in bad faith (pull out a ton of cash and BK) then a court can "pierce the corporate veil" and come after your personal assets, but for the most part, your personal stuff will be safe in the event of debt or lawsuit.
The amount of profit you make doesn't have a lot to do with it. If you are in an industry that you don't have any liability (Selling Photoshop Layer Styles) then an LLC probably isn't needed. If you're a mechanic or something where you could get sued, then register as an LLC and limit your potential liability.
FYI, Corporations are designed to Limit Liability, so if you're not going in significant debt or making a product which could potentially harm someone corporations only add to your tax burden as they are taxed themselves then you pay taxes on the salary you give yourself.
So stay a flow through tax entity (Sole/Partnership) as long as possible if you are not exposing yourself to risk.
I like the posters, good style, very clear and visible. And I Dig the Digital Underground Reference. that Was going to be my Costume with a few of my friends this year, but the main guy slacked off and didn't memorize enough lyrics Heh.
Charge what you're worth! Seriously, this will be very hard to do.
You should be shooting for clients that A) are interested in paying you because they realize you're the expert and B) can afford to Hire and Pay you. You will get these clients more often if you're more expensive.
Good Designers are expensive, work on being worth a lot, and charge the correct amount!
Do you have test data? You could refactor it and just teat to make sure you get the same output. While your code may not handle every edge case since you don't know the business requirements that it addresses, you should be able to get the gist of it.
My guess is it's poorly written, no single class should be incomprehensibly large. So this is someone throwing their entire business in main()
Also, you could try walking through it and just comment the shit out of it. Start with what it's actually doing since you don't know why. If you're using an editor that allows you to collapse sections, comment then collapse leaving the comment visible, this will leave you with the flow. Your comments will suck without the why, but it might be enough to figure it out.
You guys should use a slack room.
Probably, just the first concern that came to mind and I think a legitimate issue, though I would imagine it's solved if these are on the market.
My first concern is the heat used to seal the bag and its impact on the durability of the condoms if they happen to be next to the sealed edge when it's closed.
Silly, but awesome. I'm impressed. Lots of rules I'd never even thought about trying to program before.
http://www.dir.ca.gov/dlse/LC515-5.pdf
Nah, decent devs of any language in California will make 81k/year because that's what they have to make to be exempt from Overtime.
Source: Web/Stack/Php/etc. Dev in Tustin =P
They are pretty close with the current versions. In the Old days, it was PostgreSQL for ACID compliance and MySQL for Speed, but these days both are totally compliant when configured correctly and both can be fast when configured for it. Basically, it doesn't matter. I personally prefer postgresql just because I find it easier to manage things like permissions on. But it's really up to you.
I just use windows for an IDE, I have a test server (Ubuntu) that the IDE pushes to when I check stuff in. I didn't feel like running this script there because I'm lazy and it was faster to throw it in the local directory. I also have a Windows Server with a Xeon in it sitting next to me that I was too lazy to setup WAMP on, because I'd have to figure out how to kill IIS. haha.
Yea, it's a 2500k. Running WAMP? or what stack? I have a feeling that has more to do with it than anything else.
Edit: Unless you're at 4.5ghz or something.
Desktop (I5 @ 3.3ghz Windows 7 and WAMP):
Doesn't mean they won't get sued, just that apple likely will not win. Apple lawyers get paid by cases filed I think =p
Just keep coding man. I look at code I wrote a year ago and wonder what the hell I was thinking. It happens to all Programmers. The trick is establishing some "best practices" that you do and always meet those and if some of your queries aren't optimized or something it doesn't matter. Just make sure you do the things that are on your best practices list (Hash Passwords, Don't pass sensitive data in plain text, etc. etc)
try breaking the URL into Segments 3 and 4, with 3 being http or https and 4 being the rest of the URL.
Then you can add the slashes back manually, or just use CI's prep_url() command if it's http.
edit, or just send it without the http/https and add an optional 4th parameter to handle the few https cases you get.
Just for the sake of testing, try sending something that doesn't have a domain at the end and see if that works. If it does, try changing your encoding to replace the "." with a "|" or something not normally in URL's and change it back in your controller. Apache might be seeing the .com at the end and getting screwed up.
It seems to have calmed down now, after having it open for a long time, it's possible it was still syncing. It's clearly much larger than other text-editors I've used in the past, but I've never really played with a proper IDE, so I don't know what's typical.
Right, I get that. I was trying to figure out what features people we're so in love with as to necessitate the fact that it's a brutal ram hog and slows everything down. I'm not familiar with it, so I'm sure I'm missing something awesome that makes it worth the cost. Clue me in.
This thing is a brutal resource hog. Even of successive openings when it shouldn't really be indexing anything. Does it ever calm down? It seems like some cool features, catching unused variables and such, but it's nothing I haven't seen with add-ons in notepad++, is it?
I second CI. Just finishing my First decent sized app with it and I'm not a PHP guru, but found it much easier to work with than Drupal Joomla etc.
Well, first, depending on where you operate the business, it may have to be licensed in the US. So be aware of that. Some Cities require business licenses.
And Even if an LLC isn't needed, it may not be a bad thing if you're making decent money, It's just a little bit of protection in the event something goes way wrong.
but to more specifically answer your question, you complete schedule C as part of your 1040. http://www.irs.gov/pub/irs-pdf/f1040sc.pdf
Also, I'm not a lawyer/CPA/Tax Attorney, just have an accounting degree. So Consult your CPA =)
Well, an LLC isn't a bad idea, as they can act as flow through tax entities as well. but formal, corporations, called C-corps, or an LLC electing to be taxed as a C-corp are taxable entities themselves, non-electing LLC's are not taxed. Just make sure you do your LLC paperwork correctly, as you can elect to be taxed if you wanted to. but LLC's default to partnership tax treatments, so untaxed.
Basically the biggest perk of a corporation is it can declare bankruptcy without damaging your credit or exposing your personal assets (House, car, etc) to the liability you incurred. If you do something deemed to be grossly negligent (knowingly sell lead tainted children's toys) or in bad faith (pull out a ton of cash and BK) then a court can "pierce the corporate veil" and come after your personal assets, but for the most part, your personal stuff will be safe in the event of debt or lawsuit.
The amount of profit you make doesn't have a lot to do with it. If you are in an industry that you don't have any liability (Selling Photoshop Layer Styles) then an LLC probably isn't needed. If you're a mechanic or something where you could get sued, then register as an LLC and limit your potential liability.
Edit: Typos.
FYI, Corporations are designed to Limit Liability, so if you're not going in significant debt or making a product which could potentially harm someone corporations only add to your tax burden as they are taxed themselves then you pay taxes on the salary you give yourself.
So stay a flow through tax entity (Sole/Partnership) as long as possible if you are not exposing yourself to risk.
I like the posters, good style, very clear and visible. And I Dig the Digital Underground Reference. that Was going to be my Costume with a few of my friends this year, but the main guy slacked off and didn't memorize enough lyrics Heh.
Charge what you're worth! Seriously, this will be very hard to do.
You should be shooting for clients that A) are interested in paying you because they realize you're the expert and B) can afford to Hire and Pay you. You will get these clients more often if you're more expensive.
Good Designers are expensive, work on being worth a lot, and charge the correct amount!
End of this list.
Back to top