teleren/devto huggingface dataset:
Run and Compile Pascal with Sublime Text
Tags: guide, howto, pascal, sublimetext3
Published: 2022-11-24 09:45:58

---
title: Run and Compile Pascal with Sublime Text
published: true
date: 2021-03-09 00:00:00 UTC
tags: Guide,HowTo,Pascal,SublimeText3
canonical_url: https://ahonerd.com/run-and-compile-pascal-with-sublime-text
---

Cara menjalankan dan kompilasi Pascal dengan menggunakan Sublime Text 3.

## Prerequisite
- Free Pascal
  Free Pascal dapat di-download di [www.freepascal.org](https://www.freepascal.org/download.html).
- Sublime Text 3
  Sublime Text 3 dapat di-download di [www.sublimetext.com/3](https://www.sublimetext.com/3).
  - Package Control
  - Pascal Snippets Package

## Build System
Buka Sublime Text 3, kemudian pilih menu `Tools` › `Build System` 
› `New Build System...`

![Build System](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u4en44f9o0886u3cpx24.png)

Akan muncul template Build System untuk kemudian kita ganti isinya menjadi seperti berikut:

{% gist https://gist.github.com/ahoNerd/6f9eecebe3c1e91fd33ea81491c8883f file=Pascal.sublime-build %}

Lalu simpan dengan nama Pascal.sublime-build

> Pastikan bahwa yang dirubah hanya nama file-nya saja dan biarkan extension tetap .sublime-build

## Testing

Untuk mencoba instalasi di atas, kita buat program sederhana seperti berikut:

{% gist https://gist.github.com/ahoNerd/6f9eecebe3c1e91fd33ea81491c8883f file=test.pas %}

> `readln()` diperlukan agar Command Prompt yang muncul tidak langsung tertutup.
> Simpan file dengan extension `.pas`

Kemudian pilih menu `Tools` › `Build System` › `Pascal`.

![Build System](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s9bx7p4c15c1hohxtg2w.png)

Lalu pilih menu `Tools` › `Build With...`, atau dengan shortcut `Ctrl+Shift+B` maka akan muncul tampilan seperti berikut:

![Build With](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fwcgkexp5jehxdwonhhc.png)

Pilih `Pascal - Compile`, lalu ulangi pilih menu `Tools` › `Build With...`, atau dengan shortcut `Ctrl+Shift+B`, tapi kali ini pilih `Pascal - Run`, maka akan muncul terminal berisi text 'Konnichiwa!', seperti berikut:

![CMD](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z72am7gedkir8hvqqfnw.png)

> Ketika kita menjalankan `Pascal - Compile`, hasil kompilasi akan tersimpan pada direktori yang sama dengan source file.

## Reference

Tutorial ini dibuat berdasarkan referensi dari [forum.lazarus.freepascal.org](https://forum.lazarus.freepascal.org/index.php?topic=49982.0).
Book notes: Clean Code - Chapter 7
Tags: books
Published: 2021-03-08 23:58:33

### Chapter 7 - Error Handling

> Error handling is important, but if it obscures logic, it’s wrong.

* Exceptions are better than returning error codes. When using exceptions we can just follow the logic path until the end, and if there is an exception it will be caught later.

^ So, he mentions this in a previous chapter, I have also included this here just so I can find it later

* When writing our tests, we should try to create tests that generate exceptions. This will force us to put all the correct logic inside the try block for our function.
* We should provide meaningful context to our exceptions
* We should not return null if something went wrong, if we return null, then we will have to check for null in every interaction

^ Ouch, can't count on my fingers the amount of times I wrote a function that returns null last month

* Passing null as an argument is even worst than returning it.
Learn about difference between Type & Interface in Typescript
Tags: typescript, node, webdev, javascript
Published: 2021-03-08 23:15:06


If you are using typescript, you might use interface & type but if I ask you the difference between them, are you able to answer it ?

At the end of this article, you will be able to answer it during any discussion or interview !

## Type

The basic, it allow us to create a new type !

## Interface

In contrary to `type`, `interface` is restricted to an object type.

With the news release, `type` and `interface` are similar but there some differences between them.

## Similitude

### Object typing

You can define the shape of an object with both, but the syntax is not the same

`with interface:`

```typescript
interface A {
  a: number
}

const a: A = { a: 5 }
```

`with type:`

```typescript
type A = {
  a: number
}

const a: A = { a: 5 }
```

### Extend

Both can be extended, and the difference is ... yes the syntax again !

`with interface:`

```typescript
interface A {
  a: number
}

interface AB extends A {
  b: number
}

const ab: AB = { a: 5, b: 6 }
```

`with type:`

```typescript
type A = {
  a: number
}

type AB = A & { b: number }

const a: AB = { a: 5, b: 6 }
```

## The difference 

### What type can do, and what interface cant do

Unlike `interface`, `type` can be used for creating new type with union, tuples or can be used to defined primitive type !

```typescript
type A = string | number // union

type Primitive = string | boolean | number | null | interface | symbol // Create a new type from primitives type

type DataTuple = [number, string] // tuple typing
```

### What interface can do, and what type cant do

A `class` can `implement` an `interface`

*Edit: Since TS 2.7, type can be implements on class, thank you to @faiwer*

```typescript
interface A {
  a: number
}

class Toto implements A {
   a = 55
}
```

Interface can be merged in a single `interface` if there are defined multiple times

```typescript
interface Toto {
  a: number
}

interface Toto {
  b: number
}
const toto: Toto = {
   a: 55,
   b: 66,
}
```

### Conclusion

As you can see `type` & `interface` are very similar but each other have his own dedicated feature !

I personally use interface when I need to type object structure, and I use type when I need to create type from primitive type or when I want to combine other types in one type !

---

I hope you like this reading!

🎁 You can get my new book `Underrated skills in javascript, make the difference` for FREE if you follow me on [Twitter](https://twitter.com/code__oz) and MP me 😁

Or get it [HERE](https://codeoz.gumroad.com/l/RXLYp)

🎁 [MY NEWSLETTER](https://www.getrevue.co/profile/code__oz)

☕️ You can [SUPPORT MY WORKS](https://www.buymeacoffee.com/CodeoZ) 🙏

🏃‍♂️ You can follow me on 👇

🕊 Twitter : [https://twitter.com/code__oz](https://twitter.com/code__oz)

👨‍💻 Github: https://github.com/Code-Oz

And you can mark 🔖 this article!
I made an app: Discover how people react to you on GitHub
Published: 2021-03-08 23:13:45

---
title: I made an app: Discover how people react to you on GitHub
published: true
description: 
tags: 
cover_image: https://sourcekarma.vercel.app/social.png
---

Hey there dev community, I always wanted to build this: an app that lists and summarizes all the reactions I received on my GitHub comments.

It took me some time (one week) but I made it! You can access it here: https://sourcekarma.vercel.app.

You can share your score on Twitter and also get a nice badge for your GitHub readme:

{% github vvo/vvo %}

The technical and design part were super fun, I am using:
- Vercel
- Next.js
- Puppeteer (to generate social images and GitHub badges)
- AWS RDS (PostgreSQL)
- [Craftwork](https://craftwork.design/downloads/category/illustrations/?ref=87&campaign=Devto) (for the awesome illustrations)
- [Fathom](https://usefathom.com/ref/Y8XVBV) (for stats)

Give it a try and please ask any questions you have here!

Best,
Vincent

PS: Here's the launch tweet

{% tweet 1368953460947828746 %}
CodeCollab Fellowship
Tags: beginners, todayilearned
Published: 2021-03-08 23:07:54

Hi, DEV community!

I would like to share my learning journey throughout the CodeCollab track organized by Our Time For Tech, a nonprofit online program that empowers early-career and career-changing Women in Tech! I am very grateful to be a part of it and have an opportunity to gain real-world, technical experience building software as part of a team.

During the next three months, we, a team of five early-career developers, will be building a complex web-application with the guidance of two senior engineers. The stack for our application will be Rails, React, Postgresql and Bootstrap.

Last week we started to prepare for the start of the CodeCollab program, we were challenged to set our local environment and create our first issues, and assign them to the project board on GitHub. GitHub's project board is a new tool I discovered. I like how easy it is to see what the team is working on and how easily it is to distribute the tasks. I also learned how to link the pull request to its particular issue.

We are learning to work as a team and to update each other progress, and timely solve problems.

The App, ShiftWork's business requirements, were discussed
on our first Sprint planning. ShiftWork will serve as an online meeting place for shiftwork-type businesses(ex: restaurants) and those who work as shift-workers (ex: servers). Businesses can post upcoming shifts. Workers can seek available shifts that need to be filled. Senior developers pointed out that at this stage it's important do not think about the implementation, not yet. It's important to focus on business and user needs and draw the MVP. 

By the end of the meeting, we planned out what data will be stored in our database and the relationships between that data. We left the meeting to plan further discussion and create the issues for the following week. We agreed to create five issues that cover the creation of Businesses, Workers, Shifts, Slots, Users tables, and their attributes. 

Thanks for reading! I will keep you updated on my CodeCollab learning journey.

Check out Our Time For Tech: https://ourtimefortech.org/

<span>Photo by <a href="https://unsplash.com/@youxventures?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">You X Ventures</a> on <a href="https://unsplash.com/collections/4581544/sprint?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>
“Feature” is Ambiguous.
Tags: uncategorized, feature, value
Published: 2022-02-11 19:56:46

---
title: “Feature” is Ambiguous.
published: true
date: 2021-03-08 22:22:56 UTC
tags: Uncategorized,feature,value
canonical_url: https://theagilecouch.com/2021/03/08/feature-is-ambiguous/
---

![](https://theagilecouch.files.wordpress.com/2021/03/volkswagon-bug-feature-vanity-plate.jpg?w=300)<figcaption><em>Great joke of course.</em></figcaption>

We’ve used the word **feature** to the point that it’s lost specific meaning. A feature could mean, “this field will retain your data for the next time you log in”. A feature could also mean “big green button”.  A feature could also be almost any object or landmark. That big rock that looks like a bird’s head is a feature on the way to the world’s largest ball of twine.

I realized this as I was writing about an accidental behavior, that some might claim helps a customer. “Well, it wasn’t planned, but you could consider that a benefit if…”

This is the reasoning behind the joke, “It’s not a bug, it’s a feature”.

My question was, “Was this designed as a feature?”

I realized someone could answer, “Yes, that field is a feature”. Or be confused, thinking “The Product Owner created that object as a feature (story), and we made it. Of course it’s a feature”.

I don’t mean “was this object as part of the GUI, designed?”

What I really should be asking is, “Did someone argue that this would intentionally create a benefit for the customer?”

**“Does this add value?”, is something we should be asking more often.**
Looking for design feedback on Scroll: new public domain static site publishing software
Published: 2021-03-08 22:22:28

I made some new software, Scroll, for a new way to publish online.

I want to give it a "scannable" feel like an old newspaper. I'm not so great at design, however, and looking for feedback!

Homepage:
https://scroll.publicdomaincompany.com/

Here is my site, using this:
https://breckyunits.com/
How-to do Sentiment Analysis with Flair in Python
Tags: python, machinelearning, deeplearning, tutorial
Published: 2021-03-08 22:15:59

{% youtube DFtP1THE8fE %}

Learn how to perform powerful sentiment analysis with no fine-tuning or pre-training required using the Flair NLP library in Python.

With the real-time information available to us on massive social media platforms like Twitter, we have all the data we could ever need to create these accurate and up-to-date sentiment metrics for different companies.

But then comes the question, how can our computer understand what this unstructured text data means?

That is where sentiment analysis comes in. Sentiment analysis is a particularly interesting branch of Natural Language Processing (NLP), which is used to rate the language used in a body of text.

Through sentiment analysis, we can take thousands of tweets about a company and judge whether they are generally positive or negative (the sentiment) in real-time!
She wanted to code, therefore she did
Tags: wecoded
Published: 2021-03-08 22:00:08

I don't really work in tech (or do I?) but over the years I also haven't come across people who thought I shouldn't or couldn't. Based on the stories I've heard and read, I've been lucky.

My life with computers began with Commodore 64 and Windows 3.11. Dad had a job where he had access to "the latest tech" so we had a PC or a laptop at home from very early on. Dad was (and is, at 66) a gamer and that's what I became first, too. Winter Games, Impossible Mission, Who Dares Wins, Maniac Mansion, Minesweeper... :smile: I learned to run C64 games from floppies and cassettes.

Back in junior high in the mid-90's, I chose IT as an optional subject (we had to choose three; I also took cooking and handicraft). I think there were 3-4 girls in a class of 20. I don't know if that raised any eyebrows but I wouldn't have given a hoot if it did.

Around that time I heard about HTML and started learning it mostly by myself. I got into making web pages and then styling them with CSS. And then came scripting in PHP and JavaScript. Web technologies has remained a dear hobby of mine and I'm currently updating my knowledge in it after a bit of a break due to, I don't know, other aspects of life.

In university I did pick a humanities major but with a tech twist: computer linguistics. We were quite a balanced group of women and men. Computer studies were a mandatory minor for us. There I could also see a lot of women (could be that university in general is more popular with women), but perhaps we were in minority now that I think about it. Don't remember seeing many women in the Java study groups.

In the middle of university I got hired by a translation company into a technical role (sort of a tech support). Others in the team were men at that time but there had been at least one woman before me and several came after me. I never experienced any bad attitude from others in the team and I was a popular helper in the company.

After 15 years in the translation company, I was invited to an interview (and got hired) at a company that I suppose I should call a tech company: we work with cloud gaming. I don't yet work with the most technical part of it all, I mainly coordinate the game part. But the culture in the company is such that people are given good opportunities to study and grow into their dream role so who knows what I get to do in the future!

I haven't had to struggle. I hope there will come a day when this is the norm: a girl/woman interested in tech or working in the field and people will think nothing of it.
Nevertheless, Fatima Senouci Coded in 2021!
Tags: wecoded
Published: 2021-03-08 21:46:39




## My most recent achievement was…finish my lab in signal processing using matlab 

## Advocating for myself looks like…i will see this post next year in march 8th and i will compare if i have got an achievement insh 

## My biggest goal is…to be a phd in computer science 

## My advice for allies to support underrepresented folks who code is...don't give up you will be an expert just be patient
100 Bytes Of Wisdom: Day 23
Tags: career, journey, advice, debugging
Published: 2021-03-08 21:42:00

---
title: 100 Bytes Of Wisdom: Day 23
published: true
description: Bytes of Wisdom is a new project by Sam Jarman that brings together snippets of advice for software engineers
tags: career, journey, advice, debugging
//cover_image: https://direct_url_to_image.jpg
---

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/42cmosz41x7w3f8gbh0u.png)

Now, this is a classic. You're 45 minutes into your code not working. You're reading docs, trying code, debugging hard. Suddenly, a new error. Whys it doing that? 

A less wise developer might want to throw in the towel at this point? A new error!? I've made it worse!

No. A new error is progress. Something has changed. That's a clue! Why has it changed? What is it saying now? Can I google this one? Maybe I won't be alone in a forum by myself. 

When debugging in times like these, there are always more clues. Keep poking and prodding with the tools you have until a path forward reveals itself. It takes a while to get these skills and they really only come with (horrible) experience but once you start to feel proficient with this, you'll feel like you have superpowers.

Heads up: As with any terse bit of advice, there will be exceptions of course, and subtleties and nuance that can't possibly be captured in a Byte of Wisdom. This has been what I've experienced, I'd love to hear yours in the comments too!

You can catch up with all the other bytes at http://bytesofwisdom.com/
Why i created my own Express i18n Middleware to internationalize REST APIs
Tags: showdev, javascript, node, rest
Published: 2021-03-08 21:38:32

---
title: Why i created my own Express i18n Middleware to internationalize REST APIs
published: true
description: Why i created my own Express i18n Middleware to internationalize REST APIs and some thoughts about it
tags: #showdev #javascript #node #rest
//cover_image: https://direct_url_to_image.jpg
---

Yep, i created my ow Express i18n Middleware for REST APIs, and published it as a npm package. It has only 16kb, super easy usage, no-dependency and its well tested. 

You can check the package on that link:
https://www.npmjs.com/package/express-rest-i18n

You can check the sources on that link:
https://github.com/felippe-regazio/express-rest-i18n

If you need to internationalize your REST API, you can consider use it, its FOSS. I have searching for some alternatives to REST APIs Internationalization and all of them (related to Express) where intended to be very general solutions, bringing a lot of built-in features that i didnt want to, or i simply disliked the API. So, i decided to write my own, the smaller and simplest as possible.

That made me think about something: The trade offs of creating very general tools VS a set of small single-purpose tools. I think this concern is not new, of course. We've been trying to solve this question in some different levels of development with module patterns, components, tree-shaking, graphs etc. So, this should be a packagist level question also, right? When you decide to start something, maybe you should ask yourself about this (?). 

See, im not telling that the other tools i saw are bad or criticizing the options available, or telling that i created a better one, is not that. I dont even consider myself a good programmer as the guys that created such awesome tools like those i saw out there. My concern was purely: the weight of some modules to solve such small tasks on my project. Purely a trade off. Now, im just questioning how good or how bad can be to write a general VS single-purpose solutions.

🤔
I'm Sam Jarman 👨🏼‍💻, and I support women devs in 2021!
Tags: wecoded
Published: 2021-03-08 21:36:58

---
title: I'm Sam Jarman 👨🏼‍💻, and I support women devs in 2021!
published: true
tags: shecodedally
---

My name is Sam Jarman, and I imagine like a lot of men of tech, I'm also on a journey to correct my own biases (subconscious or not) and do my bit to get us towards a gender-equal world.

For IWD I want to highlight one of the projects I did in the past - Dev Chats. I'm proud that my written interview series is about 50/50 women and features people of colour and people from the LBGQTIA+ community. 

Below I want to highlight some of my favourites for you to read. Starting off with Hannah, who was so kind to write me pretty much a college essay per question, through to Kristina who has had an impressive journey into the security field. 


{% post https://dev.to/samjarman/dev-chats-hannah-gray-8j1 %}

{% post https://dev.to/samjarman/ask-for-and-be-a-mentor-with-lauren-lee-11pl %}

{% post https://dev.to/samjarman/mary-thengvall-on-the-value-of-developer-relations-11c6 %}

{% post https://dev.to/samjarman/mentoring-women-learning-to-code-with-pauline-narvas-384 %}

{% post https://dev.to/samjarman/kristina-balaam-on-breaking-in-to-security-4939 %}

Heads up: These posts are a bit old now so their job titles might not be accurate any more.
Nevertheless, HomegirlHacker Coded in 2021!
Tags: wecoded
Published: 2021-03-08 21:31:22

<!-- ✨This template is only meant to get your ideas going, so please change/add/remove these prompts as you wish! We also encourage you to create your own title if you’d like! ✨ -->

## My most recent achievement was…
Earning a position on the executive board of a youth-run non-profit as a web designer, then finding the courage to resign in order to prioritize my mental/physical health, other extracurriculars, and high school work.

## Advocating for myself looks like…
Asking questions, sending reminders, being honest, listening to others, and...asking more questions.  You'd be surprised by how far you can get by simply asking.

## My biggest goal is…
To become an astronaut!  Not just any astronaut (as if that exists xD), I want to be part of the first crew to step foot on Mars.

## My advice for allies to support underrepresented folks who code is...
Have humility and be willing to listen.

Thanks so much for reading!  I'm thrilled to participate for a second year in any way I can!