<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muhammed Kadir TAN on Medium]]></title>
        <description><![CDATA[Stories by Muhammed Kadir TAN on Medium]]></description>
        <link>https://medium.com/@muhammedkadirtan?source=rss-78e9cb9dac5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tZP4-Lmv8ff2YH7P</url>
            <title>Stories by Muhammed Kadir TAN on Medium</title>
            <link>https://medium.com/@muhammedkadirtan?source=rss-78e9cb9dac5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 23:39:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhammedkadirtan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reduce Network Usage — With This 1 Simple Trick!]]></title>
            <link>https://medium.com/@muhammedkadirtan/reduce-network-usage-with-this-1-simple-trick-292d8c41ebaf?source=rss-78e9cb9dac5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/292d8c41ebaf</guid>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[network-optimization]]></category>
            <category><![CDATA[network-compression]]></category>
            <dc:creator><![CDATA[Muhammed Kadir TAN]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 04:36:01 GMT</pubDate>
            <atom:updated>2023-03-27T04:36:01.357Z</atom:updated>
            <content:encoded><![CDATA[<h3>Reduce Network Usage — With This 1 Simple Trick!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYABag00AhkvBgPTepoarw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@helloimnik?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nik</a> on <a href="https://unsplash.com/photos/vbFC9BCo95M?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Making efficient use of the network is essential.</p><p>Efficient applications work faster and smoother, even in low network conditions.</p><p>Efficiency can be achieved in two stages:</p><p>You might not want to mess with the design part if the application is already designed and actively running.</p><p>Then, there is this approach with application development: <strong>you should not optimize early.</strong></p><p>Runtime optimizations can reduce network usage to a desired level. If that is the case, optimizing the design can be considered an <strong>early optimization.</strong></p><p>Design time optimizations for network usage relate to the overall design of how the application interacts with network resources.</p><p>For example, using GraphQL can reduce network usage for many applications. The reason is, GraphQL allows applications to fetch only the required amount of data and nothing else.</p><p>Some applications access the backend via BFF — * <a href="https://blog.bitsrc.io/bff-pattern-backend-for-frontend-an-introduction-e4fa965128bf">Backend for Frontend</a>. *This can also help reduce network usage from the application point of view. The BFF can aggregate data from multiple servers and serve it to the application through a single API call.</p><p>These are some of the optimizations you can consider to reduce network usage in the design stage.</p><ul><li>Going beyond the REST, and creating optimized API endpoints</li><li>Keeping request/response schemas as little as possible</li><li>Using efficient data structures — <em>such as protocol buffers</em></li></ul><p>Runtime optimizations relate to the smartness of the applications.</p><p>For example, a <strong>smart application</strong> shouldn’t request the same resource twice. This can be achieved by implementing caching strategies</p><p>Caching is one of the most popular solutions to reduce network usage and network latency as well.</p><p>Despite its popularity, there is no ready-to-go solution for caching. Applications should use the correct caching strategies depending on the use case. In fact, caching is one of the hardest things in software development. Remember the famous quote:</p><blockquote><em>There are only two hard things in computer science: cache invalidation and naming things. — Phil Karlton</em></blockquote><p>With the increasing popularity of reactive programming, there are some clever tricks to reduce the number of network calls.</p><p>For example, imagine the application has a search box that shows the results in real-time. Instead of sending search requests after every time a letter is typed, the applications use a **debounce **operator. Debounce operator sends a search request after the user stops typing.</p><p>Wait, did you make me read the article just to let me know about compression?</p><p>Don’t get frustrated, I have a good reason to do so! Besides, I talk about other things, too. Bear with me 🧸</p><p><strong>You might be using compression wrong.</strong></p><p>Compression is very simple to use because there are already well-known algorithms you can use out of the box.</p><p><strong>The problem is compressing the encrypted data.</strong></p><p>You should <strong>never compress the encrypted data</strong>, because you simply can’t. The compressed data is hardly smaller than the original and the applications waste CPU cycles for compression 😮.</p><p>Instead, you should <strong>always encrypt the compressed data.</strong></p><h4>How to Tell If My Application Make It Right?</h4><p>Simply, toggle the compression on / off and compare the payload sizes. If the payload sizes are very close, then your application probably encrypts first.</p><p>To make comparison easier, I created a small example repository.</p><p>The example uses aes-256-cbc as the encryption method and brotli as the compression algorithm. You can also check the example in <a href="https://github.com/nooptoday/compression-encryption-order">GitHub</a>.</p><pre>[      resource ] http://jsonplaceholder.typicode.com/albums?userId=1<br>[      original ] 816<br>[  encryptFirst ] 746<br>[ compressFirst ] 244<br>[  % difference ] 67.29 reduction<br><br><br>[      resource ] http://jsonplaceholder.typicode.com/albums<br>[      original ] 9333<br>[  encryptFirst ] 7472<br>[ compressFirst ] 1723<br>[  % difference ] 76.94 reduction<br><br><br>[      resource ] http://jsonplaceholder.typicode.com/photos<br>[      original ] 1071472<br>[  encryptFirst ] 820717<br>[ compressFirst ] 98447<br>[  % difference ] 88.00 reduction</pre><p>The reason is simple. Compression algorithms try to represent the same data with fewer bytes.</p><p>They first try to identify repeating patterns or some kind of order in the original data. If the original data contains the word lorem ipsum 5 times, the compressed data replaces all recurring occurrences with references to the first occurrence.</p><p>The responsibility of encryption algorithms is to break recognizable patterns in the original data. They scramble the data so that it can’t be understood by external actors. They create a high entropy representation of the original data, in cryptography terms.</p><p>Essentially, encrypted data loses its recognizable patterns and it becomes harder to compress.</p><p>A real-life equivalent could be a shopping list.</p><p>You can easily remember this list easily because it comes down to:</p><p>But that is not possible with the following list:</p><p>Even though there are the same amount of items in both lists, the second list can’t be compressed. That is what encryption does to compression.</p><p>Check out these articles for further reading:</p><p>As an additional note, there are some security concerns regarding compression. But that is out of the scope of this post.</p><p><em>Originally published at </em><a href="https://nooptoday.com/reduce-network-usage-with-simple-trick/">https://nooptoday.com/reduce-network-usage-with-simple-trick/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=292d8c41ebaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FeathersJS vs NestJS — Compared in 3 Key Areas]]></title>
            <link>https://medium.com/all-about-feathersjs/feathersjs-vs-nestjs-compared-in-3-key-areas-427def783555?source=rss-78e9cb9dac5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/427def783555</guid>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[nestjs]]></category>
            <category><![CDATA[feathersjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Muhammed Kadir TAN]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 22:55:43 GMT</pubDate>
            <atom:updated>2023-03-14T22:55:43.054Z</atom:updated>
            <content:encoded><![CDATA[<h3>FeathersJS vs NestJS — Compared in 3 Key Areas</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H7XFDZ7xJnJcUTJK" /><figcaption>Photo by <a href="https://unsplash.com/@wacalke?utm_source=medium&amp;utm_medium=referral">Mateusz Wacławek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This post originally appeared on <a href="https://nooptoday.com/feathersjs-vs-nestjs/">nooptoday.com</a></p><p><a href="https://blog.feathersjs.com/introducing-feathers-5-the-api-and-real-time-application-framework-101ae2deaaeb">FeathersJS released its 5th major version, a.k.a Dove recently</a>, and I’ve been watching the framework for some time. It is an excellent time to compare two backend framework giants, FeathersJS and NestJS. These are not your “yet another javascript framework” type of framework. They pave the way to backend development in the Node.js environment.</p><p>In my opinion, Node.js provides a very powerful backend software development environment. A typical backend application accepts requests, executes queries on the database, and writes some files to disk. All of these tasks can be handled asynchronously in Node.js, meaning the server can handle many requests at the same time. Even though you can achieve the same or better results in other languages, it is easier to write asynchronous code in Javascript.</p><p>The struggle in the Node.js world is <strong>standardization.</strong> You have too many options to choose from, due to the large number of npm packages and the community size. You can find new javascript framework releases every other week, or someone in the community sharing their way of building applications. Don’t get me wrong, I’m happy to be in such an active community but this is a double-edged sword.</p><p>FeathersJS and NestJS both provide a structure for writing backend applications with their techniques. Both of them are capable of creating the same applications however their style differs a lot.</p><p>In this post, I will be comparing FeathersJS and NestJS from a developer experience perspective on key areas.</p><h3>Application Structure</h3><h3>Application Structure — FeathersJS</h3><p>To create a new FeathersJS application, execute this in your terminal: npm create feathers</p><p>In the application creation process, FeathersJS CLI allows for many customizations such as:</p><ul><li>Use TypeScript or JavaScript</li><li>Use KoaJS or Express,</li><li>Will you build a REST application, Real-time application or all off them</li><li>Which package manager to use npm, yarn, pnpm</li><li>What is your preferred schema definition format TypeBox or JSON Schema</li><li>Which databases will you connect to SQLite, MongoDB, PostgreSQL, MySQL/MariaDB, MicrosoftSQL</li><li>Select authentication mechanisms Email + Password, Google, Facebook, Twitter, Github and Auth0</li></ul><p>FeathersJS application folder structure, automatically generated by CLI:</p><pre>feathers-app/<br>├── config/<br>│   ├── custom-environment-variables.json<br>│   ├── default.json<br>│   └── test.json<br>├── knexfile.ts<br>├── migrations/<br>│   ├── 20230205130353_user.ts<br>│   └── 20230205130403_authentication.ts<br>├── package-lock.json<br>├── package.json<br>├── public/<br>│   └── index.html<br>├── readme.md<br>├── src/<br>│   ├── app.ts<br>│   ├── authentication.ts<br>│   ├── channels.ts<br>│   ├── client.ts<br>│   ├── configuration.ts<br>│   ├── declarations.ts<br>│   ├── hooks/<br>│   │   └── log-error.ts<br>│   ├── index.ts<br>│   ├── logger.ts<br>│   ├── services/<br>│   │   ├── index.ts<br>│   │   └── users/<br>│   │       ├── users.class.ts<br>│   │       ├── users.schema.ts<br>│   │       ├── users.shared.ts<br>│   │       └── users.ts<br>│   ├── sqlite.ts<br>│   └── validators.ts<br>├── test/<br>│   ├── app.test.ts<br>│   ├── client.test.ts<br>│   └── services/<br>│       └── users/<br>│           └── users.test.ts<br>└── tsconfig.json</pre><p>FeathersJS application folder structure allows developers to easily decide where to put new files. It is well-structured and easily recognizable.</p><p>FeathersJS’s preferred style of writing applications revolves around the idea of <strong>services</strong>. If you want to introduce new functionality in your application, you are most likely going to create a new <strong>service</strong> in FeathersJS.</p><p>Other than that, core functionalities such as authentication, routing, logging, and validation are well-defined in FeathersJS. You are very likely to use existing solutions provided by the framework with little configuration.</p><p>One thing that makes FeathersJS special is, it can <strong>generate its client code automatically.</strong> This is a unique feature I’ve never heard before — <em>correct me if I am wrong on this.</em></p><p>Another special feature of FeathersJS is that it has the concept of <strong>channels</strong>. Which allows clients or other servers running your code to get notified about certain events. It is almost an in-app message broker on the server side. I’m not sure about the scalability of channels though! This is a very neat feature considering FeathersJS calls itself: <a href="https://feathersjs.com/">The API and Real-time Application Framework.</a></p><p>Least but not least, you can replace almost all 3rd party npm packages in FeathersJS to your taste. You might want to use another validation library or logging library, BUT you will never want to worry about your HTTP server library. FeathersJS HTTP server works fast and its <strong>performance is not dependent on the underlying HTTP server</strong>, read more about this here: <a href="https://feathersjs.com/guides/whats-new.html#lightning-fast-routing">Lightning Fast Routing</a></p><h3>Application Structure — NestJS</h3><p>To create a new NestJS application, execute this on your terminal: nest new my-project</p><p>NestJS doesn’t provide many customizations through CLI but it has guides for customizations such as switching HTTP adapters.</p><p>NestJS application folder structure, automatically generated by CLI:</p><pre>nest-app/<br>├── README.md<br>├── nest-cli.json<br>├── package-lock.json<br>├── package.json<br>├── src/<br>│   ├── app.controller.spec.ts<br>│   ├── app.controller.ts<br>│   ├── app.module.ts<br>│   ├── app.service.ts<br>│   ├── main.ts<br>│   └── user/<br>│       ├── dto/<br>│       │   ├── create-user.dto.ts<br>│       │   └── update-user.dto.ts<br>│       ├── entities/<br>│       │   └── user.entity.ts<br>│       ├── user.controller.spec.ts<br>│       ├── user.controller.ts<br>│       ├── user.module.ts<br>│       ├── user.service.spec.ts<br>│       └── user.service.ts<br>├── test/<br>│   ├── app.e2e-spec.ts<br>│   └── jest-e2e.json<br>├── tsconfig.build.json<br>└── tsconfig.json</pre><p>NestJS has a very modular project structure which is also reflected in its folder structure.</p><p>NestJS’s preferred style of writing applications revolves around the idea of <strong>modules</strong>. Modules contain providers and controllers, they can import other modules or export their providers, and they are configurable, read more about it in the previous post: <a href="https://nooptoday.com/dynamic-modules-in-nestjs/">Best Way to Create Dynamic Modules in NestJS</a>.</p><p>The business logic of a NestJS application usually resides in <strong>services</strong>. A service can use other services via <strong>dependency injection</strong>.</p><p>Implementation details of the NestJS framework are mostly hidden from the developers. <strong>NestJS exposes most of its functionality via Typescript decorators</strong>. If you are into code aesthetics you can prefer this style of coding, and read more about it in the previous post: <a href="https://nooptoday.com/custom-decorators-in-nestjs/">Custom Decorators in NestJS</a></p><p>Since NestJS doesn’t allow much customization it is easy for other NestJS developers to adapt your project easily.</p><p>A unique approach NestJS brings to backend application development is using reactive programming for most things. You can see <strong>Observables being used in HTTP requests, events, commands anything you name.</strong> This might be an innovative approach but in my experience, observables cause a performance drop in NestJS applications.</p><p>Similar to FeathersJS, core functionalities are well-defined and you can find resources for whatever you want to do in a NestJS application. NestJS can be considered a little more mature compared to FeathersJS.</p><p>NestJS is also customizable but due to the way adapters are written, sometimes using a different package can cause a loss of functionality. For example, it is known that <strong>you lose functionality by switching from Express Adapter to Fastify Adapter,</strong> but this is a minor inconvenience for most developers.</p><p>Last but not least, <strong>NestJS CLI is capable of managing a monorepo project structure.</strong> Which is very helpful if you are doing <strong>microservices</strong> with NestJS.</p><h3>Customization Options</h3><h3>Customization Options — FeathersJS</h3><p>FeathersJS is intentionally made to be very customizable. There are two reasons for that.</p><p>Firstly, if you are already developing your backend application in ExpressJS, you can just switch ExpressJS with FeathersJS and your project will work just fine. From there on, you can make the full switch bit by bit. This allows an easier migration path for projects that use ExpressJS.</p><p>Secondly, FeathersJS doesn’t want to have opinions about how you implement your application. Rather, it aims to lay out best practices and its own implementations for them. It has good solutions that work well, and you can use them whenever you want to.</p><h3>Customization Options — NestJS</h3><p>NestJS is intentionally made to be less customizable.</p><p>NestJS aims to be the framework for enterprise applications. Enterprises don’t like custom solutions. Custom solutions are costly to enterprise because it requires the knowledge of the person who implemented them. Developers can come and go, the project shouldn’t be affected by this.</p><p>Also, we shouldn’t forget NestJS is heavily inspired by AngularJS and it is also one of the less customizable frameworks for frontend.</p><p>BUT, this doesn’t mean you can’t customize your project or every other NestJS developer can immediately start working on existing NestJS projects. The reality is you can customize, but you shouldn’t do it. Even if you do leave tracks of the NestJS railway, you will probably go back to the track for using some other functionality to work. Let me make it clear with a simple example:</p><p>You can opt out of the class-validator library in NestJS and use AJV for validation. It works without causing you problems but now you can’t use automatic OpenAPI generation in NestJS.</p><h3>Community and Documentation</h3><h3>Community and Documentation — FeathersJS</h3><p>FeathersJS has a small, helpful, and welcoming community. You can join the community in Discord. One thing very noticeable on the FeathersJS website is the <a href="https://feathersjs.com/ecosystem/">Ecosystem</a> page where community-driven FeathersJS packages are promoted!</p><p>FeathersJS documentation walks you through everything you need in the framework. It is simple and clear. There are a few amounts of blog posts or online courses for FeathersJS, but I think numbers will go up after the latest release. David Luecke and other core maintainers are putting a lot of effort into the framework for some time, and I hope they get more recognition in the Node.js ecosystem.</p><h3>Community and Documentation — NestJS</h3><p>NestJS has a large, helpful, and welcoming community. You can join the community in Discord. NestJS has official online courses <a href="https://courses.nestjs.com/">that can be purchased on its website</a>.</p><p>I don’t know how popular is their course but documentation on their website can get you through most of the things. To solve some problems you might need help from StackOverflow or GitHub issues but other than that, I think documentation and examples are enough. Can’t skip here without mentioning <a href="https://www.udemy.com/course/nestjs-zero-to-hero/">NestJS Hero to Zero</a> online course by Ariel Weinberger, which I’ve completed and found helpful.</p><p>I haven’t had time to review the new <a href="https://devtools.nestjs.com/login">Developer Tools</a> by NestJS, but it looks like a very helpful tool. It is a paid tool by NestJS but at a low price. I think it would be much better if they released it for free at least initially.</p><h3>Summary</h3><p>You can build applications of any size and functionality whichever you choose. To choose between FeathersJS and NestJS means choosing between two different code styles. In my opinion, the development process in FeathersJS feels more fitting ( natural ) to the Node.js environment, but, I also understand the reason why NestJS is preferred by enterprise applications.</p><p>Mad respect to both David Luecke and Kamil Mysliwiec and all the other contributors, and maintainers of both projects for creating two of the strongest backend frameworks for Node.js.</p><p>If you have experience in either of the frameworks, I would like to know what you think, please share your experiences and opinions in the comment section.</p><p>I hope you learned something new, have a good one!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=427def783555" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-about-feathersjs/feathersjs-vs-nestjs-compared-in-3-key-areas-427def783555">FeathersJS vs NestJS — Compared in 3 Key Areas</a> was originally published in <a href="https://medium.com/all-about-feathersjs">The Feathers Flightpath</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Papara’da Sonsuz Para Hilesi]]></title>
            <link>https://medium.com/@muhammedkadirtan/paparada-sonsuz-para-hilesi-be0b6d5241d4?source=rss-78e9cb9dac5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/be0b6d5241d4</guid>
            <category><![CDATA[güvenlik]]></category>
            <category><![CDATA[papara]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[yazılım]]></category>
            <dc:creator><![CDATA[Muhammed Kadir TAN]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 18:55:39 GMT</pubDate>
            <atom:updated>2020-10-20T20:50:00.844Z</atom:updated>
            <content:encoded><![CDATA[<p>Disclaimer: Papara’nın herhangi bir maddi zarara uğramaması için bu yazı kampanya bittikten sonra yayınlanmıştır.</p><p>Geçtiğimiz hafta kız arkadaşımla oturmuş, yaklaşan etkinliklere bakıyorduk. 19 Şubat Fazıl Say &amp; Serenad Bağcan konserini görünce çok heyecanlandık ve hemen bilet aldık. İşte ne olduysa sonrasında oldu.</p><p>Bilet aldığımız sitenin adı <a href="http://mobilet.com/">mobilet.com</a> . Evet, bu sitenin adı <a href="http://obilet.com/">obilet.com</a>‘a oldukça benziyor, eminim sizde de aynı çağrışımı yapmıştır. Bu benzerlik aklınızda kalsın.</p><p>Ben online alışverişlerimi <a href="https://www.papara.com/">Papara</a> ile yapmayı tercih ediyorum. Papara yerli bir girişim ve kendileri Türkiye’de ilk kez Mastercard logolu ön ödemeli bir kart çıkarttı. Sistemleri hızlı çalıştığı ve aynı zamanda bir sürü anında nakit iade ( cashback ) kampanyaları olduğu için kullanışlı buluyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwkX9AdF4lQbilUwWX72Wg.png" /><figcaption>Papara’dan aldığım iadelerin ekran görüntüleri ( soldaki iki görsel tiyatro bileti, sağdaki iki görsel Fazıl Say bileti )</figcaption></figure><p>Papara’nın Obilet kampanyasına göre <a href="https://www.obilet.com/otobus-bileti-kampanyalari/papara-indirim-kampanyasi">https://www.obilet.com/otobus-bileti-kampanyalari/papara-indirim-kampanyasi</a> obilet.com’dan alınan otobüs biletlerinin, %5&#39;i anında nakit iade olmalıydı. Ancak, görsellerden de görebileceğiniz gibi mobilet.com’dan yaptığım alışveriş, sanki obilet.com’dan yapılmış gibi anlaşıldığı için bu biletlerimin %5&#39;ini iade aldım.</p><p>Peki bütün bunlar nasıl oldu? Bilgisaylar hata yapar mı? Üstelik iki kez ard arda!</p><p>Bilgisayarların hata yapması mümkün mü bilmiyorum ama 2 yıllık yazılım tecrübemden gördüğüm kadarıyla hata yapan hep biz oluyoruz. Burda da Papara’daki yazılımın bir hatasını görüyoruz.</p><p>Papara’nın sisteminde obilet ve mobilet’ i aynı site olarak algılamasına sebep olan hata bir <a href="https://ceaksan.com/tr/regex-regular-expressions-nedir">Regular Expression</a> hatası.</p><p>Regular Expression ( RegEx ) bilgisayarların kelimeleri tanımasını sağlıyor. Bir siteye üye olurken geçerli bir mail adresi verdiğinizi de regular expression kontrol ediyor, girdiğiniz kredi kartı bilgisinin hangi bankaya ait olduğunu da. Örneğin mail adresini kontrol eden ifade şöyle:</p><blockquote>`^([a-zA-Z0–9_\-\.]+)@([a-zA-Z0–9_\-\.]+)\.([a-zA-Z]{2,5})$`</blockquote><p>Tahminimce obilet.com’dan alışveriş yapıldığını tespit eden ifade de şöyle yazılıyor:</p><blockquote>(obilet\.com)|(www\.obilet\.com)</blockquote><p>Bu ifade kabaca şu anlama geliyor, “obilet.com veya <a href="http://www.obilet.com/">www.obilet.com</a> görürsen bunu bir eşleşme olarak kabul et ve obilet.com’dan alışveriş yapıldığını onayla.”</p><p>Yukarıdaki ifade <a href="http://www.mobilet.com/">www.mobilet.com</a> ile eşleşmeye çalıştığında kelimenin son kısmı …obilet.com şeklinde olduğu için yine bir eşleşme yakalamış sayıyor ve alışverişimizi yanlış yorumluyor.</p><p>Aslında bütün bu karmaşanın önüne geçmek için RegEx ifadelerinde ^ işareti kullanılıyor. Bu işaret kelimenin ilk harfinden itibaren eşleşmesini sağlıyor. Yani yukarıdaki ifade yerine</p><blockquote>(^obilet\.com)|(www\.obilet\.com)</blockquote><p>ilk parantez içerisine “^” işareti eklendiği zaman sorun çözülecektir. Çünkü <a href="http://www.mobilet.com/">www.mobilet.com</a> “w” harfi ile başladığı için bir eşleşme yakalanmayacaktır.</p><p>Tabi ki Papara’nın sistemini hazırlarken, bu tarz aksiliklerin her zaman yaşanabileceğini biliyorlar. Bu yüzden böyle kampanyaların kötü amaçla kullanılmaması için bir sınır belirlemişler.</p><p>Bu kampanyadan geri alabileceğiniz miktar en fazla 30 TL olduğu için sistemin açığı çok fazla zarara yol açamaz.</p><p>Eğer bu sınır belirlenmemiş olsaydı, kötü niyetli bir hacker kendi adına ödeme alabileceği bir hesap açardı. Hesabın adı ve işlem açıklamalarında <em>hackerobilet.com </em>gibi bir ifade kullanarak bu hesaba yaptığı ödemelerin %5&#39;ini anında nakit iade alabilirdi. Böylece bir tek karakter yüzünden meydana gelen hata bir hacker için sonsuz para kaynağına dönüşürdü.</p><p>Çünkü sürekli olarak kendi hesabına ödeme yapar, o parayı çekip tekrar Papara’ya aktarır ve bu geri besleme sayesinde sistemin açığından faydalanmış olurdu.</p><p>Bilgisayarlar güzel, ancak bizim gibi kurnaz olabilmeleri için biraz daha süre var gibi.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be0b6d5241d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>