teleren/devto huggingface dataset:
Is XML Dead?
Tags: xml, json, discuss, webdev
Published: 2020-01-29 22:21:49

Today I was asked to provide technical consultation for a customer involving the generation of an XML document.

These days we developers play with JSON, but it is worth noting XML played some influence with JSON’s global adoption. You’ll often hear a lot talk about data models, sequences, markup and so forth in the JSON community – lessons that were learned from putting together XML standards.

```xml
<?xml version="1.0"?>
<catalog>
   <book id="bk101">
      <author>Gambardella, Matthew</author>
      <title>XML Developer's Guide</title>
      <genre>Computer</genre>
   </book>
   <book id="bk102">
      <author>Ralls, Kim</author>
      <title>Midnight Rain</title>
      <genre>Fantasy</genre>
      <price>5.95</price>
   </book>
</catalog>
```

It’s been a while since I authored an XML document – I was reminded how the data structures are easier to read and understand. That’s not to say JSON isn’t readable, its just that with XML and it’s SGML derivatives the model is easier to comprehend, initially at least.

When I started thinking about how to parse XML documents again, It was then I was reminded why JSON is loved. While XML presents the data in an immediately readable format, JSON presents the data in an easily digestible format for your application code. No need, for complex XPath queries, just bind it to your internal model and your done!

If JSON is the preferred choice for data transfer within applications, does XML have anything left to offer?

####Yes – documents…####


##XSLT##

XSLT (*eXtensible Stylesheet Language Transformations*) is a language for transforming XML documents into other XML documents, or other formats such as HTML for web pages, plain text or XSL Formatting Objects, which may subsequently be converted to other formats, such as PDF, PostScript and PNG.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/k0udsnomr2vy2hu4tfxv.png)

>**Example of XML/XSLT:** In the image above you can see an example of XML and XSLT working together. The XSLT file uses XPath queries to lift information out of the XML document and render the content using templates. The output is shown below.

XML still works best for documents. Documents by their nature have a form of structure that is represented better through XML.

Combine XML with XSLT and you’re able to perform impressive transformations with nothing more than .xml and .xsl files.

##So, Is XML Dead?##

Not yet – XML still has its place for document-based structures. Also many financial institutions rely heavily on XML based formats for transferring information between enterprise systems that were built in the 2000s.

It’s well known financial enterprises such as Banks are reluctant to ‘upgrade’ their systems unless they really need to. So XML may not be the new kid on the block, and relegated to more mundane infrastructure but it’s still alive and kicking. 🤓


**What about you?** - Do you still use XML day to day?
Is it possible to do realtime messaging on the JAMstack?
Tags: jamstack, jamuary
Published: 2020-01-29 21:01:03

Real-time feedback can positively influence the overall user experience of a website. When a user requests help or time sensitive information (like realtime bus schedules or stock market prices), providing a timely response keeps them engaged and up to date with critical information. To achieve this experience with as little latency as possible, websites employ a system where data is streamed or pushed to users via delivery mechanisms such as Publish/Subscribe. The general concept here is real-time messaging where data is pushed as fast as possible to facilitate the distribution and delivery of messages. By design, real-time messaging is built to be consumed or used literally in real-time or as events occur. In the context of static sites on the JAMstack, achieving real time messaging via a Pub/Sub pattern can be a challenge. To receive a message, the receiving application needs to be proactive and attentive to events as they happen. For this to work, a long lived connection needs to be established so that the publisher can properly notify subscribers of incoming changes. In a JAMstack setup where content is pre-rendered, updating data means having to rebuild the site and invalidate the CDN cache. Rebuilding a site takes time, and there’s often a chance that data is stale by the time a site build is complete.

