Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: Newby on December 12, 2005, 10:49:18 PM

Title: A lot of stuff unrelated to Cattle Chat. :)
Post by: Newby on December 12, 2005, 10:49:18 PM
Your grader was foreign. :(
Title: Re: Cattle Chat
Post by: iago on December 12, 2005, 10:52:16 PM
Quote from: Newby on December 12, 2005, 10:49:18 PM
Your grader was foreign. :(
Yes, she's Chinese.  When I was demonstrating it, she had A LOT of trouble figuring out what I was talking about.  It's so funny, I send the program to you or Ergot, and you are up and using it and can figure it out instantly.  She couldn't get past the word "channel"...

Quote from: Joe[e2] on December 12, 2005, 10:31:51 PM
Ctrl+A; enter. They're all opened in ultra-edit.

Ctrl+F; "sucks"; all files.

Found.
hm, I'd just do "grep sucks *".  Seems like a lot less hassle then loading up Ultra-Edit, which is the bulkiest text editor I've used (that's not a full IDE)...
Title: Re: Cattle Chat
Post by: Sidoh on December 12, 2005, 11:05:07 PM
Quote from: iago on December 12, 2005, 10:52:16 PM
hm, I'd just do "grep sucks *".  Seems like a lot less hassle then loading up Ultra-Edit, which is the bulkiest text editor I've used (that's not a full IDE)...

Linux prevails once again!
Title: Re: Cattle Chat
Post by: rabbit on December 12, 2005, 11:07:04 PM
I'm gonna have to try this out ASAP...
Title: Re: Cattle Chat
Post by: Newby on December 12, 2005, 11:08:42 PM
I would have done "cat *.* | grep "sucks" myself but eh? :p
Title: Re: Cattle Chat
Post by: iago on December 12, 2005, 11:18:25 PM
Quote from: Newby on December 12, 2005, 11:08:42 PM
I would have done "cat *.* | grep "sucks" myself but eh? :p

*.* assumes that the file has an extension, which isn't a good idea.  That's a Windows way of thinking. 

The second problem with that is it doesn't tell you which file it came from. 

for i in *.*; do echo "$i:"; cat $i | grep "sucks"; done

That's about the closest thing to yours that would be useful.  But it's obviously pretty nasty :P
Title: Re: Cattle Chat
Post by: Joe on December 12, 2005, 11:19:24 PM
Would that give line number, or even file name, though? [edit]See, what iago said.[/edit]

By the way iago, minus a compiler, UltraEdit is a full IDE, IMO. I develop PHP in it, so eh?
Title: Re: Cattle Chat
Post by: Sidoh on December 12, 2005, 11:20:58 PM
:O

sidoh@tehserver:~/CHRIS/cc$ time cat *.* | grep "sucks"
/* TODO: this implementation sucks.  Find a better way. */

real    0m0.006s
user    0m0.010s
sys     0m0.000s
sidoh@tehserver:~/CHRIS/cc$ time grep sucks *
table.c:/* TODO: this implementation sucks.  Find a better way. */

real    0m0.003s
user    0m0.000s
sys     0m0.000s


iago wins?  He just saved you 0.003s if you listened to him!

/me likes iago's way because cat *.* | grep "sucks" doesn't give you the filename. :]

Joe:  Why would you use UltraEdit for developing PHP when you could use Zend?  It seems to me UltraEdit is a very, very toned down version of Zend.  Zend may be pretty "heavy," but it's by far the most valuable tool I have for developing PHP (other than a server that supports it, of course).
Title: Re: Cattle Chat
Post by: Joe on December 13, 2005, 06:52:51 PM
Is it free? Link please?
Title: Re: Cattle Chat
Post by: iago on December 13, 2005, 07:01:40 PM
www.google.ca/search?q=zend -- first result (go figure?)

It isn't free, but you can get a free evaluation.  Same as UltraEdit. 
Title: Re: Cattle Chat
Post by: Sidoh on December 13, 2005, 07:06:26 PM
Quote from: Joe[e2] on December 13, 2005, 06:52:51 PM
Is it free? Link please?

If you're into PHP at all, you've heard of Zend.  Zend is the premier PHP "enhancement" company.  They have a bunch of optimization engines (a few of them are included with PHP now, I believe) for PHP, along with development tools.  They also offer "professionalized" certifications for PHP, which involve the programmer taking a test to earn a certification which can be used to verify the developer's competency.  I don't have one, mostly because it costs money.

http://www.zend.com/

And no, it's not free.  $300.
Title: Re: Cattle Chat
Post by: Warrior on December 13, 2005, 08:25:24 PM
Zend Dev Studio is alright, I still stick to Notepad2. I hate bloated IDE's personally.
Title: Re: Cattle Chat
Post by: Sidoh on December 13, 2005, 09:03:32 PM
Quote from: Warriorx86] link=topic=4143.msg44766#msg44766 date=1134523524]
Zend Dev Studio is alright, I still stick to Notepad2. I hate bloated IDE's personally.

I've also found Notepad2 a great editing tool; it's so lightweight!

However, when I'm getting down to business, I don't think I could function very efficiently without Zend.  I don't know how much you've used it, but it has a parsing engine built into it.  It will highlight errornous code so you know to correct it before you upload.  That's just one of many reasons I use it.  There are also several features that it has which I haven't taken advantage of yet.  Zend is an amazing development tool, all-in-all.  I will agree, though.  It is very heavy (especially in relative terms -- IDE's for web languages generally don't have much), but MAN is it worth it! ;)
Title: Re: Cattle Chat
Post by: iago on December 13, 2005, 09:19:42 PM
I program directly on my webserver, so I know about parse errors in about 2 seconds, no fussing with FTP or anything.  Plus, vim will tell you if you're missing a bracket or if you spelled a function name wrong, which is all I really need. 

Quote from: Sidoh on December 13, 2005, 09:03:32 PM
I don't think I could function very efficiently without Zend.

*looks for his T&T++ program* apparently, you can't WITH it, either! :P
Title: Re: Cattle Chat
Post by: rabbit on December 13, 2005, 09:53:13 PM
Really.  Notepad2 and an Apache server....fuck Zend.
Title: Re: Cattle Chat
Post by: Sidoh on December 13, 2005, 10:06:44 PM
Quote from: iago on December 13, 2005, 09:19:42 PM
I program directly on my webserver, so I know about parse errors in about 2 seconds, no fussing with FTP or anything.  Plus, vim will tell you if you're missing a bracket or if you spelled a function name wrong, which is all I really need. 

Quote from: Sidoh on December 13, 2005, 09:03:32 PM
I don't think I could function very efficiently without Zend.

*looks for his T&T++ program* apparently, you can't WITH it, either! :P


I program in-directly on my webserver, without the useage of a FTP server (I use Samba instead), which is fast enough to be humanly indifferent. :P

It doens't highlight the code for you, though.  :(

Trust me, my opinion isn't unjustified.  I've tried using Notepad2.  I use vi(m) when Zend isn't available, but when it is, I'm sure as hell going to use it.

Quote from: rabbit on December 13, 2005, 09:53:13 PM
Really.  Notepad2 and an Apache server....fuck Zend.

Ew, no.  Zend is too hot to fuck.  I've already said I like Notepad2; I don't know why you think I don't run an Apache server, because I do.  Just because I use Zend's development tools doesn't mean I also use their optimization tools.  ZendStudio is amazing.
Title: Re: Cattle Chat
Post by: rabbit on December 13, 2005, 10:21:25 PM
I'm saying in general.  Using N2 is good (because it rocks), and if you run your own Apache server, then you completely eliminate the need for Zend.  IE: What I do.  I don't like Zend Studio.  It tries to be too much.
Title: Re: Cattle Chat
Post by: Sidoh on December 13, 2005, 11:27:51 PM
Quote from: rabbit on December 13, 2005, 10:21:25 PM
I'm saying in general.  Using N2 is good (because it rocks), and if you run your own Apache server, then you completely eliminate the need for Zend.  IE: What I do.  I don't like Zend Studio.  It tries to be too much.

I do run my own Apache server:

http://www.sidoh.org

Here it is:

(http://sidoh.dark-wire.net/Files/Images/my_computer/room-01.jpg)

You don't have to use all of what it does.   :P

For me, Notepad2 isn't enough for heavy development. :)
Title: Re: Cattle Chat
Post by: mynameistmp on December 14, 2005, 03:14:54 AM
Quote from: iago on December 13, 2005, 09:19:42 PM
I program directly on my webserver, so I know about parse errors in about 2 seconds, no fussing with FTP or anything.  Plus, vim will tell you if you're missing a bracket or if you spelled a function name wrong, which is all I really need. 

Which reminds me (since we're all off topic here), check out how I interact with your server:
Quote
bash-3.00$ javaop uname -a
Linux darkside 2.4.29 #6 Thu Jan 20 16:30:37 PST 2005 i686 unknown unknown GNU/Linux
bash-3.00$ javaop id
uid=1009(tmp) gid=100(users) groups=100(users)
bash-3.00$

Or, if I just want a shell:
Quote
bash-3.00$ javaop
Linux 2.4.29.
Drink Canada Dry!  You might not succeed, but it *is* fun trying.
tmp@darkside:~$


I don't use any aliasing.