저는 이런 직장에서 일합니다.

처음 입사하고 코드를 봤을때의 당혹감.
숱하게 노력을 해봐도 고쳐지지 않는 구멤버의 고집과 이해할 수 없는 코딩세계.
'그래.. 쭉 하던 프로젝트니까 새 프로젝트에서는 확실히 제대로 시작하자..'
하드웨어부터 기존과는 판이하게 다르게 구성하고 시작했는데도, 전혀 고쳐지지 않고 오히려 최악 + 최악 이 되어가고 있습니다.

너의 노력이 부족했느니라.. 라고 말씀하셔도 어쩔 수 없습니다. 여기서 더 노력하는건 제 능력 밖입니다. 1년하고도 반이 지났다고요!! OTL

이런코드가 삽입되어 있었습니다.
735 unsigned char camera_num;
736 unsigned char temp = 0;
737
738 temp = 0x01;
739
740 temp = temp&0x0f;
741
742 if(temp!=0) temp--;
743 else temp = 0x0f;
744
745 temp |= 0x80 ;
746
camera_num = temp ;


이렇게 바꿨습니다.
unsigned char camera_num = 0x80;

띄워쓰기나 들여쓰기 같은걸 나무랄 수준이 아닙니다. 저 코드는 어떤 함수의 몸뚱아리 시작부분에서 바로 긁은 것입니다.

이건 grep 때린거라 컬러링이 안되지만.. 이런 짓도....

_sources/ksr2000app/SMTPServerSetting.cpp:20: system("mkdir /root/smtp");

_sources/SR2App.cpp:1214: system("yes | rm /var/run/ksr.pid");
_sources/SR2App.cpp:1243: system("yes | cp -f /KDB/temp/DATA/ExternalStorages.dat /boot/");
_sources/SR2App.cpp:1244: system("yes | cp -f /KDB/temp/DATA/StorageInfo.dat /boot/");
_sources/SR2App.cpp:1245: system("yes | cp -f /boot/HDD_SERIAL_NEW /boot/HDD_SERIAL_OLD");
_sources/SR2App.cpp:1246: system("yes | cp -f /boot/MACADDR /boot/MACADDR_OLD");
_sources/SR2App.cpp:1247: system("yes | cp -f /boot/MACADDR /KDB/temp/DATA/");

_sources/SR2App.cpp:3419: system("echo /etc/init.d/network start");
_sources/SR2App.cpp:3420: system("/etc/init.d/network start");
_sources/SR2App.cpp:3437: system("echo pa");
_sources/SR2App.cpp:3438: system("pa");
_sources/SR2App.cpp:3440: system("echo adsl &");
_sources/SR2App.cpp:3441: system("adsl &");
_sources/SR2App.cpp:3448: system("echo ifdown eth0");
_sources/SR2App.cpp:3449: system("ifdown eth0");

_sources/ThreadEmailMgr.cpp:160: system("rm -f /KDB/temp/EmailJpeg/*");

ksr_base_bt/_sources/display/SystemManageNetDlg.cpp:328: rtn = system("ping -c 1 -w 3 www.microsoft.com"); // www.microsoft.com

어플리케이션 파트에 똘똘한 신입친구가 격무에 시달리면서도 짬을 내가면서 많이 고쳐놓은건데도 말도 안되게 많이 남아 있습니다. 고칠 시간도 주지도 않고, 아니 고칠 생각이 전혀 없는듯해요...

지금은 보이지 않는데 심지어 이런 코드도 있었죠..

system ("cd ..");

-0-!!!!!

그리고 저런 sense 로 'df'를 system (3) 함수를 호출해서 하드디스크 남은 공간을 체크하는 코드가 있었는데,
그 코드가 1394 장치에 4096 짜리 unsigned char 버퍼를 쓸 때마다 검사하고 있었던 적도 있지요.

백업할 전체 데이터에서 4096b씩 읽어서........
fd에 쓰고 저 지랄 해서 백업 완료까지 퍼센티지를 보여주는!!

write 하는 loop 에다가 그 지랄을 하고 있었죠.
그래놓고 하는 말이 OS팀이 개판이라서 1394 속도가 안나온다나..
1394가 아니라 완전히 플로피 수준이었는데 팔고 있었습니다.....