Though the JAMstack doesn’t lend itself well to patterns like Pub/Sub, accomplishing real-time messaging is possible within a JAMstack model. Web hooks are one way that this can be done. With webhooks, a web service can provide other services with real time information without the need for a constant connection. Compared to the observer model, webhooks are a simple way to accomplish event driven workflows like “If this then that” and applications can easily communicate when something new happens. Though publishing updates to a site still requires an entire rebuild, end users can be notified of changes through other means like Slack notifications, text messages. To be notified of new form submissions for instance, webhooks can be used to trigger notifications through the delivery mechanism of your choosing. In the event that a webhook is unavailable, [Zapier](https://docs.netlify.com/forms/notifications/#zapier-integrations?utm_source=devto&utm_medium=zapierwebhookdocs-div&utm_campaign=devex) offers a slew of service integrations so you can easily glue services together at the click of a button.

Compared to traditional approaches to realtime messaging where information is “pulled" or “polled”, realtime messaging on the JAMstack has to be event driven to work. It requires a service to explicitly notify a site of incoming changes. For more on accomplishing event driven workflows on the JAMstack, [check out the Netlify documentation on outgoing webhooks](https://docs.netlify.com/site-deploys/notifications/#outgoing-webhooks?utm_source=devto&utm_medium=outgoinghooksdocs-div&utm_campaign=devex)
What tools do you use to organize and think through your coding tasks?
Tags: discuss, productivity
Published: 2020-01-29 20:55:34

---
title: What tools do you use to organize and think through your coding tasks?
published: true
tags: discuss, productivity
---

I am especially curious about tools that people have used for a long time. Tools that have become an integral part of your workflow. 

Are there tools that have replaced pen/paper for organizing your thoughts *before* you start typing into an editor each day?
Module 5 Discussion
Published: 2020-01-29 20:54:40

1. What are the three table row group elements and in what order should they be entered in HTML code? 

The three table row elements are <.TH> <.TR> and <.TD>.

2. Write code to create a column group in which the first two columns belong to the introCol class and the next three columns belong to the col1, col2, and col3 classes respectively.

 <.colgroup><.col id="introCOL"  col span= 2 /><.col id ="col1"/><.col id = "col2"/> <.col id = "col3"/> <./colgroup> 

3. Write code to change the background color of the 2 columns belonging to the introCol class to yellow.

 tr: introCOL {.background: yellow}

4. What are the only CSS properties that can be applied to columns and column groups?

 The only CSS properties that can be applied to columns and column groups are back ground colors and cell sizing.

5. In the case of conflicting styles, which has the higher precedence: the style of the row group or the style of the column group? 

The style of the row has the highest precedence.

6. Write the CSS style code to set the height of every table row in the table header to 25 pixels.

table.disscusion t-body tr {.height: 25 px}

7. Write code to display an unordered list as a table, the list items as table rows, and hypertext links within each list as table cells.

<.table border= "1">  <.ul>  <.tr>   <.th> <.li>List Item 1<./li> <./th>  <.th> <.li>List Item 2<./li><./th> <./tr> <.tr> <.td id = "cell1"> <.a href="#">hello<./a><./td>    <.td id = "cell2"><.a href="#">hi<./a><./td>  <./tr> <./ul><./table>
Switching careers to Software Development
Tags: career, discuss, advice, switchingcareers
Published: 2020-01-29 20:46:46

---
title: Switching careers to Software Development
published: true
description: Recently I have been approached for some advice about switching career to software development - and thought to reach out for some wider advice.
tags: career, discuss, advice, switchingcareers
---


Recently I have been approached for some advice about switching career to software development.
I have come up with a list of suggestions, but thought it is worth tapping into collective thinking.

If someone would approach you, what would you say?

- Where to start?
- Which part of software industry to get to? Web, Apps, AI, Data? 
- What is a good starting point for each of those starting points?
- What advice would you give to people thinking of changing their careers to software development?
- Meet-ups for newbies?
- Codebar? https://codebar.io/ Any alternatives or more meet ups with similar goals?
- Coding academy? This is quite a big financial investment that may not be affordable by many
- Mentorship?
- University? College?
- What else?

What would your advice be to someone who is coming from a different career? Anything goes.
CIS Module 5 Project 2
Published: 2020-01-29 20:41:33

<!DOCTYPE html>
<html>
	<head>
		
    </head>
	<body>
<form id="numform"
   oninput="x.value=parseInt((a.value) - 32 * 5/9)+'° C'">
  0° F 
  <input type="range" id="a" name="a" value="0" min="0" max="100">
         100° F = 
         <output form="numform" name="x" for="a">
  </output>
</form>
	</body>
</html>
How to find and identify a great mentor for me?
Tags: help
Published: 2020-01-29 20:39:55

---
title: How to find and identify a great mentor for me?
published: true
tags: help
---

Hello DEV.to,

I am currently looking for a mentor to guide & facilitate my growth as a technical professional & software engineer. What characteristics should I be looking for in a mentor? And where would be the best place to find this person?

Most likely this is a very specific ask with different answers depending on my needs and preferences. In summary, I am a relatively new (less than 1 year) Lead Engineer on a tiny team with about 5 years of Ruby On Rails working experience. There are topics related to legacy code and hiring that I would like to talk with a more experienced person about.

I would love to hear any advice on finding this person! Open to talking with any mentors that are reading this and is looking for an eager learner :)
Can't change Kestrel default listening port when publishing.
Tags: help, dotnet
Published: 2020-01-29 20:30:21

