<?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 AlaaEddin Albarghoth on Medium]]></title>
        <description><![CDATA[Stories by AlaaEddin Albarghoth on Medium]]></description>
        <link>https://medium.com/@eng.alaa.brghoth?source=rss-799a793eb484------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3Tsx5nWAfMHveiLR7OhjOA.jpeg</url>
            <title>Stories by AlaaEddin Albarghoth on Medium</title>
            <link>https://medium.com/@eng.alaa.brghoth?source=rss-799a793eb484------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 03:37:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eng.alaa.brghoth/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[Foundations of Entrepreneurship]]></title>
            <link>https://medium.com/@eng.alaa.brghoth/foundations-of-entrepreneurship-ea1287eaa6c6?source=rss-799a793eb484------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea1287eaa6c6</guid>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[good-design]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[AlaaEddin Albarghoth]]></dc:creator>
            <pubDate>Sun, 24 Mar 2019 13:33:52 GMT</pubDate>
            <atom:updated>2019-03-24T13:55:05.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDsI6v843ImL_ezmcVOw1w.jpeg" /><figcaption>Foundations of Entrepreneurship</figcaption></figure><ul><li>In Entrepreneurship,<strong> the main thing for success<em> is a dependency on God</em></strong>. He who does not depend on the King of this world from which everything derives (livelihood, health, trust, strength, relationships, etc.) cannot attain real and great success.</li><li><strong>The idea<br></strong>Though from others (thinking outside the box), that is to bring another fund and stand on it… The evolution of what others have finished.</li><li><strong>Good design of the idea and Goals<br></strong>Building the idea correctly and properly helps you to return and modify.<br>And setting goals here always keeps your mind on the priorities you have to implement, because you are tied to this and the end of the year, it must be achieved, and all your choices must be to achieve these goals, It is also useful to establish periodic meetings to discuss the feasibility of the same objectives if new variables arise.</li><li><strong>Choose the right staff<br></strong>The team believes in the same goal or your steps.</li><li><strong>Provide service to the customer</strong> (it works).</li><li><strong>Always respond to customer inquiries.</strong></li><li><strong>Powerful TOS formulation protects you from a stupid customer.<br></strong>Make a contract by a professional lawyer.</li><li><strong>Determine the appropriate price aftermarket study.</strong></li><li><strong>Advertising here and there with a well thought out budget, and a cash counter.</strong></li><li>Now the <strong>biggest mistake</strong> is being made in an emerging project … any project that has not been completed for 5 years,<strong> Is to feel that you win and win and decide to raise the price,</strong> This is what destroys your project.<br>Directly — your customers will look for an alternative to the service and will leave you even after the price has returned to what it was, so you do not have to raise your price. And If you want to raise the price. Make another project with a different name and set another price.</li><li><strong>Think of DIY mentality,</strong> or can be called here: back integration.<br>Consider the mentality of the CEO, who is interested in accomplishing the lucrative mission and keeping the company’s goals on schedule, rather than allocating times and resources to build something from scratch. If the profit model is successful and generates money, why not use the money in Others ready-made tools?<br><strong>(DIY) Back integration is useful if it will save you time, effort and money to focus on the core of your product.</strong></li><li><strong>Beware of neglecting accurate calculations of money movement.</strong></li><li><strong>Beware of laziness in extracting work data<br></strong>I mean here sales data, customer return rates, customer recommendations, study our behavior between business hours and increase or decrease in company revenue, rate of sale of specific products to see what customers are focused on, what generates the biggest profit, and what takes time with the customer but not The profit is justified by that time with the customer, etc.<br>Fix this problem with the tools you would prefer to have from the start.</li><li><strong>Meetings, meetings, meetings<br></strong>At the beginning of the company, where only the founders, who have work and other than that small seed, are difficult to gather on a daily or weekly meeting to discuss sales movement or customer problems or develop business methods, or even discover and solve problems, they may They were originally exhausted after work to spend some time in the company, the time they cut from their families and their children.<br>But make sure that the periodic meetings and when needed represent the focus lenses that return the rays of light to parallel packages after dispersing time after time, to keep the company’s goals in view. The delay of meetings delays many decisions.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea1287eaa6c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin features]]></title>
            <link>https://medium.com/@eng.alaa.brghoth/kotlin-features-d473940fa4c4?source=rss-799a793eb484------2</link>
            <guid isPermaLink="false">https://medium.com/p/d473940fa4c4</guid>
            <category><![CDATA[features]]></category>
            <category><![CDATA[extension-functions]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[nullpointerexception]]></category>
            <category><![CDATA[data-class-in-kotlin]]></category>
            <dc:creator><![CDATA[AlaaEddin Albarghoth]]></dc:creator>
            <pubDate>Fri, 14 Dec 2018 09:17:18 GMT</pubDate>
            <atom:updated>2018-12-14T12:04:46.393Z</atom:updated>
            <content:encoded><![CDATA[<p>These are example codes of new things that Kotlin added about Java<br>You can try all codes <a href="https://try.kotlinlang.org/">here</a>, note that all code are tested before ;)</p><h3>Extension function</h3><blockquote>// This Class we want to extend it function, so we will</blockquote><blockquote>// create an outer function that extend it</blockquote><blockquote>class KotlinTest{</blockquote><blockquote>fun show(){</blockquote><blockquote>println(“Welcomin!”)</blockquote><blockquote>}</blockquote><blockquote>}</blockquote><blockquote>// This is extended function</blockquote><blockquote>fun KotlinTest.toast(){</blockquote><blockquote>println(“This is extended function!!”)</blockquote><blockquote>}</blockquote><blockquote>fun main(args: Array&lt;String&gt;) {</blockquote><blockquote>var obj1 = KotlinTest()</blockquote><blockquote>obj1.show()</blockquote><blockquote>}</blockquote><p><strong>========================================</strong></p><h3>Null Pointer Exception</h3><p>In kotlin you can assign variable to Null, and u can throw an exception too.</p><p>This is an <strong>example</strong>:</p><blockquote>class Knull{</blockquote><blockquote>var name: String? = null</blockquote><blockquote>}</blockquote><blockquote>fun main(args: Array&lt;String&gt;) {</blockquote><blockquote>var knull = Knull()</blockquote><blockquote>var v = knull.name?.length // this is safe, since I put here ‘?’ output: ‘null’</blockquote><blockquote>// var v = knull.name!!.length // (!!) means here will throw exception when ‘name’ is null</blockquote><blockquote>print(v)</blockquote><blockquote>}</blockquote><p><strong>========================================</strong></p><h3>Data Class in kotlin</h3><p>// When u put data at the beginning of kotlin class, koltin will generate all (behavior)</p><p>// functions for ur class, in addition all setters and getters to your (attributes) fields.</p><p>// This magic keyword ‘data’ will do all of that!!</p><blockquote>data class KPerson (var firstName: String, var age: Int) {</blockquote><blockquote>}</blockquote><blockquote>fun main(args: Array&lt;String&gt;) {</blockquote><blockquote>var person1 = KPerson(“Alaa”,29)</blockquote><blockquote>var person2 = KPerson(“Baraa”, 23)</blockquote><blockquote>var person3 = person1.copy()</blockquote><blockquote>if(person1.equals(person2)){</blockquote><blockquote>println(“person1 Equals person2!”)</blockquote><blockquote>}</blockquote><blockquote>else {</blockquote><blockquote>println(“person1 Not Equals person2!”)</blockquote><blockquote>}</blockquote><blockquote>if(person1.equals(person3)){</blockquote><blockquote>println(“person1 Equals person3!”)</blockquote><blockquote>}</blockquote><blockquote>else {</blockquote><blockquote>println(“person1 Not Equals person3!”)</blockquote><blockquote>}</blockquote><blockquote>}</blockquote><p><strong>========================================</strong></p><h3>Default Parameter</h3><p>There are two ways to define a function in kotlen that return nothing(Void):</p><p><strong>Ex</strong>:</p><blockquote>fun demoK() { } // way1.</blockquote><blockquote>fun demoK() : Unit { } // way2, Note: unit here is an optional.</blockquote><p>Now, to functions that return a value, u can also define functions in 2 ways:</p><p><strong>Ex</strong>:</p><blockquote>fun demoString() = “Hello !” // way1, this kind called : “Single Line”.</blockquote><blockquote>fun demoString() : String { // way2, Note: compiler will know that this</blockquote><blockquote>return “Hello !” // function return type is “String”.</blockquote><blockquote>}</blockquote><p>Now, let’s talk about Default Parameter, when we talk about “Default Parameter” we remember something we were doing it in java, and that is “OverLoading functions”, Kotlin shortcut this overloading using “Default Parameter”, let’s show an example:</p><p><strong>Ex</strong>:</p><blockquote>fun defaultFun(a: Int=0, str: String=”None”, f: Float=1.3f){</blockquote><blockquote>println(“ a = $a\n str = $str\n f = $f\n”)</blockquote><blockquote>}</blockquote><blockquote>fun main(args: Array&lt;String&gt;) {</blockquote><p>// Here we can just pass variables we want to pass,</p><p>// and those who don’t want to pass them ‘Compiler’ take their default values</p><blockquote>defaultFun(1) //Test1</blockquote><blockquote>println()</blockquote><blockquote>defaultFun(str = “Alaa”) //Test2</blockquote><blockquote>println()</blockquote><blockquote>defaultFun(a = 10, f = 999.9999f) //Test3</blockquote><blockquote>}</blockquote><blockquote><strong>========================================</strong></blockquote><blockquote>When</blockquote><blockquote>When is like switch in java.</blockquote><blockquote>Ex:</blockquote><blockquote>fun main(args: Array&lt;String&gt;) {</blockquote><blockquote>var number = 9</blockquote><blockquote>var value = when(number){</blockquote><blockquote>1 -&gt; “Sat”</blockquote><blockquote>2 -&gt; “Sun”</blockquote><blockquote>3 -&gt; “Mon”</blockquote><blockquote>4 -&gt; “Tue”</blockquote><blockquote>5 -&gt; “Wed”</blockquote><blockquote>6 -&gt; “Thu”</blockquote><blockquote>7 -&gt; “Fri”</blockquote><blockquote>else -&gt; “None!!”</blockquote><blockquote>}</blockquote><blockquote>println(value)</blockquote><blockquote>}</blockquote><p><strong>========================================</strong></p><h3>Single Object</h3><blockquote>object SingleObject // this line in kotline is equal to the following down in java</blockquote><blockquote>// Java Code</blockquote><blockquote>final public class SingleObject{</blockquote><blockquote>SingleObject singleObject = new SingleObject();</blockquote><blockquote>private SingleObject() { }</blockquote><blockquote>private static SingleObject singleObj(){</blockquote><blockquote>return singleObject;</blockquote><blockquote>}</blockquote><blockquote>}</blockquote><p>Author: Alaa Eddin Albarghoth</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d473940fa4c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>