아.. 심지어 그 루프 바로 바깥에서 백업할 전체 용량 계산이 이미 끝나서 변수에 고스란히 담겨 있는 상황이었습니다.

하긴... 저 같은 하수가 살짝 건드려서 무려 10,000 (일만) 배나 퍼포먼스가 향상된적도 있었는걸요... (먼산)

아무리 노력해도 바꿔지지가 않아요. 정말 이런데 다니기 힘듭니다... ;ㅁ;

꼬리) 쪽팔려서 공개할까 말까 고민하다고 올립니다. 비웃지말아주세요.. (덜덜)

Posted by 스카리

2006/03/15 13:33 2006/03/15 13:33
Response
44 Trackbacks , 11 Comments
RSS :
http://scari.net/rss/response/9

Trackback URL : http://scari.net/trackback/9

Trackbacks List

  1. Hyperkalemia caused by aldactone.

    Tracked from Aldactone. 2008/10/11 07:36 Delete

    Drug interactions with aldactone. Aldactone. Online pharmacy aldactone. Hyperkalemia caused by aldactone. Aldactone and dogs. Problems with aldactone.

  2. Effectiveness of clarinex.

    Tracked from Clarinex-d. 2008/10/11 08:35 Delete

    Clarinex. Clarinex or allegra. Clarinex sped dose. What is clarinex-d.

  3. Online vicodin.

    Tracked from What is vicodin. 2008/10/11 12:22 Delete

    Darvocet vs vicodin. Vicodin no prescription. Vicodin. Difference between vicodin and lortab. Dangers of vicodin. Vicodin no rx.

  4. Half life of percocet.

    Tracked from Percocet addiction recovery. 2008/10/13 10:03 Delete

    Canadian prescritions and percocet. Percocet without a prescription cheap. Will percocet show up in a drug test. Order percocet online. How to extract oxycodone from percocet. Therapeutic range for percocet.

  5. Adderall xr.

    Tracked from Adderall. 2008/10/13 22:03 Delete

    Buy adderall without a prescription. Adderall. Side effects of adderall.

  6. Coreg pdf form.

    Tracked from Coreg. 2008/10/15 04:20 Delete

    Coreg side effects. Coreg and petechiae. Coreg.

  7. Clomid and pcos.

    Tracked from Purchase clomid online. 2008/10/15 04:41 Delete

    Intercourse on clomid. Clomid babies. When do you ovulate on clomid.

  8. How can i lose the weight i gained on nexium.

    Tracked from Nexium reactions. 2008/10/17 03:25 Delete

    80 mg nexium dose. Nexium side effects. How can i lose the weight i gained on nexium. Generic nexium. Nexium.

  9. Protonix.

    Tracked from Protonix drug guide. 2008/10/17 03:28 Delete

    Protonix.

  10. Synthroid.

    Tracked from Synthroid. 2008/10/17 15:56 Delete

    Buy synthroid online.

  11. Protonix used for.

    Tracked from Protonix. 2008/10/17 16:00 Delete

    Protonix.

  12. Doxycycline.

    Tracked from Doxycycline. 2008/10/18 05:02 Delete

    Doxycycline.

  13. Topamax.

    Tracked from Topamax. 2008/10/18 05:02 Delete

    Topamax.

  14. Acomplia.

    Tracked from Acomplia. 2008/10/18 18:31 Delete

    Acomplia.

  15. Protonix.

    Tracked from Protonix. 2008/10/18 18:31 Delete

    Protonix.

  16. Synthroid tolerance.

    Tracked from Synthroid plus cytomel. 2008/10/19 03:31 Delete

    Synthroid side effects. Synthroid litigation. Synthroid. Synthroid and adderall combination.

  17. Celebrex rebate coupon.

    Tracked from Celebrex side effects. 2008/10/19 03:34 Delete

    Celebrex medication box. Celebrex. Celebrex 200mg dosage. Denver celebrex lawyers. Side effects of celebrex. Celebrex 200mg.

  18. Side effects of the drug topamax.

    Tracked from Topamax weight loss. 2008/10/19 16:04 Delete

    Taking topamax and still hungry. Topamax contraindications. Topamax how long to work eating disorder. Topamax. Binge eating topamax.

  19. Lexapro.

    Tracked from Does lexapro cause infertility. 2008/10/19 16:08 Delete

    Lexapro. Lexapro focalin xr.

  20. Suicide with soma how many does it take.

    Tracked from Soma muscle relaxant. 2008/10/20 04:31 Delete

    Soma side effects. Soma san diego.

  21. Paxil 25 mg.

    Tracked from Paxil. 2008/10/20 04:34 Delete

    Paxil 25 mg. Paxil anxiety medication.

  22. Reaction to zithromax.

    Tracked from Zithromax com. 2008/10/20 17:06 Delete

    Zithromax dose recommendations. Serious reaction to zithromax. Zithromax. Zithromax 250mg. Zithromax z-pak.

  23. Cipro.

    Tracked from Cipro. 2008/10/20 17:09 Delete

    Cipro xr drug interaction. Cipro xr 500mg. Buy generic cipro. Cipro antibiotic. Cipro. Cipro used for sinus infection. Buy cipro xr.

  24. Cipro and valium.

    Tracked from Cipro dosing. 2008/10/21 05:47 Delete

    Cipro fish pond filter. Does cipro cure clymedia. Cipro flatulence. What is cipro used for. Cipro.

  25. Soma overnight.

    Tracked from Soma cubes. 2008/10/21 05:51 Delete

    Fatal dose of soma carisopradol. Prescription drug called soma. Soma next day delievery. Soma to florida. Soma. Buy soma online. Drug soma.

  26. Cash loan secured with a vehicle title.

    Tracked from Quick cash payday loan utah. 2008/10/21 13:52 Delete

    Cash loan utah. Cash loan oregon. Cash advance loan illinois. Cash advance loan oregon. Alaska cash fast loan. Student cash loan. Fast cash loan utah.

  27. Cutting topamax tablets.

    Tracked from Topamax weight loss. 2008/10/21 19:16 Delete

    Topamax. Topamax weight loss.

  28. Payday loan wisconsin.

    Tracked from Faxless payday loan. 2008/10/21 19:21 Delete

    Payday loan. California payday loan laws.

  29. Celexa weight loss.

    Tracked from Celexa and alcohol. 2008/10/21 19:21 Delete

    Depression celexa zoloft. Celexa and alcohol. Celexa and nsaids. Celexa weight loss. Celexa. Celexa anxiety.

  30. Oregon state payday loan laws.

    Tracked from Payday loan chandler az. 2008/10/21 20:04 Delete

    Fast cash advance payday loan.

  31. Phentermine.

    Tracked from Phentermine no prescription. 2008/10/22 06:14 Delete

    Cheap phentermine. Phentermine. Order phentermine online. Phentermine side effects. Phentermine line. Phentermine cod.

  32. Aciphex side effects.

    Tracked from Aciphex. 2008/10/22 08:12 Delete

    Aciphex.

  33. Weight gain and nexium.

    Tracked from Side effects of nexium. 2008/10/22 08:16 Delete

    Stomach health nexium. Nexium and weight gain. Nexium coupons. How can i lose the weight i gained on nexium. Nexium side effect diarrhea. Nexium. Nexium vs. protonix.

  34. Buy tramadol.

    Tracked from Buy tramadol. 2008/10/22 11:50 Delete

    Tramadol overdose. Tramadol. Tramadol 100mg.

  35. Xanax.

    Tracked from Xanax. 2008/10/22 16:16 Delete

    Xanax.

  36. Cheap tramadol.

    Tracked from Cheap tramadol. 2008/10/22 16:49 Delete

    Tramadol prescription. Cheap tramadol. Buy tramadol. Tramadol.

  37. Cheap valium.

    Tracked from Valium. 2008/10/22 20:22 Delete

    Buy valium c.o.d.. Valium and internet. Vicodin and valium mix. Valium liquid form. Valium.

  38. Side effects of levaquin.

    Tracked from Toxicity levaquin ibuprofen. 2008/10/22 20:25 Delete

    250mg levaquin.

  39. Acomplia.

    Tracked from Acomplia. 2008/10/22 20:25 Delete

    Acomplia. Acomplia rimonabant zimulti. Purchase acomplia rimonabant.

  40. Buy tramadol.

    Tracked from Tramadol. 2008/10/23 05:34 Delete

    Buy tramadol. Tramadol.

  41. Xanax cocktail.

    Tracked from Xanax. 2008/10/23 05:51 Delete

    Buy xanax. Xanax online without prescription. Buy xanax online. Xanax 2 mg 180 pills. Cheap generic xanax 2mg bars. Xanax. Geniric xanax. Xanax side effects.

  42. Celexa.

    Tracked from What are the uses for celexa other than depression. 2008/10/23 08:49 Delete

    Lexapro vs. celexa. Celexa dosage. Celexa. Ssri and celexa and weening. Celexa side effects.

  43. Ultram.

    Tracked from Ultram. 2008/10/23 08:52 Delete

    Ultram. Ultram gc ms. Ultram addiction. Side effects of ultram.

  44. Payday advance loan utah.

    Tracked from Payday loan poulsbo. 2008/10/24 05:57 Delete

    Top ten payday advance loan. Payday advance loan.

