[VV7] Diamond Operator, RestController, react GET, product backlog, green picture, growth mindset, typing speed

[VV7] Diamond Operator, RestController, react GET, product backlog, green picture, growth mindset, typing speed

JAVA CERTIFICATION QUESTION: Generics and collections

Given:

List/* Spot 1 */ list = new ArrayList/* Spot 2 */();
        

At which position can the diamond operator '<>' be inserted without throwing a compilation error?

  • A. None of Spot 1 or Spot 2
  • B. Spot 1 only
  • C. Spot 2 only
  • D. Either Spot 1 or Spot 2, but not both
  • E. Both Spot 1 and Spot 2 at the same time

From Oracle Java trails:?https://bit.ly/3M1aCLM

You can replace the type arguments required to invoke the constructor of a generic class?with an empty set of type arguments (<>) as long as the compiler can determine, or infer, the type arguments from the context. This pair of angle brackets, <>, is informally called the diamond. For example, you can create an instance of Box<Integer> with the following statement:

Box<Integer> integerBox = new Box<>();
        

·? s? ???su? ??? :uo?sn???o?




SPRING CERTIFICATION QUESTION: What is the difference between '@Controller' and '@RestController'?

No alt text provided for this image

'@RestController' is a compound annotation, which is meta-annotated with '@Controller' and '@ResponseBody' annotations.

Thus response-request bodies are a subject of http-converters omitting view-model phase.

One might prefer to use '@Controller' and '@ResponseBody' annotations instead; '@RestController' is just a convenience annotation.

#spring?#certificationquestion?#vcp

@ResponseBody ???https://lnkd.in/efNxXiCn

@RestController/@Controller ???https://lnkd.in/ea_v5AMS




QUOTE

No alt text provided for this image




REACT: Do a simple HTTP GET

?? How to call ?? a backend to read data via REST API in React

So it was time for me to learn how to interact ?? with the backend with a react App.

And I used Axios to do so.

Axios is a simple promise-based HTTP client for the browser and node.js. Axios provides a simple-to-use ?? library in a small package with a very extensible interface.

So I coded ?? ?? a simple react app which:

1?? fetch ?? with axios a data object in the JSON format

?function fetchActivityHandler() {

   fetch('https://www.boredapi.com/api/activity').then(response =>
?     response.json()).then(data => {
      ? console.log(data);
      ? setActivity(data);
  ? });

?}        

2?? display ?? its fields in the middle of the screen

?return (
?<div className="App">
? <header className="App-header">
? <p><h3><b>Activity</b>: {activity.activity}</h3><br /></p>
? <p><b>??? Type</b>: {activity.type}<br /></p>
? <p><b>?? Participants</b>: {activity.participants}<br /></p>
? <p><b>?? Price</b>: {activity.price}<br /></p>
? <p><b>?? Link</b>: {activity.link}<br /></p>
? <p><b>?? Key</b>: {activity.key}<br /></p>
? <p><b>? Accessibility</b>: {activity.accessibility}<br /></p>
? </header>
?</div>
?);        

Here is the code ?? if you wanna play with it, just download it??, and run it from its directory with 'npm start'??




GREEN IT Developer ????: Avoid using bitmap images for the interface

No alt text provided for this image

It is important to choose the right ?? image format to avoid sending unnecessary bytes and thus save bandwidth ??. Moreover, vectors should be used instead of bitmaps as screens and resolutions continue to grow.

By doing so, the interface does not depend on the screen’s resolution??. This also limits the technical debt ??.

The first rule is to replace bitmap images??? (GIF, PNG, JPEG, WebP, etc.) with styles ??(CSS), pictograms, glyphs, or icons provided for by a web font or standard typeface. This prevents the user from having to download ?? additional ? resources.

If you are unable ? to use CSS or a standard typeface (already installed on the user’s device), you could instead use:

  1. - a web font
  2. - standard '.SVG' vector images

Fo example a 198 x 198 px image is: - 118 KB as an uncompressed bitmap - 6.5 KB as a JPEG (90% compressed) - 3.8 KB as a PNG - 0.7 KB as a minified SVG

In this case, the vector is 5-10 times smaller than the bitmap and can also be resized indefinitely.




SCRUM: Product Backlog

The Product Backlog is an emergent, ordered list ?? of what is needed to improve the product. It is the single source of work undertaken by the Scrum Team.

No alt text provided for this image

Product Backlog items that can be "Done" ? by the Scrum Team within one Sprint are deemed ready for selection in a Sprint Planning event. They usually acquire this degree of transparency after refining activities. Product Backlog refinement is the act of breaking ?? down and further defining Product Backlog items into smaller more precise items ??. This is an ongoing activity to add ? details, such as a description, order, and size. Attributes often vary with the domain of work.

The Developers???????? who will be doing the work are responsible for the sizing ???. The Product Owner???? may influence the Developers by helping them understand ?? and select trade-offs ??.

Commitment: Product Goal

The Product Goal describes a future ?? state of the product which can serve as a target ?? for the Scrum Team to plan against. The Product Goal is in the Product Backlog. The rest of the Product Backlog emerges to define “what” will fulfill the Product Goal.

