Berkeley CSUA MOTD:Entry 37010
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2005/3/31-4/3 [Computer/SW/Languages/C_Cplusplus, Computer/SW/OS/Windows] UID:37010 Activity:nil
3/31    From the "shit I could have told you myself" department:
        "95% of IT Projects Not Delivered On Time"
        http://it.slashdot.org/it/05/03/31/1527257.shtml?tid=218
        \- what %age of IT projects are not worth doing? i sure see
           a lot of churn which involves people trying to justify
           their jobs. if an organization grows 5% over 10yrs but
           computers become 10x more powerful and 1/5th the size,
           some stuff is upgraded too often needlessly.
           \_ Sure, but not all upgrades are needless due to continual
              increases in number crunching and data storage demand, and a lot
              of systems which really ought to be upgraded, aren't.  I think
              most of the waste comes from inefficient process-heavy
              organizations.  -John
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2014/1/14-2/5 [Computer/SW/Languages/C_Cplusplus] UID:54763 Activity:nil
1/14    Why is NULL defined to be "0" in C++ instead of "((void *) 0)" like in
        C?  I have some overloaded functtions where one takes an integer
        parameter and the other a pointer parameter.  When I call it with
        "NULL", the compiler matches it with the integer version instead of
        the pointer version which is a problem.  Other funny effect is that
        sizeof(NULL) is different from sizeof(myPtr).  Thanks.
	...
2013/4/9-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Apps, Computer/SW/Languages/Perl] UID:54650 Activity:nil
4/04    Is there a good way to diff 2 files that consist of columns of
        floating point numbers, such that it only tells me if there's a
        difference if the numbers on a given line differ by at least a given
        ratio?  Say, 1%?
        \_ Use Excel.
           1. Open foo.txt in Excel.  It should convert all numbers to cells in
	...
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil
4/29    Why were C and Java designed to require "break;" statements for a
        "case" section to terminate rather than falling-through to the next
        section?  99% of the time poeple want a "case" section to terminate.
        In fact some compilers issue warning if there is no "break;" statement
        in a "case" section.  Why not just design the languages to have
        termination as the default behavior, and provide a "fallthru;"
	...
2012/7/19-11/7 [Computer/SW/Languages/C_Cplusplus] UID:54439 Activity:nil
7/19    In C or C++, how do I write the code of a function with variable
        number of parameters in order to pass the variable parameters to
        another function that also has variable number of parameters?  Thanks.
        \_ The usual way (works on gcc 3.0+, Visual Studio 2005+):
               #define foo(fmt, ...) printf(fmt, ##__VA_ARGS__)
           The cool new way (works on gcc 4.3+):
	...