Comments List

  1. 골빈해커 2006/03/15 13:41 # M/D Reply Permalink

    위의 예는 만드신 분이 Geek 코드를 좋아하시는 분이 아닐까요?;;
    위나 아래 예는 저도 많이 하는 짓인데(;;;)

    1. 스카리 2006/03/15 15:03 # M/D Permalink

      Geek을 좋아하는 사람이었으면 얼마나 좋을까요. 저도 한 Geek 하는 사람인데 말이죠... ( '')
      그나저나 골빈해커님 여기까지 왕래해주시다니 몸둘 바를 모르겠습니다요 흐흐

  2. 우현 2006/03/15 20:36 # M/D Reply Permalink

    푸푸.... 재밌는 코드네. 여기에서 저런 코드가 눈에 띄었다가는 비오는날 먼지나게 맞고도 더 두들겨 맞을만한 코드군...

  3. 우현 2006/03/15 20:38 # M/D Reply Permalink

    근데 마지막에 // www.microsoft.com 은 왜 주석으로 달았을까? 게다가 왜 ms서버에 ping을 보내는걸까? 궁금궁금~

    1. 스카리 2006/03/15 21:01 # M/D Permalink

      으음.. 말하기 부끄러운데... 네트웍이 살아있는지 죽어있는지 체크하는 코드라고 합니다. ms 말고 yahoo, kornet 으로도 뿌려요 -ㅁ-
      근데 사실 저도 네트웍이 죽었는지 살았는지 어떻게 체크해야될지 모르겠어요. 게이트웨이까지만 갔다오는걸로 했었는데, 답이 아닌거 같아서 그냥 방치하고 있어요;;;

  4. 바나나우유 2006/03/16 08:34 # M/D Reply Permalink

    네트웍이 살아있는지 저렇게 검사하는군 ㅡ.,-

    1. 스카리 2006/03/16 13:26 # M/D Permalink

      좋은 방법이라도 있냐? 좀 알려주라. 난 arping 쏘는걸로 하다가 뺀지먹고 접었다.

  5. Renn 2006/03/16 11:05 # M/D Reply Permalink

    첫번째 예제 코드야말고 이 세상에서 가장 아름다운 코드가 아닌가!
    저런 코드는 난생 처음본단 말이야.
    대단해...
    만든 사람이 존경스러워.
    우리 회사로 스카웃 하고싶어! +_+
    (아 물론 개발팀은 아니고...)

    1. 스카리 2006/03/16 13:26 # M/D Permalink

      제발 데려가... 제발 플리즈 오네가이~

  6. MrGeek 2006/03/18 22:06 # M/D Reply Permalink

    스카리 06/03/15 15:03 X
    Geek을 좋아하는 사람이었으면 얼마나 좋을까요. 저도 한 Geek 하는 사람인데 말이죠... ( '')
    그나저나 골빈해커님 여기까지 왕래해주시다니 몸둘 바를 모르겠습니다요 흐흐
    ------------------------------------------------------
    훈훈한 답변

  7. jaehyun 2008/04/16 09:42 # M/D Reply Permalink

    못보던 코드네요ㅎ; 저는 리눅스 하구싶었는데, 안시켜줘서 못했어요ㅎ;

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 168 : 169 : 170 : 171 : 172 : 173 : 174 : 175 : Next »

블로그 이미지

어렵지 않아.

- 스카리

Archives

Authors

  1. 스카리

Calendar

«   2008/11   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

Site Stats

Total hits:
196638
Today:
110
Yesterday:
195