A product is a vehicle to deliver value. It has a clear boundary, known stakeholders, well-defined users or customers. A product could be a service, a physical product, or something more abstract.

The Product Goal is the long-term objective for the Scrum Team. They must fulfill ? (or abandon??) one objective before taking on the next ??.




SOFT-SKILL: Fixed mindset versus Growth mindset.

Have you ever heard somebody tell you: "You are bad at it, you will never succeed in this." ?? This is typically a fixed mindset. ?? ♂? Neurosciences have proved that the human being is gifted to fit with a growth mindset. ?? ♂??? ♀?

No alt text provided for this image

The human being can learn and change his situation. ??Let's spot the inconsistencies of a fixed mindset in several topics:

???????????????

  • For a fixed mindset, skills are something innate/born with. Skills are fixed/unchangeable. ??
  • For a growth mindset, skills are changeable/able to be developed. Skills are subject to improvement. ??

???????????????????? ??

  • For a fixed mindset, challenges are something to avoid. It could reveal a lack of skill from that fixed mindset person. These fixed mindset persons tend to give up easily. ??
  • For a growth mindset, challenges should be embraced. Challenges are opportunities to grow. Growth mindset persons are more persistent. ??

???????????????

  • For a fixed mindset, the effort is unnecessary ?? and fruitless. ??
  • For a growth mindset, effort is the path to improvement and is essential for mastery. ??

???????????????? ???

  • For a fixed mindset, feedback is intrusive criticism or worse: a personal attack. ??
  • For a growth mindset, feedback is useful/growth tool. And it helps for learning and progress. ??

?????????????????

  • With a fixed mindset, they blame others and get discouraged/hurt. ??
  • A growth mindset generates inner excitement and supports harder work. ??




POLL RESULTS: ?? Typing skill: how good you are?

? Check your level here???https://lnkd.in/e_Zftu8H

No alt text provided for this image

The fastest typists in the world, with speeds ranging from 160 WPM – words per minute – to over 300 ??, don’t “need” to type so fast that no one can hear over the sound of their clattering keyboards. But typing that fast gives them a distinct advantage ?? in their chosen careers, and wins awards ?? to boot.

The average typing speed is about 41 WPM, with an accuracy rate of 92%. There is nothing wrong ?? ♂? with typing more slowly than this, but it can impact your ability to take notes ??, write documents, and keep up with a competitive ?? ?? workplace. Learning to type faster will improve your professional profile.

#programming?#typing?#productivity?#poll

PS: My typing speed is 47WPM ?? (with an accuracy of 100%)




CSS JOKE

No alt text provided for this image

My 2cents?? box-shadow: -2px 10px 10px black; (for the dog shadow inside the white box)

要查看或添加评论,请登录

Vincent Vauban的更多文章

  • ?? Broken Function Level Authorization – API5:2023 ??

    ?? Broken Function Level Authorization – API5:2023 ??

    I'm kicking off a series of articles on API Security ?? to help us—developers ????????—better understand and implement…

  • [VV112] The Java 21 Newsletter

    [VV112] The Java 21 Newsletter

    ????2??1?? Dear followers, let's prepare for Java 21 certification together! 1?? How would you answer this question:…

  • FR Les mots sans les maux. ???

    FR Les mots sans les maux. ???

    FR Hier, j’ai eu la chance d’assister à un atelier sur la Communication Non Violente (CNV) avec les superbes people de…

  • ?? Unrestricted Resource Consumption – API4:2023 ??

    ?? Unrestricted Resource Consumption – API4:2023 ??

    I'm kicking off a series of articles on API Security ?? to help us—developers ????????—better understand and implement…

  • ?? Broken Object Property Level Authorization – API3:2023 ??

    ?? Broken Object Property Level Authorization – API3:2023 ??

    I'm kicking off a series of articles on API Security ?? to help us—developers ????????—better understand and implement…

  • [VV111] The Java 21 Newsletter

    [VV111] The Java 21 Newsletter

    ????2??1?? Dear followers, let's prepare for Java 21 certification together! 1?? How would you answer this question:…

    18 条评论
  • ?? Broken Authentication – API2:2023 ??

    ?? Broken Authentication – API2:2023 ??

    I'm kicking off a series of articles on API Security ?? to help us—developers ????????—better understand and implement…

  • ?? BOLA – The #1 API Security Threat (API1:2023)

    ?? BOLA – The #1 API Security Threat (API1:2023)

    I'm kicking off a series of articles on API Security ?? to help us—developers ??????????—better understand and…

  • [VV110] The Java 21 Newsletter

    [VV110] The Java 21 Newsletter

    ????2??1?? Dear followers, let's prepare for Java 21 certification together! 1?? How would you answer this question:…

  • ?2??4?? Java 24 features with Thiago

    ?2??4?? Java 24 features with Thiago

    (Thanks Thiago Gonzaga ) Here are some insights based on Thiago X content. Java 24: JEP 491 Boosts Virtual Threads! ??…

社区洞察

其他会员也浏览了