Hello community, it turns out that I have an app with Netcore3.0 which I want to publish on a linux server. In my development environment, Kestrel works perfectly listening on port 5050, when it runs in the (local) production environment, it also listens on 5050.
The problem is when it is **published,** which somehow does not preserve the value of the established port, and starts listening to the default port.

This is the command I use to publish:
> dotnet publish --configuration Release

 - Apparently my environment variables are fine.
 -  I have checked the json file launchSettings and ensured that it is fine.
 - I tried copying the appsettings jsons for the / bin / Release / netcoreapp3 / directory and it doesn't work.
 - Tried adding 

Could you guide me in what other way I can change the default port of Kestrel or where else should I check again?
Any Framework, One Stripe Integration
Tags: showdev, webcomponents, html, javascript
Published: 2020-01-29 20:13:03

---
title: Any Framework, One Stripe Integration
published: true
description: Stripe Elements custom elements work across front-end frameworks and even in vanilla HTML and JS.
canonical_url: https://bennypowers.dev/posts/any-framework-one-stripe-integration/
tags: showdev, webcomponents, html, javascript
---

# It's Release Day!! 🎉

![A happy hedgehog](https://media.giphy.com/media/2tSTqVTVHbCy35ybwk/giphy.gif)

Take a <abbr title="peek">👀</abbr> at [`@power-elements/stripe-elements`](https://npm.im/@power-elements/stripe-elements), a package which exposes the [Stripe.js](https://stripe.com/docs/js) API through cross-framework, declarative custom elements.

What that means is that with the help of `<stripe-elements>`, you can easily integrate Stripe credit card payments into your site, no matter which framework you're using - if any! Even if your payment form is inside Shadow DOM (not yet officially supported by Stripe.js), you can still take payments securely with these custom elements.

And this [latest version](https://github.com/bennypowers/stripe-elements/blob/master/CHANGELOG.md) adds a nice new feature. Introducing: `<stripe-payment-request>`

## Demo

{% codesandbox stripe-web-component-vanilla-ztuvg %}

The above demo will try to use `<stripe-payment-request>` for a nicer UX, but if the browser is unable, will fall back to a classic `<stripe-elements>` credit card form.

If you want to check out the Payment Request support, you'll need
- A browser which supports the [Payment Request API]("https://caniuse.com/#feat=payment-request") (or Apple Pay for Safari)
- At least one credit card saved in the browser (i.e.
  test card <code>4242424242424242</code>)
- You need a Stripe testing publishable key

To use the fallback form, all you need is the publishable key.

And like I mentioned above, [stripe-elements web components work with any framework](https://bennypowers.dev/stripe-elements/?path=/docs/framework-examples-angular--stripe-elements).

## For More Info...

For complete API documentation see the [README](https://github.com/bennypowers/stripe-elements/blob/master/README.md), and for live demos of various use cases, check out the [Storybook](https://bennypowers.dev/stripe-elements/?path=/docs/elements-stripe-elements--enter-a-publishable-key)

Take it for a spin in your next project:

```
npm i -S @power-elements/stripe-elements
```

```html
<script type="module" src="https://unpkg.com/@power-elements/stripe-elements?module"></script>
```
Intro to Ngrx and Ngrx Deep Dive and Best Practices with Ngrx
Tags: beginners, angular, ngrx
Published: 2020-01-29 20:04:53

Are you thinking to start learning Ngrx with Angular? 

Ngrx is more than a library. As per the docs of Ngrx this is what they have to say.

>NgRx is a framework for building reactive applications in Angular. NgRx provides state management, isolation of side effects, entity collection management, router bindings, code generation, and developer tools that enhance developers experience when building many different types of applications.

The below talks will provide an overview of Ngrx. Gugan and Wes did a great job in covering aspects of Ngrx. Thank you for speaking at our community meetups Wes and Gugan.

Intro to Ngrx by Gugan
{% youtube XeljQraQOBw %}


Deep Dive on Ngrx by Wes Grimes(@wesgrimes)
{% youtube QZhDZYlhvKs %}

Ngrx Best Practices for Enterprises by Jordan Powell
{% youtube c29YpMQ0xU8 %}


### Resources

Ngrx Docs - https://ngrx.io/docs
Online Meetups - https://www.javascriptandfriends.com/communityevents
The challenges of working remotely and how i overcome them
Published: 2020-01-29 19:44:04

working remotely it is not that easy to get used to it,  as you work independently away from the office and plan how to accomplish your task by yourself and the way that you will do your project or work . My journey of working remotely is little challenging because it is my first time working remotely working the time i want , doing my project wherever i want everything depend on myself about how i want to complete my tasks. the good news is that as i continue to do it every single day i'm getting used to it with the help of my teammates. Through this article i am going to discuss about the challenges that i'm facing so far and how i overcome to them.

the first challenge that I've been facing so far is the internet connectivity but it is not that i don't get it but what it takes me to access it takes me to have a long journey to get to the place where i can get it at maximum but luck me for the first time i experienced connectivity issues but eventually i found the solution to it where i started using the Ethernet cable to access it. 
the second challenge is the time management, as work independently there is no time that i can not work and to know how to manage the time efficiently but in order to overcome this challenge i set time schedules that direct me and guide me about how to use my time in productive way.

Distractions is another issues that I've been facing so far . to get the private place where i feel comfortable while doing my work it is very i hard . i often work in public places with so many people some making noise and to have a meeting with my teammates becomes difficulty . there is also some other distractions like those from friends and family members but some of them i try to manage it as much as i can in order to work effectively.

Communication with remote work it is not that popular to me where to get in touch with my teammates is little challenging compared to the team that work face to face . but lucky for us we us Zoom and Slack to communicate to each other to handle that issue and for this it is no longer a big issue.

project management issue is also another challenge that I've been having , to set a proper way that i can accomplish my project , to get used to Pivotal Tracker was a bit tricky but as the time goes on i get familiar with it. and i found it very helpful as it helps me to know how my project will be completed hierarchically.

For all of that said i can not forget to say that working remotely can be very productive as i can work all the time i want even the late hours. it is only a matter of time to get familiar with working remotely but the big part is that it is very interesting working remotely with team supporting you.
Learn c++ programming
Tags: java, c, csharp
Published: 2020-01-29 19:15:48



[learn C++ programming](https://academyera.com/learn-c) 

 

Functions in C++ 
[-What are Functions in C++](https://academyera.com/what-are-functions-in-c) 
[-Member Functions in C++](https://academyera.com/member-functions-in-c)
[-Function Types in C++](https://academyera.com/function-types-in-c-c-function-types)
 

Constructors and Destructors in C++
[-Constructors in C++](https://academyera.com/constructors-in-c)
[-Destructor in C++](https://academyera.com/constructor-overloading-in-c-constructor-overloading)
[-Types of Constructors in C++](https://academyera.com/types-of-constructors-in-c)
[-Constructor Overloading in C++](https://academyera.com/constructor-overloading-in-c-constructor-overloading)
 

Inheritance in C++
[-Types of Inheritance in C++](https://academyera.com/types-of-inheritance-in-c)
[-Multilevel Inheritance in C++](https://academyera.com/multilevel-inheritance-in-c)
[-Multiple Inheritance in C++](https://academyera.com/multiple-inheritance-in-c) 
[-Hierarchical Inheritance in C++](https://academyera.com/hierarchical-inheritance-in-c)
[-Hybrid Inheritance](https://academyera.com/hybrid-inheritance-in-c)
 

Polymorphism
[-Function Overriding in C++](https://academyera.com/function-overriding-in-c-polymorphism)
[-Virtual Destructor in C++](https://academyera.com/virtual-destructor-in-c)
[-Pure Virtual Functions in C++](https://academyera.com/pure-virtual-functions-in-c)
[-Virtual Functions in C++](https://academyera.com/virtual-functions-in-c)
 

Topic : [learn C++ in Easy Way](https://academyera.com/learn-c) 

 

This Course ( Learn C++ ) is Prepared By A.S Karthik Senior Software engineer from cognizant

https://academyera.com/learn-c
Coder Cup $100 problem #5: Packing Spheres
Tags: challenge, computerscience, career
Published: 2020-01-29 18:52:34


I want to write code every day, and I've always found solving little challenges fun and satisfying. Coder Cup is an online programming competition designed to help you level up your skills through unique challenges.

# This week's problem

> What is the length of the shortest pipe, of internal radius 50mm, that can fully contain 21 balls of radii 30mm, 31mm, ..., 50mm?

Check it out and submit your solution to win $100 on <a href="https://codercup.org/p5">codercup.org/p5</a>
Looking up at the clouds- the start of a new journey
Tags: codenewbie, beginners
Published: 2020-01-29 18:51:36

Hello all you amazing people! 
I have been asked to write a bit about why I decided to study software engineering. I found that this topic was a bit of a challenge for me as I am usually *quite private*. 

To be real, this question has many answers, and each is a bit different depending on what kind of mood I'm in. Sometimes I'm motivated by the need to learn and grow, other times it is by money, and there are some times that I just dream about having the flexibility to work remotely.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/h1kb7v42j1zzr2x5ho78.jpg)
###### Photo by <a href="/photographer/winjohn-50474">John evans</a> from <a href="https://freeimages.com/">FreeImages</a> 

The most honest answer that would sum it all up is that I ~~want~~ need to be happy with what I do all day long for work. 

I know that may seem super basic, but after spending years in a career that I chose because 'I should', this simple notion is quite powerful to me. I need to feel good about what I do for work. 

Many have asked me why I would give up a successful and lucrative career to start all over and take a chance on something new. To them I always reply, __"Why not?"__. It was time for me to grow.

I know what it is like to do something day by day that you don't feel connected to and how draining that can be on the spirit. I can definitively say that is just not for me. 

Instead, I'm looking for ways to combine my love of logic and need for creativity. I can't wait to join a team of like-minded people who each bring a unique perspective to the table. I'm eager to be part of the collaboration that takes place when great ideas come to life. 

I have always enjoyed working with computers and people often turn to me for tech support. I am usually the first to jump in to solve a problem and I feel bored without challenge and at least a few different projects going on. 

When someone pointed out that I seemed really happy when I was problem-solving, it was like something clicked and then I realized I knew what I wanted to do. I started exploring different languages, taking classes here and there to see if I would actually enjoy working 'behind the scenes' to help create some of the magic that makes up our virtual world. I absolutely do!

So far I've studied Ruby, JavaScript, HTML, CSS and have become quite a **major** regex fan. I'm so excited to be immersed in learning!



###### Cover Photo by <a href="/photographer/Artyart-83636">Artyart</a> from <a href="https://freeimages.com/">FreeImages</a>