learning

Wildcard Generic Types

Wildcard Generic Types

You can use unbounded wildcards, bounded wildcards, or lower-bound wildcards to specify a range for a generic type. What are wildcard generic types and why are they needed? The code below gives an example todemonstrate the needs. The example defines a generic max method for finding the maximum in a stack of numbers (lines 15–25). The main method creates a stack of integer objects, adds three integers to the stack, and invokes the max method to find the maximum number in the stack. The program above has a compile error in line 11 because intStack is not an instance of…
Read More
Greetings!

Greetings!

Greetings all. I'm really excited to be here. I'm a new developer, working hard to build up my skills. I focus mostly on Python and SQL, but am also learning full-stack web development (HTML, CSS, and JS). I'm really excited to join this community. I'm always looking to learn and never pass up the opportunity get better. I'm always willing to collaborate and learn more, as I'm still a newbie at this, even though I've been working hard for the last year, I feel like I move one step forward and take two steps back. I'm hoping that I can…
Read More
30 days of AWS – Part 3: AWS Well-Architected Framework

30 days of AWS – Part 3: AWS Well-Architected Framework

Definition To put it simply, the AWS well-architected framework is a collection of best practices and guidelines for designing and operating reliable, secure, efficient, and cost-effective systems in the cloud. It is built upon 6 pillars. Namely: Security Cost optimization Operational excellence Reliability Efficiency Sustainability Acronym to remember it by: S-C-O-R-E-S Operational Excellence Focus - Run and monitor systems to deliver business value. Continually improve and support processes and procedures. Key Topics Automating changes Responding to events Defining standards to maintain daily operations Design Principles Perform operations as code- Define the entire workload as code and update it with code.…
Read More
Mengenal Asymmetric Encryption: Keamanan Data Tingkat Tinggi dengan Golang

Mengenal Asymmetric Encryption: Keamanan Data Tingkat Tinggi dengan Golang

Apa Itu Asymmetric Encryption? Asymmetric encryption adalah metode enkripsi yang menggunakan dua kunci berbeda: public key (kunci publik) dan private key (kunci privat). Kunci publik digunakan untuk mengenkripsi data, sementara kunci privat digunakan untuk mendekripsi data. Karena karakteristik ini, asymmetric encryption sangat berguna dalam berbagai situasi yang membutuhkan keamanan tinggi dan otentikasi. Berikut beberapa contoh penggunaan dan penjelasan detail kapan menggunakan asymmetric encryption: Mengamankan Transaksi OnlineDalam transaksi online, seperti pembelian di e-commerce atau perbankan online, asymmetric encryption digunakan untuk memastikan bahwa informasi sensitif, seperti nomor kartu kredit atau informasi pribadi, dikirim dengan aman dari pengguna ke server.Prosesnya yaitu pengguna mengenkripsi…
Read More
Text I/O vs. Binary I/O

Text I/O vs. Binary I/O

Binary I/O does not involve encoding or decoding and thus is more efficient than text I/O. Computers do not differentiate between binary files and text files. All files are stored in binary format, and thus all files are essentially binary files. Text I/O is built upon binary I/O to provide a level of abstraction for character encoding and decoding, as shown in Figure below (a). Encoding and decoding are automatically performed for text I/O. The JVM converts Unicode to a file-specific encoding when writing a character, and it converts a file-specific encoding to Unicode when reading a character. For example,…
Read More
How I Befriended Segment Trees

How I Befriended Segment Trees

Last time, I talked about one advanced data structure that is useful for handling frequent range queries – Fenwick Tree. However, it's not very versatile as it is mostly used for sum queries, and I personally never used it for any other kind of problem. However, there is another player on the field, which has many more hats. Ladies and gentlemen, meet the Segment Tree, one of the most useful, yet often overlooked data structure. Why I decided to learn it So, what was my motivation behind learning Segment Trees? The answer is quite simple, actually. I got tired of…
Read More
Figma for Beginners

Figma for Beginners

Hello everyone! Today I'll be making a blog on Figma. I wanted to blog on Figma because I see Figma everywhere but I still don't know what it is. Figma helps with the design interface and responsive web design. Figma frames have preset devices and screen sizes. Creating Figma FramesFigma frames can be created by simply hitting on the "A" or "F" key. There is a dropdown pane of the list of devices that the user wants to create the frame with. Frame interactionsThey can be modified by changing preset values or simply dragging the corners of the box. Nesting…
Read More
An Exploratory Testing Approach on HNG.TECH

An Exploratory Testing Approach on HNG.TECH

Exploratory testing is an approach to software testing that is often described as simultaneous learning, test design, and execution. It focuses on discovery and relies on the guidance of the individual tester to uncover defects that are not easily covered in the scope of other tests. The practice of exploratory testing has gathered momentum in recent years. Testers and QA managers are encouraged to include exploratory testing as part of a comprehensive test coverage strategy. This weekend, I conducted an exploratory test on hng.tech website. My goal for the testing was to uncover issues that could affect user experience and…
Read More
Discovering the Power of Atlassian Resources

Discovering the Power of Atlassian Resources

Recently, I explored the extensive resources provided by Atlassian on Agile, DevOps, and more. Their comprehensive material not only refreshed my understanding of Agile and Scrum methodologies learned at Red Hat, but also expanded my knowledge on critical topics like various Git workflows, DevOps culture, and the Scaled Agile Framework (SAFe). Practical Tips from Atlassian Consider Gitflow for Large, Complex Projects: Atlassian's guide on Git workflows offers valuable insights into enhancing your version control strategy. The Gitflow model, in particular, is useful for managing larger projects, ensuring a streamlined and efficient development process. It might become The Solution if your…
Read More
alternate way of doing word split/phrase segmentation in python

alternate way of doing word split/phrase segmentation in python

Doing word split with recursion felt a bit complex to me , so I tried to do it in an easier way. The Hard Way (recursion) -- def word_split(phrase,list_of_words, output = None): if output is None: #Base Case / Initial call output = [] for word in list_of_words: if phrase.startswith(word): output.append(word) return word_split(phrase[len(word):],list_of_words,output) # Recursive Call return output # Result Enter fullscreen mode Exit fullscreen mode gives The Easy Way (indexing/for loop) - def word_split_2(phrase, word_list): output = [] for i in word_list: if i in phrase: output.append(i) return output Enter fullscreen mode Exit fullscreen mode Source link lol
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.