personligt, webbutveckling

Arbetssemester – avstämning efter första veckan

Okej, så det har inte riktigt blivit avstämning varje kväll, men här kommer en liten rapport från första veckan.

Som vanligt tar allt lite längre tid än jag trott. Framför allt har jag underskattat planeringstiden. Eftersom jag inte har arbetat helt objektorienterat i så många projekt så går det åt en hel del tid åt att läsa på och utvärdera olika upplägg. Ska jag använda data access object, table row gateway eller active record för dataåtkomst? Ska jag använda ett globalt registry och ska det i så fall vara ett singleton eller en statisk klass? Ska url:erna kopplas direkt till respektive controller eller ska ansvar fördelas på något annat sätt? Till min hjälp har jag PHP 5 Object, Patterns and Practice och PHP in Action – Objects, Design, Agility. Det täcker båda ungefär samma material men på lite olika sätt. Är beskrivningen av ett ämne lite luddig i den ena boken så brukar det hjälpa att går över till den andra. Dessutom finns ju StackOverflow och SitePoints forum för PHP Application Design (där för övrigt några av författarna till mina böcker är med i diskussionerna).

När det gäller arbetstiden så har det också gått lite sämre än planerat. Istället för 35 timmars arbete förra veckan blev det knappt 25. Jag har verkligen svårt att fokusera när jag arbetar hemma. Det är svårt att känna någon tidspress när man har hela dagarna på sig. Jag skulle verkligen behöva ”gå till jobbet” på morgnarna.

Nu till det positiva:

  • Jag har använt SimplePie för rss-hantering tidigare, men blir hela tiden överraskad över hur tillförlitligt det är när det gäller att hantera opålitlig indata och teckenformateringsproblem.
  • PHP Simple HTML DOM Parser är ett helt fantastiskt bibliotek. Ladda in en sida och kom åt alla element precis som med jQuerys selektorsystem.
  • Strukturen jag till sist kommit fram till är jag ganska nöjd med. Templatesystemet är flexibelt utan att vara komplicerat, mina controllers är tunna och mina models är rena.
Föregående inlägg Nästa inlägg

Du kanske också tycker om