2011/3/7-4/20 [Computer/SW/Languages/C_Cplusplus] UID:54056 Activity:nil
3/7     I have a C question.  I have the following source code in two identical
        files t.c and t.cpp:
                #include <stdlib.h>
                int main(int argc, char *argv[]) {
                  const char * const * p1;
                  const char * * p2;
	...
2011/2/5-19 [Computer/SW/Languages/C_Cplusplus] UID:54027 Activity:nil
2/4     random C programming/linker fu question.  If I have
        int main() { printf("%s is at this adddr %p\n", "strlen", strlen); }
        and soda's /proc/sys/kernel/randomize_va_space is 2 (eg; on)
        why is strlen (or any other libc fn) at the same address every time?
        \_ I don't pretend to actually know the right answer to this, but
           could it have something to do with shared libraries?
	...
2010/2/12-3/9 [Computer/SW/Languages/C_Cplusplus] UID:53708 Activity:nil
2/12    I need a way to make a really big C++ executable (~200MBs) that does
        nothing.  No static initialization either.  Any ideas?
        \_ static link in lots of libraries?
        \_ #define a   i=0; i=0; i=0; i=0; i=0; i=0; i=0; i=0; i=0; i=0;
           #define b   a a a a a a a a a a
           #define c   b b b b b b b b b b
	...
2009/9/28-10/8 [Computer/SW/Languages/C_Cplusplus] UID:53409 Activity:nil
9/28    http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
        Java is #1!!! Followed by C, PHP, C++, Visual Basic, Perl,
        C#, Python, Javascript, then finally Ruby. The good news is
        Pascal is going waaaay back up!
        \_ C is still more popular than C++?  I feel much better about myself
           now.
	...
2009/8/7-14 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:53252 Activity:high
8/6     In C one can do "typedef int my_index_t;".  What's the equivalent in
        C#?  Thanks.
        \_ C#? Are you serious? Is this what the class of 2009 learn?
           \_ No.  I have to learn .NET code at work.  I am Class of '93.
           \_ python is what 2009 learns, see the motd thread about recent
              cal courses and languages
	...
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate
7/20    For those who care btw, it looks like eclipse is now A Standard Tool
        at UCB ugrad cs, probably replaced emacs.  Furthermore, people get
        angry at seeing Makefiles, (since eclispe takes care of that).  I
        guess it's just a sign of the times.
        \_ The more people at my work use eclipse the less the code is
           managable in emacs.  I'm not sure which application's fault
	...
2008/6/27-7/14 [Computer/SW/OS/Windows] UID:50396 Activity:nil
6/27    "No extension: Windows XP D-Day arrives Monday, June 30"
        http://tech.yahoo.com/blogs/null/96295
        Among all Windows versions, is XP one of the most sucessful ones?  The
        other one I can think of might be 3.1.
        \_ 2000 was pretty damn good too.
        \_ Win95? It ran the most games. XP seems better than Win2k to me, but
	...
2007/7/17 [Computer/SW/Languages/C_Cplusplus] UID:47312 Activity:nil
7/13    CSUA Life Roster
1 point each for:                                               key:
                significant other (out of county rule applies)   G
                car (Chevy Novas do count)                       C
                housing (dorms DO NOT count)                     H
                own computer running reasonable multi-tasking OS U
	...
2006/10/11-13 [Computer/SW/OS/Windows] UID:44779 Activity:nil
10/11   Are Windows CE, Windows Embedded, and Windows Mobile the same thing?
        They all sound like the Windows version for small devices.  Is it just
        a marketing thing to rename different versions of the same product?
        Thanks.
        \_ Windows CE is the generic term for Windows Mobile, which includes
           "Pocket PC" Edition, and the castrated  "Smartphone" edition.
	...
Cache (8192 bytes)
it.slashdot.org/it/05/03/31/1527257.shtml?tid=218
The article mentions Info-Tech's reasons: unrealist ic time frames, staff shortages, and poorly defined project scope. Howev er, the article's author lays the blame with vendors." He lowers the balloon further and sho uts, "Excuse me, can you tell me where I am?" The man below says, "Yes, you're in a hot air balloon, hovering 30 feet a bove this field. "Well", says the balloonist, "ev erything you have told me is technically correct, but it's of no use to anyone." "I am", replies the ball oonist, "but how did you know?" "Well", says the man, "you don't know wh ere you are, or where you're going, but you expect me to be able to help . You're in the same position you were before we met, but now it's my fa ult." Monday August 04, @05:19AM) A man driving a backroad across country came upon a cowboy out driving ca ttle. He stopped, got out, and said to the cowboy, "If I can tell you ho w many cattle you have, would you give me your smallest cow?" Well, why not, give me your estimate," replied the cowboy. "Sir, you have exactly 400 head of cattle," the man said after some conte mplation. "Wow, that's exactly correct," said the cowboy surprised. So, the man wal ked over, picked up his prize and put it in his trunk. The cowboy, conce rned for the animal, asked, "Now, if I can tell you your profession, wou ld you let me win back the animal?" The man, somewhat taken aback, agreed with a chuckle, "Sure." "Sir, you are a consultant," said the cowboy without hesitation. "Well, you came out of nowhere telling me that you could give me an answe r to a question I didn't ask for a price that was over the top," said th e cowboy with a stern look. Tuesday March 30, @02:23PM) In my experience when planning projects there is never ever enough testin g and contigancy time. Managers just seem to cut it out of plans because clients don't like payi ng for it. You usually don't spend weeks testing how the wall interacts with the drywall and foundations. Non IT people just don't understand why code isn't written correctly the first time. Friday November 26, @05:40PM) I think that's exactly the problem with software expectations. They alway s assume that building software is like building a house, or a bridge, o r a toaster. In other words, they always assume that building software i s done by experienced people who've built nearly identical software syst ems before. When an engineer designs and builds a new bridge it is entirely possible that no bridge like it has ever been designed or built before. Sure, the re are some base cases that just get churned out, but there are also big , new, creative designs that occur for bridges. How is that bridge engin eers usually manage to not have their bridges falling down all the time? Well, for starters the designer doesn't run with a "build and test" men tality. There are formal methods for bridge design, and if you assume th e properties of various basic components, there are methods to prove the stability and properties of the bridge. Yes, formal software methods are hard and time consuming compared to just building and testing. Formal bridge design is hard and time consuming c ompared to just building and testing. For some reason we accept that software should be just thrown together ra ther than properly designed and proved. Yes, there are plenty of project s for which the level of formality I'm talking about simply isn't requir ed - that's fine. My point is that there are plenty of projects for whic h the level of formality I'm talking about would be a damn good idea - y et it is never even contemplated let alone used. At worst you should be considering some level of formality for just those components of your sy stem that are most critical. Frida y March 25, @09:43AM) 95 per cent of information technology groups "are not delivering some num ber of projects on time or to the full satisfaction of the business exec utive." Could it be that marketing is always overselling the product? well, you need to include feature X because we told c ustomer Y we already had that feature". This is often followed up by the engineer muttering under his/her breath "Dumb jock. So, this is another example of why pre-announcing products is a baaaaad i dea. Treat your customers with honesty and announce the product when it is ready and not before. Again, this is why vaporware only serves to irr itate your customers and build expectation of a product that is not alwa ys delivered. I also believe the fundamental problem is that managers these days (in ma ny cases) no longer come from the ranks and are not engineers. So, they do not always understand what is involved in 1) building the codebase 2) testing code base 3) proper interface design 4) end user testing 5) doc umentation 6) making sure it does not suck. The last point is where most executives seem to get hung up. More often t han not in most companies, executives really have no idea of what makes good code and all too often, what makes a good product. Come on now, a g ood portion of executives can barely use their personal computers to ans wer email or browse the Internet. When you have companies run by executi ves and managers that have come up through the ranks, you are much more likely to get quality which often is much more important than meeting an arbitrary deadline. NO SALESPERSON should EVER be allowed t o sell this without taking a month long training course about what it ac tually does. I can't count the number of times customers were expecting 100% accuracy because thats what the salesman sold them. I'm working on a project right now (software is installing as I type this ) where I'm supposed to migrate an existing web server to a new datacent er accross the country. The PM's take on the whole thing was "All you have to do is:" - Load the software on the new server. And now, as far as upper management is concerned, I'm the one that is beh ind schedule... ca/) I recall when I was working Tech Support for a company, hearing a Sales d weeb asking one of the programmers "Do you remember that utility program you mentioned to me? I hope its available because I just sold it to a c ustomer." The utility program mentioned supported one of our products and was for i nhouse use only. It had been whipped up quickly in the devs spare time, had no documentation, no time spent on QA, was not an official product o f the company, and had a completely unfriendly UI because the dev had de veloped it piecemeal for his own use. Needless to say once it had been * sold* to a customer as a feature that attracted their interest enough to purchase our product, it became an official product and was quickly rew ritten to be more presentable, but that developer told me he would *neve r* mention anything to a sales guy again because they couldn't be truste d I have seen sales people sell a product based on a feature that they assu red the customer the product offered, then once the phone call was done and the sale completed, checked with Tech Support to see if it actually did offer the feature they sold it based on. But now I've been dating a salesperson for a couple of years and I t hink that I see what the problem is. They don't care if there's a market for the product or if c ompanies have already set their budgets or whether the buying market is just soft for some other reason. But then her job gets threatened unless she hits "her" numbers. They really aren't her numbers - they are her m anager's number divided by the number of people he manages. Now it's not all his fault of course - he has a manager too who is doing the same th ing to him. Usually, it's because the board of directors has written a clause into a CEO contract that says that if he hits certain numbers, then it triggers a stock grant or a bonus. The board has the shareholders wanting big returns so they are pushing too - the b oard members have a financial stake in the company too of course. And th en you have the analysts who give everyone in charge an incentive to say that growth is going to be high so that they can offer a "buy" rating. But none of these people actually have to do any of the sales calls. So from the developers po...