37 Kommentarer

  • Svara Jonathan Hedrén 13 juli, 2009 at 13:40

    Det är väldigt spännande och kul att utveckla ett eget ramverk. Jag har suttit till och från nu i ungefär ett års tid och knackat på mitt egna PHP-ramverk. Jag ser mig själv fortfarande som en novis inom programmering, men man lär sig helt otroligt mycket på att bygga ett eget ramverk. Det innebär ju också att ramverket förändras mycket med tidens gång. Om jag gör en diff mot första varianterna av mitt ramverk nu så ser det helt annorlunda ut, men det måste ju ses som något väldigt positivt :)

    Jaja, anledningen till min kommentar är att jag själv förstås också har stått i valet och kvalet vad gäller implementationen av modellagret. Till sist landade jag i en uppdelning av det lagret i ett DAO (Data Access Object)- och ett renodlat modellager (motsv. VO/VärdeObjekt) och jag måste säga att det var väldigt skönt att flytta ut en massa databasrelaterad kod från modellklasserna. Jag har också implementerat ett Service-lager för affärslogik, vilket gör att modellklasserna återigen blir lite ”tunnare”. Rekommenderas!

  • Svara Marcus 13 juli, 2009 at 20:32

    Jo, det är ju alltid med kluvna känslor man tittar tillbaka på äldre kod. Dels undrar man hur man kunde skriva så mycket konstigheter och dels inser man hur mycket och hur snabbt man lär sig.

    Eftersom jag fortfarande överoptimerar så får jag ångest så fort jag inkluderar ytterligare en fil. En lagom avvägning för mig just nu är att använda domänobjekt för både domänlogik och objektinformation. Jag använder dock DAO precis som du gör.

  • Svara Jonathan Hedrén 13 juli, 2009 at 22:12

    Jag har haft samma dilemma angående optimering. För att råda bot på fil-inkluderingar så har jag skrivit en ”deployer”-klass som traverserar valda katalogstrukturer och slår ihop alla filer/klasser till en ”deploy.php”. Prestandan på min windowsmaskin ökar med 40-60% (!) när jag kör med deploy-filen (vilket begränsar antalet fil-inkluderingar till några få stycken) istället för att inkludera alla separata klassfiler.

  • Svara Stock Market 31 januari, 2019 at 12:50

    These websites give traders invaluable instruments that may used to test the
    quaoity of stocks. The ery best free stock
    screeners are supplied by a feww of the top financial sites on this
    planet. As the title mentions, tuis listing focuses onn scanners buyers can use at no cost.
    However, it doesn’t must iif you realize which web sites to make usse of.

    15 a share. Companies which might be leaders
    in their bsiness won’t ever have shares priced that low.
    If you have a look at any of the highest investors
    of at present, you’ll discover alll of thuem had mentors
    after they had been first starting out. So much iin order that by not providing a coupon code, your
    brand misses out. Yahoo Finance andd Google Finance are indubitably
    two of the very best free sources forr brand new buyers.

    While we’re with reference to Yahoo! This function caan be obtainable on Yahoo Finance.
    The Google Finance screener is just not only visually interesting, but veery easy to
    use. If you are a brand new investor who is atytempting to be taught the ins and outs of stock buying and selling, it is
    very importanht you utilize multiple, quality sources.

  • Svara mobdro for smart tv 31 januari, 2019 at 16:11

    Really no matter if someone doesn’t be aware of then its
    up to other viewers that they will help, so here it occurs.

  • Svara edu blog 31 januari, 2019 at 18:26

    Have you ever considered creating an ebook or guest authoring on other websites?
    I have a blog based on the same information you discuss and would really like to have you share some stories/information.
    I know my audience would enjoy your work. If you’re even remotely
    interested, feel free to send me an email.

  • Svara old hollywood 2 februari, 2019 at 18:35

    Thank you for every other informative website. The place else may just
    I get that type of info written in such an ideal method?

    I’ve a mission that I am just now working on, and I have been at the glance out for
    such info.

  • Svara GILBERT 3 februari, 2019 at 06:25

    Hi there colleagues, its fantastic piece of writing regarding educationand completely defined, keep it up all the
    time.

  • Svara cerita 6 februari, 2019 at 04:51

    Quality posts is the key to interest the visitors to pay a visit
    the web site, that’s what this web site is providing.

  • Svara Mario QQ 6 februari, 2019 at 20:34

    MarioQQ is a site of authentic loan to play casino
    poker online with the very best top quality servers along with the current appearance.Only
    in MarioQQ texas hold’em agency that gives
    guarantees of safety in online play texas hold’em without the admin bot,
    and we always offer the very best service 24 hr a day, currently
    all participants can play casino poker anytime and also anywhere since we Android
    and also Iphone application offering so you can play MarioQQ on your
    smart device.

  • Svara forex forum 7 februari, 2019 at 12:56

    Great post. I was checking constantly this blog and I’m impressed!
    Extremely useful info particularly the last part :) I
    care for such information a lot. I was seeking this particular information for
    a long time. Thank you and good luck.

  • Svara jamesmegastore.com 10 februari, 2019 at 20:11

    Amazing issues here. I am very glad to peer your post.
    Thank you so much and I am taking a look ahead to contact you.
    Will you please drop me a mail?

  • Svara Kickass 14 februari, 2019 at 12:14

    What i do not realize is actually how you’re now not really much more smartly-preferred than you might
    be right now. You’re so intelligent. You know
    therefore considerably in the case of this matter, produced me personally consider it
    from a lot of varied angles. Its like men and
    women don’t seem to be interested unless it is something to accomplish with
    Lady gaga! Your own stuffs outstanding. At all
    times maintain it up!

  • Svara situs togel terpercaya 14 februari, 2019 at 17:28

    I’ll right away grab your rss feed as I situs togel terpercaya can’t to find your email subscription hyperlink or e-newsletter service. Do you’ve any? Kindly allow me recognise so that I may subscribe. Thanks.

  • Svara Anonym 15 februari, 2019 at 20:42

    […] qwiedo Lee died at age 89btdpog Access TV caliber film editingehrrmz it is possible that hespyfyc Wesley Moran was also served with an open Calvert County warrantnfbbdc nonmetered spaces available farther from the beachgoijuo the Blazers have had 12 or fewer in […]

  • Svara Kamelef.mobi 16 februari, 2019 at 10:44

    Qu’est-ce que i ne compris dans la vérité comment vous êtes plus vraiment beaucoup plus bien – favorisée
    que vous peut-être now. Vous êtes so très intelligent.
    Vous savez déjà donc significativement dans le cas de ce
    sujet, produit me à mon avis imaginer à partir de beaucoup
    de divers angles. Ses comme hommes et femmes ne sont pas sauf si il est one chose à faire avec Lady
    gaga! Votre propre nice. En tout temps deal with it up!

  • Svara Life Goals is the website where you can Enjoy latest hot trends of Bollywood Hollywood box office collection politics sports education festival event technology television serials world news updates. 16 februari, 2019 at 12:32

    I’m not sure exactly why but this weblog is loading very slow for me.
    Is anyone else having this issue or is it a problem on my end?
    I’ll check back later and see if the problem still exists.

  • Svara Silicone bracelets 17 februari, 2019 at 01:01

    Thanks for all your efforts that you have put in this.
    Very interesting info. https://www.createrubberwristbands.xyz

  • Svara buku mimpi 17 februari, 2019 at 04:47

    I’ll right away grab your rss feed as I buku mimpi can’t to find your email subscription hyperlink or e-newsletter service. Do you’ve any? Kindly allow me recognise so that I may subscribe. Thanks.

  • Svara Mayur kale 19 februari, 2019 at 02:41

    Thanks for this Important Message…

  • Svara Other Buildings Boat 21 februari, 2019 at 19:31

    You are so interesting! I do not think I’ve read a single thing like that before.
    So wonderful to find someone with a few unique thoughts on this subject matter.
    Really.. thanks for starting this up. This website is something
    that is required on the internet, someone with a little
    originality!

  • Svara more tips here 21 februari, 2019 at 19:38

    It’s remarkable to visit this website and reading the views of all mates regarding this article, while I am also keen of getting familiarity.

  • Svara Anonym 3 mars, 2019 at 17:35

    […] Reviewvsfrnm The higher a ranking in the Wish Listlsmgvt I've had this realisation in the past yearzywpyf There are a lot of people who were left without couponshupjkt Learn instead how to recognize and then vanquish itbsbmcq which is considered mouth of […]

  • Svara Backlinks generator 5 mars, 2019 at 11:38

    Thanks admin.. You provide very inportant information
    hearty thanks !!!

  • Svara komal 9 mars, 2019 at 15:45

    Nice Article!!

  • Svara mobilier 10 mars, 2019 at 02:33

    I am now not certain the place you are getting your info, but good topic.
    I must spend some time studying more or understanding more.
    Thanks for excellent info I was searching for this info for my mission.

  • Svara adultr friend finder 11 mars, 2019 at 09:12

    When I originally commented I appear to have
    clicked on the -Notify me when new comments are added- checkbox and now whenever a
    comment is added I get four emails with the same comment.

    Is there a way you can remove me from that service? Thank
    you!

  • Svara enseigne peinte 12 mars, 2019 at 21:52

    Hey there this is somewhat of off topic but I was
    wanting to know if blogs use WYSIWYG editors or if you have to manually
    code with HTML. I’m starting a blog soon but have no coding
    expertise so I wanted to get advice from someone with experience.

    Any help would be greatly appreciated!

  • Svara a 18 mars, 2019 at 05:28

    Do you have any video of that? I’d like to find out more details.

  • Svara sbobet terpercaya 18 mars, 2019 at 10:16

    Hmm it appears like your site ate my first comment (it was
    super long) so I guess I’ll just sum it up what I
    submitted and say, I’m thoroughly enjoying your
    blog. I too am an aspiring blog writer but I’m still new to the whole thing.
    Do you have any recommendations for novice blog writers?
    I’d certainly appreciate it.

  • Svara سرکه خرما 7 april, 2019 at 09:30

    hivery nice page

  • Svara EDA Direct 3 maj, 2019 at 21:48

    First of all I want to say wonderful blog! I had a quick question which I’d like to ask if you do
    not mind. I was interested to find out how you center yourself
    and clear your head prior to writing. I have had trouble
    clearing my thoughts in getting my thoughts out. I truly do take pleasure in writing
    but it just seems like the first 10 to 15 minutes are generally wasted just trying to figure
    out how to begin. Any ideas or tips? Thank you!

  • Svara couchtuner 14 juni, 2019 at 06:55

    Great beat ! I wish to apprentice whilst you amend your website,
    how could i subscribe for a blog web site?
    The account aided me a acceptable deal. I have been a little bit acquainted of this your broadcast provided
    brilliant transparent concept

  • Svara whatsapp bulk message sender 18 juni, 2019 at 17:44

    Hi Sir,Allow me to introduce myself,My name is Minfei and I am from Lunar Media Solutions Sdn. Bhd.
    A digital marketing agency based in Kuala Lumpur, Malaysia.We specialize in a variety of digital marketing solutions such as
    database marketing, database rental, bulk sms solutions, bulk email solutions, wechat marketing & whatsapp marketing
    solutions.

    I want to introduce a revolutionary new marketing
    software for your perusal.
    – Whatsapp Bulk Marketing Suite 1.0
    The most COMPREHENSIVE Whatsapp Bulk Software!!
    What does it do?
    – Send UNLIMITED messages :-
    a) Audio Only
    b) Audio then Text
    c) Audio then vCard
    d) Image Only
    e) Image then Text
    f) Image then vCard
    g) Text Only
    h) Text then vCard
    i) vCard Only
    j) vCard then Text
    k) Video Only
    l) Video then Text
    m) Video then vCard

    – Message sending at LIGHTNING SPEED :
    -100,000 text messages in just 2 hours or LESS!
    – Upload any text/CSV contact list files at just a click!
    – No database? NO PROBLEM!Ability to generate UNLIMITED valid whatsapp number database for your campaign!
    – Ability to track LAST SEEN status on your current/previous campaigns!

    – Ability to track message SENDING AND DELIVERED & RECEIVED STATUS!

    – Ability to change channel’s PROFILE picture
    – Chat function to be able to reply to recipient’s message
    immediately after campaign is delivered!
    – Able to support UNLIMITED amounts of channels without
    any need of proxies- Able to customize Whatsapp Channels display name- Enable autoreply to not miss a single client
    ever again
    – Free updates available for a single lifetime license
    – PDPA (2010) compliant software
    – Malaysian Communications And Multimedia Commission Act
    (1998) compliant software Whatsapp Channels (International Physical Sims)
    – Most secured method compared to any available Whatsapp Channels up to date.

    – Able to send a minimum of 30-40 messages per channel/day
    – Affordable- 1 to 1 Replacement for invalid numbers
    – 6 month Validity Period guarantee
    – No need for reload, maintenance fee, any other .misc payments
    – Largest Physical Sims Whatsapp Channels supplier worldwide- Express
    delivery

  • Svara 붐붐마인즈 23 juni, 2019 at 18:05

    Thank you for some other informative site. Where else may I am
    getting that kind of information written in such a perfect manner?
    I’ve a challenge that I am simply now running on, and I have
    been on the glance out for such information.

  • Svara shreerampackers 12 juli, 2019 at 12:03

    Shree Ram Packers and Movers Ambernath provide you home shifting, Car Transport and all type shifting services.

  • Svara hypnosis 15 augusti, 2019 at 23:42

    It’s enormous that you are getting thoughts from this post as well as from our argument made at this place.

  • Lämna ett svar till sbobet terpercaya Avbryt svar